Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #28765

Re: Beginner Q: What does the double underscore __ mean?

From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: Beginner Q: What does the double underscore __ mean?
Date 2012-09-09 12:23 +0100
References <3dcd70d0-17b5-40a4-803a-eed66639b6e7@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.415.1347189902.27098.python-list@python.org> (permalink)

Show all headers | View raw


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.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Beginner Q: What does the double underscore __ mean? StarPilgrim <aaronpil@gmail.com> - 2012-09-09 04:03 -0700
  Re: Beginner Q: What does the double underscore __ mean? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-09 12:23 +0100
  Re: Beginner Q: What does the double underscore __ mean? Dave Angel <davea@dejaviewphoto.com> - 2012-09-09 08:39 -0400
    Re: Beginner Q: What does the double underscore __ mean? hamilton <hamilton@nothere.com> - 2012-09-09 10:04 -0600
      Re: Beginner Q: What does the double underscore __ mean? Dave Angel <d@davea.name> - 2012-09-09 16:54 -0400
      Re: Beginner Q: What does the double underscore __ mean? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-09 22:05 +0000
  Re: Beginner Q: What does the double underscore __ mean? Bryan <bryanjugglercryptographer@yahoo.com> - 2012-09-09 22:38 -0700

csiph-web