You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
There is no mention of if __name__ == '__main__' in the book #5
The book does not mention the if __name__ == '__main__'. The only two mention I found by searching for __name__ are a commented exercise in appendix A, and a brief appearance in the pygame appendix.
Before the course started, this was discussed briefly over coffee. A lot of the students only work in spyder and because of this I don't think many will use it. The few that want to run scripts without spyder and use if __name__ == '__main__' could benefit from an explanation, however. Should we add this to the book? Or provide a solid 'Further Reading' section?
Before the course started, this was discussed briefly over coffee. A
lot of the students only work in spyder and because of this I don't
think many will use it. The few that want to run scripts without
spyder and use |if name == 'main'| could benefit from an
explanation, however. Should we add this to the book? Or provide a
solid 'Further Reading' section?
Activity
Eljee commentedon Apr 19, 2016
Before the course started, this was discussed briefly over coffee. A lot of the students only work in spyder and because of this I don't think many will use it. The few that want to run scripts without spyder and use
if __name__ == '__main__'could benefit from an explanation, however. Should we add this to the book? Or provide a solid 'Further Reading' section?jbarnoud commentedon Apr 19, 2016
On 19/04/16 10:13, Lourens-Jan Ugen wrote: