Why are these files names started with underscore?

Chris Angelico rosuav at gmail.com
Sun Jun 24 04:55:29 EDT 2012


On Sun, Jun 24, 2012 at 6:42 PM, gmspro <gmspro at 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



More information about the Python-list mailing list