[Tutor] under, under

Jonatán Guadamuz Espinoza jguadamuz at gmail.com
Mon May 13 19:21:01 CEST 2013


On Mon, May 13, 2013 at 10:21 AM, Stafford Baines <staffordbaines at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130513/1a26de83/attachment-0001.html>


More information about the Tutor mailing list