[Python-Dev] What do PyAPI_FUNC & PyAPI_DATA mean?

2012-04-23 Thread Mark Shannon
Many (most?) of the function declarations in the CPython header files are annotated with the PyAPI_FUNC declaration. Similarly for data declarations and PyAPI_DATA What do they mean, exactly? From the name I would expect that they are a way of declaring a function or datum to be part of the API,

Re: [Python-Dev] Suggested addition to PEP 8 for context managers

2012-04-23 Thread Floris Bruynooghe
[resent since I accidentally dropped the list] Hi, On 19 April 2012 15:55, Barry Warsaw wrote: > I'll make this change to the PEP.  I'm not entirely sure the Yes/No examples > are great illustrations of this change in wording though.  Here's the diff so > far (uncommitted): > > diff -r 34076bfed

Re: [Python-Dev] [Python-checkins] cpython: issue2193 - Update docs about the legal characters allowed in Cookie name

2012-04-23 Thread Senthil Kumaran
On Sun, Apr 22, 2012 at 3:17 PM, Nick Coghlan wrote: >>  issue2193 - Update docs about the legal characters allowed in Cookie name > > You missed the dummy merge from 3.2 to indicate that this change had > been applied to both branches independently. Yes. Sorry for that. I was being little cautio

Re: [Python-Dev] What do PyAPI_FUNC & PyAPI_DATA mean?

2012-04-23 Thread Benjamin Peterson
2012/4/23 Mark Shannon : > Many (most?) of the function declarations in the CPython header files > are annotated with the PyAPI_FUNC declaration. > Similarly for data declarations and PyAPI_DATA > > What do they mean, exactly? From the name I would expect that they are a way > of declaring a functi

Re: [Python-Dev] What do PyAPI_FUNC & PyAPI_DATA mean?

2012-04-23 Thread Kristján Valur Jónsson
IMHO, we are _much_ too generous at applying this to almost whatever gets exposed between .c files. I have created something called the "restricted" api for our custom python27.dll where I use different macros (PyAPI_RFUNC, pyAPI_RDATA) to mean that things aren't exported for "restricted" builds

Re: [Python-Dev] cpython: Implement PEP 412: Key-sharing dictionaries (closes #13903)

2012-04-23 Thread Antoine Pitrou
On Mon, 23 Apr 2012 17:24:57 +0200 benjamin.peterson wrote: > http://hg.python.org/cpython/rev/6e5855854a2e > changeset: 76485:6e5855854a2e > user:Benjamin Peterson > date:Mon Apr 23 11:24:50 2012 -0400 > summary: > Implement PEP 412: Key-sharing dictionaries (closes #13903)

Re: [Python-Dev] cpython: Implement PEP 412: Key-sharing dictionaries (closes #13903)

2012-04-23 Thread R. David Murray
On Mon, 23 Apr 2012 22:22:18 +0200, Antoine Pitrou wrote: > On Mon, 23 Apr 2012 17:24:57 +0200 > benjamin.peterson wrote: > > http://hg.python.org/cpython/rev/6e5855854a2e > > changeset: 76485:6e5855854a2e > > user:Benjamin Peterson > > date:Mon Apr 23 11:24:50 2012 -0400 > > s

[Python-Dev] (time) PEP 418 glossary V2

2012-04-23 Thread Jim Jewett
Glossary Absolute Time - A measurement of time since a specific Epoch_, typically far in the past. Civil Time is the most common example. Typically contrasted with a `Duration`_, as (now - epoch) is generally much larger than any duration that can be appropriately measured

Re: [Python-Dev] PEP 418: Add monotonic time, performance counter and process time functions

2012-04-23 Thread Victor Stinner
>> Well, I asked on IRC what I should do for these definitions because >> I'm too tired to decide what to do. [[...]] I replaced these definitions >> with yours. > > That was nice of you.  In return, I'll go over the PEP to check that > usage is appropriate (eg, in some places "resolution" was use

Re: [Python-Dev] (time) PEP 418 glossary V2

2012-04-23 Thread Nick Coghlan
I like the updated glossary - very good summary of the relevant terminology and common points of confusion. One minor gripe below (and it *is* minor, despite the amount of text explaining my point of view...) On Tue, Apr 24, 2012 at 11:58 AM, Jim Jewett wrote: > Real Time > - > > Time in