Re: Why are these files names started with underscore?

Discussion in 'Python' started by Chris Angelico, Jun 24, 2012.

  1. On Sun, Jun 24, 2012 at 6:42 PM, gmspro <> 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
     
    Chris Angelico, Jun 24, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kerry Kimbrough
    Replies:
    6
    Views:
    15,010
    Chris Smith
    Feb 27, 2004
  2. Walter Tross

    leading underscore for member names

    Walter Tross, Apr 29, 2004, in forum: C++
    Replies:
    5
    Views:
    570
    Sumit Rajan
    Apr 29, 2004
  3. Mr. SweatyFinger
    Replies:
    2
    Views:
    2,254
    Smokey Grindel
    Dec 2, 2006
  4. Thomas Jollans
    Replies:
    0
    Views:
    257
    Thomas Jollans
    Jun 24, 2012
  5. Stefan Behnel
    Replies:
    0
    Views:
    239
    Stefan Behnel
    Jun 24, 2012
Loading...

Share This Page