Re: [Python-Dev] freeze build slave

2014-03-31 Thread Victor Stinner
I disagree. Running tests in debug code tests more things thanks to assertions, and provides more info in case of test failure or crash. Some assertions only fail on some platforms. See for example test_locale which fails with an assertion error on solaris (since Python 3.3). Adding one or two

Re: [Python-Dev] libpython added to ABI tracker

2014-03-31 Thread Andrey Ponomarenko
Hi, Victor Stinner wrote: Hi, 2014-03-28 9:31 GMT+01:00 Andrey Ponomarenko aponomare...@rosalab.ru: The libpython library has been added to the ABI tracker: http://upstream-tracker.org/versions/python.html The page lists library versions and changes in API/ABI. Nice! By the way, would it

Re: [Python-Dev] libpython added to ABI tracker

2014-03-31 Thread Victor Stinner
2014-03-31 13:38 GMT+02:00 Andrey Ponomarenko aponomare...@rosalab.ru: The public libpython API changes will be tracked here: http://upstream-tracker.org/versions/python_public_api.html For now I've excluded only symbols starting with an underscore. What other symbols should be excluded?

Re: [Python-Dev] Treating tokenize.Untokenizer as private

2014-03-31 Thread Eric Snow
On Tue, Feb 18, 2014 at 2:09 PM, Terry Reedy tjre...@udel.edu wrote: I am working through the multiple bugs afflicting tokenize.untokenize, which is described in the tokenize doc and has an even longer docstring. While the function could be implemented as one 70-line function, it happens to be

Re: [Python-Dev] Making proxy types easier to write and maintain

2014-03-31 Thread Eric Snow
On Thu, Mar 20, 2014 at 11:56 AM, Larry Hastings la...@hastings.org wrote: On 03/20/2014 12:49 AM, Nick Coghlan wrote: So long as Graham's willing to go along with it, he doesn't have to to be the one to write the PEP. PEP? Why does it need a PEP? I didn't think it'd even be a new

Re: [Python-Dev] Making proxy types easier to write and maintain

2014-03-31 Thread Eric Snow
On Wed, Mar 19, 2014 at 12:46 PM, Antoine Pitrou solip...@pitrou.net wrote: In http://bugs.python.org/issue19359#msg213530 I proposed to introduce a proxy protocol (__proxy__ / tp_proxy) that would be used as a fallback by _PyObject_LookupSpecial to fetch the lookup target, i.e.: def

Re: [Python-Dev] Negative timedelta strings

2014-03-31 Thread Chris Barker
On Fri, Mar 28, 2014 at 2:52 PM, Fred Drake f...@fdrake.net wrote: On Fri, Mar 28, 2014 at 5:19 PM, Greg Ewing greg.ew...@canterbury.ac.nz wrote: ISO 8601 doesn't seem to define a representation for negative durations, though, so it wouldn't solve the original problem. Aside from the

Re: [Python-Dev] Treating tokenize.Untokenizer as private

2014-03-31 Thread Terry Reedy
On 3/31/2014 2:30 PM, Eric Snow wrote: On Tue, Feb 18, 2014 at 2:09 PM, Terry Reedy tjre...@udel.edu wrote: I am working through the multiple bugs afflicting tokenize.untokenize, which is described in the tokenize doc and has an even longer docstring. While the function could be implemented as

Re: [Python-Dev] Treating tokenize.Untokenizer as private

2014-03-31 Thread Raymond Hettinger
On Feb 18, 2014, at 1:09 PM, Terry Reedy tjre...@udel.edu wrote: While the function could be implemented as one 70-line function, it happens to be implemented as a 4-line wrapper for a completely undocumented (Untokenizer class with 4 methods. (It is unmentioned in the doc and there are

Re: [Python-Dev] Negative timedelta strings

2014-03-31 Thread Xavier Morel
On 2014-03-28, at 17:19 , Skip Montanaro s...@pobox.com wrote: (*) As an aside (that is, this belongs in a separate thread if you want to discuss it), in my opinion, attempting to support ISO 8601 formatting is pointless without the presence of an anchor datetime. Otherwise how would you know

Re: [Python-Dev] collections.sortedtree

2014-03-31 Thread Dan Stromberg
vne On Mon, Mar 31, 2014 at 2:01 PM, Daniel Stutzbach stutzb...@google.com wrote: On Fri, Mar 28, 2014 at 6:45 PM, Dan Stromberg drsali...@gmail.com wrote: In my testing blist.sorteddict was dead last for random keys, and wasn't last but was still significantly underperforming for sequential

Re: [Python-Dev] Treating tokenize.Untokenizer as private

2014-03-31 Thread Eric Snow
On Mon, Mar 31, 2014 at 1:45 PM, Terry Reedy tjre...@udel.edu wrote: On 3/31/2014 2:30 PM, Eric Snow wrote: Is this still an open question, Terry? It is not currently for #9974 because after consideration of two proposed patches (one part of another issue), I decided that the conditions

Re: [Python-Dev] libpython added to ABI tracker

2014-03-31 Thread Nick Coghlan
On 1 Apr 2014 01:38, Victor Stinner victor.stin...@gmail.com wrote: 2014-03-31 13:38 GMT+02:00 Andrey Ponomarenko aponomare...@rosalab.ru: The public libpython API changes will be tracked here: http://upstream-tracker.org/versions/python_public_api.html For now I've excluded only symbols

[Python-Dev] Adding a readinto1 method to BufferedReader

2014-03-31 Thread Nikolaus Rath
Hello, The BufferedReader (and BufferedRWPair) classes both have a read1() method in addition to the regular read() method to bypass the internal buffer. This is quite useful if you need to do some buffered reading (e.g. to parse a header) followed by a lot of bulk data that you want to process