On Mon, May 13, 2013 at 10:21 AM, Stafford Baines <staffordbai...@yahoo.com> wrote: > > Please explain the significance of __some term__. For example __name__ as in > > If __name__ == ‘__main__’: > > main() > > When is the under, under used?
Section 2.3.2 http://docs.python.org/3/reference/lexical_analysis.html#reserved-classes-of-identifiers Explain as follows: __*__System-defined names. These names are defined by the interpreter and its implementation (including the standard library). Current system names are discussed in the Special method names section and elsewhere. More will likely be defined in future versions of Python. Any use of __*__ names, in any context, that does not follow explicitly documented use, is subject to breakage without warning.
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor