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 le
On Mon, May 13, 2013 at 1:18 PM, Dave Angel 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
used to enable na
On Mon, May 13, 2013 at 10:21 AM, 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?
Section 2.3.2
http://docs.python.org/3/reference/lexical_analysis.html#reserve
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)
Undersc
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 subsc
I have seen (and enjoy) people calling double underscore as 'Dunder'
On Mon, May 13, 2013 at 12:32 PM, Natal Ngétal wrote:
> 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.
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
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 subscripti