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?

Path csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.005
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'python,': 0.02; 'cpython': 0.05; 'source.': 0.07; 'subject:these': 0.09; 'ignore': 0.15; '24,': 0.16; 'apis.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:Why': 0.16; 'subject:files': 0.16; 'subject:started': 0.16; 'wrote:': 0.17; 'header:In-Reply-To:1': 0.23; 'message-id:@mail.gmail.com': 0.27; 'received:209.85.214.174': 0.27; 'convention': 0.27; 'strongly': 0.27; 'things,': 0.29; 'hi,': 0.30; 'subject:?': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'to:addr :python-list': 0.35; 'there': 0.35; 'something': 0.36; 'subject:with': 0.37; 'subject:: ': 0.37; 'received:209': 0.37; 'some': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.39; 'files': 0.40; 'here': 0.65; 'detail.': 0.66; 'received:mail-ob0-f174.google.com': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=7mqTZYZURacp0e0Z9qoxLiu/sRPQtZ/UgxKHJ8+/cHY=; b=Ixwxq2ODZW4xkByjFH2b8Aowhf9xt8yM/HXva+OPmt+68O1lJp0GmN0NC9WiJVq4ii 9jraz8pcsFfNDxlRGgU9SVT3VsfDL4Vw6PIJ8RaC/HZ0o/ZQM7iCbChtUoU35xZ0RoPu Zz0WNegwy99NGHQUvJULpQVbCCDwxcvui1Opznm264OPE+xhdNKnM4vQEHWZIbSGJ9EZ 4e2zVAFApPJWO5pah2+hXRBE9CqXbSd7Yr9G/jXxvoQIELVE3phxdWFNiLNYlBaj/X4Z GsOXdKQoItd2eUlAOTxuqdbxW+3d9yh+9ff2f8iFo1Lehf4eaX1LSqqER0JSiGaWd36H NMSA==
MIME-Version 1.0
In-Reply-To <1340527332.41345.YahooMailClassic@web164602.mail.gq1.yahoo.com>
References <1340527332.41345.YahooMailClassic@web164602.mail.gq1.yahoo.com>
Date Sun, 24 Jun 2012 18:55:29 +1000
Subject Re: Why are these files names started with underscore?
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1448.1340528132.4697.python-list@python.org> (permalink)
Lines 17
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1340528132 news.xs4all.nl 6844 [2001:888:2000:d::a6]:50326
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:24384

Show key headers only | 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