if __name__ == "__main__"
greg at cosc.canterbury.ac.nz
Wed Dec 19 23:46:15 CET 2001
Kevin Cazabon wrote:
> In the namespace of the module that was the one actually executed,
> __name__ will be "__main__". In all others, it will be something else
> (hmmm... what will it be, never thought about it?).
The name of the module!
Greg Ewing, Computer Science Dept, University of Canterbury,
Christchurch, New Zealand
To get my email address, please visit my web page:
More information about the Python-list