[Tutor] under, under

2013-05-13 Thread Stafford Baines
Please explain the significance of __some term__. For example __name__ as in If __name__ == '__main__': main() When is the under, under used? Regards, Stafford ___ Tutor maillist - Tutor@python.org To unsubscribe or change

Re: [Tutor] under, under

2013-05-13 Thread Natal Ngétal
On 05/13/13 17:21, Stafford Baines wrote: When is the under, under used? It depends the context, for example __name__ represent the name of the current package. The __init__ it's object methode to initialize the object, and so on. -- \0/ Hobbestigrou site web: erakis.eu L'Europe est trop grande

Re: [Tutor] under, under

2013-05-13 Thread Joel Goldstick
I have seen (and enjoy) people calling double underscore as 'Dunder' On Mon, May 13, 2013 at 12:32 PM, Natal Ngétal hobbestig...@erakis.euwrote: On 05/13/13 17:21, Stafford Baines wrote: When is the under, under used? It depends the context, for example __name__ represent the name of the

Re: [Tutor] under, under

2013-05-13 Thread Dave Angel
On 05/13/2013 12:21 PM, Stafford Baines wrote: Please explain the significance of __some term__. For example __name__ as in If __name__ == '__main__': main() When is the under, under used? (Please don't start a second thread with identical content 20 minutes after the first)

Re: [Tutor] under, under

2013-05-13 Thread Jonatán Guadamuz Espinoza
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

Re: [Tutor] under, under

2013-05-13 Thread eryksun
On Mon, May 13, 2013 at 1:18 PM, Dave Angel da...@davea.name wrote: Underscores aren't anything special to the Python language itself, whether leading or trailing. I'm pretty sure you were just talking about dunder, dunder. Underscores in general do have special uses in the language. They're

Re: [Tutor] under, under

2013-05-13 Thread Steven D'Aprano
On 14/05/13 02:21, Stafford Baines wrote: Please explain the significance of __some term__. For example __name__ as in If __name__ == '__main__': main() When is the under, under used? Underscores are legal characters in names. So you can write: some_term = whatever() and it is a