[Tutor] PyScripter header?

Jim Mooney cybervigilante at gmail.com
Wed May 8 10:10:12 CEST 2013


I'm trying PyScripter instead of Wing 101. It works fine and has a lot
more PyLearner features than Wing 101 (at the same price ;'), such as
popups showing the parameters for methods, profiler, lint,
programmable snippets, etc. It also lets you choose your Python
version and finds the right one, which is handy, since I'm learning on
3.3 but a lot of good stuff is older.

However, a new file in PyScripter always starts with:
_____________________________________________

def main():
    pass

if __name__ == '__main__':
    main()
_____________________________________________

What is that stuff?  I thought I was getting away from all this
business of defining a main entry point. I don't see it in any of the
Py library files or other Py programs.

PyScripter has enough extra features, that I'll probably switch to it.
But has anyone found any odd problems with it? Tks.

Jim


More information about the Tutor mailing list