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


Groups > comp.lang.python > #24384

Re: Why are these files names started with underscore?

References <1340527332.41345.YahooMailClassic@web164602.mail.gq1.yahoo.com>
Date 2012-06-24 18:55 +1000
Subject Re: Why are these files names started with underscore?
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1448.1340528132.4697.python-list@python.org> (permalink)

Show all headers | View raw


On Sun, Jun 24, 2012 at 6:42 PM, gmspro <gmspro@yahoo.com> wrote:
>
> Hi,
>
> I see there are some files here started with underscore(_) , is there any
> convention of something for it?
>
> Is there any convention or something?

They're private implementations of public APIs. You can ignore them as
implementation details.

For using Python, I strongly recommend reading the docs, not the
source. Among other things, that'll help you avoid the trap of writing
to a CPython implementation detail.

ChrisA

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


Thread

Re: Why are these files names started with underscore? Chris Angelico <rosuav@gmail.com> - 2012-06-24 18:55 +1000

csiph-web