Beginner Q: What does the double underscore __ mean?

Mark Lawrence breamoreboy at yahoo.co.uk
Sun Sep 9 07:23:55 EDT 2012


On 09/09/2012 12:03, StarPilgrim wrote:
> Hi all,
> Brand new to python. I was wondering what the __ underscore means?
> For example, there is a line of code:
>
> __name__=='__main__'
>
>
> and I don't know what the double underscore is used for.
>

Start here http://docs.python.org/reference/datamodel.html#specialnames

-- 
Cheers.

Mark Lawrence.




More information about the Python-list mailing list