[issue15596] pickle: Faster serialization of Unicode strings

2012-08-09 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Amazing! Though, it would probably be good idea to benchmarks non-ASCII strings as well. -- ___ Python tracker ___ __

[issue15596] pickle: Faster serialization of Unicode strings

2012-08-09 Thread STINNER Victor
STINNER Victor added the comment: Last one: Python 3.2 vs patched Python 3.3. ned$ python3 perf.py -b fastpickle,pickle_dict,pickle_list,slowpickle ../3.2/python ../fasterpickle/python Running fastpickle... INFO:root:Running ../fasterpickle/python performance/bm_pickle.py -n 50 --use_cpickle p

[issue15610] PyImport_ImportModuleEx always fails in 3.3 with "ValueError: level must be >= 0"

2012-08-09 Thread Eric Snow
Eric Snow added the comment: > Changing the macro's expansion would be good enough IMO. Sounds good to me. > PyImport_ImportModuleLevel() is part of the stable API... >From what I understand, as long as the function header has not changed, the >stable ABI is still stable. > Can't we just dro

[issue12782] Multiple context expressions do not support parentheses for continuation across lines

2012-08-09 Thread Atsuo Ishimoto
Changes by Atsuo Ishimoto : -- nosy: +ishimoto ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue15612] Rewriter StringIO to use the _PyUnicodeWriter API

2012-08-09 Thread STINNER Victor
New submission from STINNER Victor: Attached patch rewrites the C implementation of StringIO to use the _PyUnicodeWriter API instead of the PyAccu API. It provides better performance when writing non-ASCII strings. The patch adds new functions: - _PyUnicodeWriter_Truncate() - _PyUnicodeWrit

[issue15612] Rewriter StringIO to use the _PyUnicodeWriter API

2012-08-09 Thread STINNER Victor
STINNER Victor added the comment: Results of my micro benchmark. Use attached bench_stringio.py with benchmark.py: https://bitbucket.org/haypo/misc/src/tip/python/benchmark.py Command: ./python benchmark.py script bench_stringio.py Common platform: CPU model: Intel(R) Core(TM) i7-2600 CPU

[issue15612] Rewriter StringIO to use the _PyUnicodeWriter API

2012-08-09 Thread STINNER Victor
Changes by STINNER Victor : -- type: -> performance ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue15612] Rewrite StringIO to use the _PyUnicodeWriter API

2012-08-09 Thread STINNER Victor
Changes by STINNER Victor : -- title: Rewriter StringIO to use the _PyUnicodeWriter API -> Rewrite StringIO to use the _PyUnicodeWriter API ___ Python tracker ___ __

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-08-09 Thread Eli Bendersky
Eli Bendersky added the comment: Attaching a new patch that fixes the with_* methods to be more consistent, and the relevant tests too. The doc is now consistent as well. For some reason IPv6Interface.with_netmask also returned the prefixlen representation. The test justified it by quoting RFC

[issue15567] threading.py contains undefined name in self-test code

2012-08-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 260f3ad7af4b by Brian Curtin in branch '2.7': Fix #15567. collections.deque wasn't imported http://hg.python.org/cpython/rev/260f3ad7af4b -- nosy: +python-dev ___ Python tracker

[issue15567] threading.py contains undefined name in self-test code

2012-08-09 Thread Brian Curtin
Changes by Brian Curtin : -- assignee: -> brian.curtin nosy: +brian.curtin resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue15613] argparse ArgumentDefaultsHelpFormatter interacts badly with --arg and nargs=+

2012-08-09 Thread Alex Jurkiewicz
New submission from Alex Jurkiewicz: Sample code: #!/usr/bin/env python import argparse print("\n\narg=foo, nargs=+") parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument('foo', nargs='+', help='foos', default=['foo1', 'foo2']) parser.pri

[issue15573] Support unknown formats in memoryview comparisons

2012-08-09 Thread Martin v . Löwis
Martin v. Löwis added the comment: haypo: thanks for stating the issue. ISTM that this classifies as an "obscure" bug: you have to use memoryviews, and you need to compare them for equality, and the comparison needs to be "non-trivial", where "trivial" is defined by "both are 1D byte arrays".

<    1   2