[issue4755] Add function to get common path prefix

2012-05-23 Thread anatoly techtonik
Changes by anatoly techtonik : -- nosy: +techtonik ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue14884] Windows Build instruction typo

2012-05-23 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: +eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue14886] json C vs pure-python implementation difference

2012-05-23 Thread Марк Коренберг
New submission from Марк Коренберг : Pure-python implementation: if isinstance(o, (list, tuple)): C implementation: if (PyList_Check(obj) || PyTuple_Check(obj)) This make real difference (!) in my code. So, please change pure-python implementation to: if type(o) in (list, tuple): O

[issue14886] json C vs pure-python implementation difference

2012-05-23 Thread Марк Коренберг
Changes by Марк Коренберг : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue14887] pysetup: unfriendly error message for unknown commands

2012-05-23 Thread Ronald Oussoren
New submission from Ronald Oussoren : The pysetup3 command gives a fairly unfriendly error message with python traceback when you specify an unknown command: pysetup3 instal Unrecognized action "instal" Traceback (most recent call last): File "/Library/Frameworks/PythonDev.framework/Version

[issue14885] shutil tests, test_copy2_xattr and test_copyxattr, fail

2012-05-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset ab94ed2a8012 by Hynek Schlawack in branch 'default': #14885: Make support.skip_unless_xattr check also tempfile http://hg.python.org/cpython/rev/ab94ed2a8012 -- nosy: +python-dev ___ Python tracker

[issue14885] shutil tests, test_copy2_xattr and test_copyxattr, fail

2012-05-23 Thread Hynek Schlawack
Hynek Schlawack added the comment: Awesome, thank you for your cooperation! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue14886] json C vs pure-python implementation difference

2012-05-23 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue14886] json C vs pure-python implementation difference

2012-05-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: What difference does it make? Are you using __instancecheck__ perhaps? -- nosy: +pitrou versions: -Python 3.1, Python 3.4 ___ Python tracker _

[issue1191964] asynchronous Subprocess

2012-05-23 Thread Ross Lagerwall
Ross Lagerwall added the comment: > Personally, I would factor out the code for Popen.communicate() in to a > > Communicator class which wraps a Popen object and has a method > >communicate(input, timeout=None) -> (bytes_written, output, error) How would this differ from the normal communi

[issue14884] Windows Build instruction typo

2012-05-23 Thread Michael Driscoll
Michael Driscoll added the comment: Here's a new patch that I think addresses both issues. Thanks for your insights. -- Added file: http://bugs.python.org/file25678/setup.patch ___ Python tracker _

[issue12271] Python 2.7.x on IA64 running SLES 11 SP1

2012-05-23 Thread Holger Mickler
Holger Mickler added the comment: I just stumbled upon the same problem with Python 2.7.3 on SLES 11 SP1 amd64. Obviously, SuSE puts the needed header file into /usr/include/ncurses/, and one can either create a symlink in /usr/include/ or apply a patch to _curses_panel.c: --- Modules/_curse

[issue12014] str.format parses replacement field incorrectly

2012-05-23 Thread Petri Lehtinen
Petri Lehtinen added the comment: Ben Wolfson wrote: > Maybe, but the last time it went to python-dev (in December) there > was little discussion at all, and the patches that exist now worked > on the codebase as it existed then. Maybe it's pointless to bring it up on python-dev then. I just th

[issue14879] invalid docs for subprocess exceptions with shell=True

2012-05-23 Thread R. David Murray
R. David Murray added the comment: Heh. Maybe what we ought to do is drop the shell argument and make everyone build their own shell invocations :) Actually, an API refactor where a shell call looks like this might be kind of cool: Popen(shell_cmd('echo magic')) where shell would return

[issue6721] Locks in python standard library should be sanitized on fork

2012-05-23 Thread Richard Oudkerk
Richard Oudkerk added the comment: > (1) Good catch. I suspect that this could be mitigated even if we cared > about LinuxThreads. I haven't looked, but there's got to be a way to > determine if we are a thread or a fork child. Using a generation count would probably work just as well as the

[issue12271] Python 2.7.x on IA64 running SLES 11 SP1

2012-05-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: invalid -> stage: committed/rejected -> versions: +Python 3.2, Python 3.3 ___ Python tracker ___

[issue14888] _md5 module crashes on large data

2012-05-23 Thread Antoine Pitrou
New submission from Antoine Pitrou : This appears to be 2.7-only: $ ./python -m test.regrtest -M5G -v test_hashlib == CPython 2.7.3+ (2.7:086afe7b61f5, May 23 2012, 15:15:34) [GCC 4.5.2] == Linux-2.6.38.8-desktop-10.mga-x86_64-with-mandrake-1-Official little-endian == /home/antoine/cpython/2

[issue14888] _md5 module crashes on large data

2012-05-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. -- keywords: +patch Added file: http://bugs.python.org/file25679/md5_huge.patch ___ Python tracker ___ ___

[issue14888] _md5 module crashes on large data

2012-05-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue14855] IPv6 support for logging.handlers

2012-05-23 Thread Yuriy Syrovetskiy
Yuriy Syrovetskiy added the comment: Can the datagramHandler.host change during execution? If so, the address family of the socket can change. So, we should create a socket for every new message. Check my patch #2. Also I extended socket.create_connection to support UDP. -- Added fil

[issue1191964] asynchronous Subprocess

2012-05-23 Thread Richard Oudkerk
Richard Oudkerk added the comment: > How would this differ from the normal communicate()? It would block until one of the following occurs: * some data has been written to stdin, * some data has been read from stdout or stderr, or * timeout passes (if timeout is not None). The normal communic

[issue14855] IPv6 support for logging.handlers

2012-05-23 Thread Yuriy Syrovetskiy
Yuriy Syrovetskiy added the comment: test_logging is not broken, but just fails. test test_logging failed -- Traceback (most recent call last): File "/home/cblp/my/cpython_default/Lib/test/test_logging.py", line 2903, in test_time self.assertEqual(f.formatTime(r), '1993-04-21 08:03:00,12

[issue14888] _md5 module crashes on large data

2012-05-23 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Does this affect other hash modules?. Why is this not affecting python 3? Patch looks good. -- nosy: +jcea ___ Python tracker ___ ___

[issue14888] _md5 module crashes on large data

2012-05-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Does this affect other hash modules? I don't know, only md5 seems to have tests for large data. > . Why is this not affecting python 3? The _md5 module was apparently rewritten in Python 3. -- ___ Python tracker

[issue14887] pysetup: unfriendly error message for unknown commands

2012-05-23 Thread Éric Araujo
Éric Araujo added the comment: Already reported, fixed in distutils2 and to be sideported to packaging soon. -- resolution: -> duplicate stage: needs patch -> committed/rejected status: open -> closed superseder: -> Don't print traceback for unrecognized actions, commands and options

[issue14889] PyBytes_FromObject(bytes_object) fails

2012-05-23 Thread Larry Hastings
New submission from Larry Hastings : If you pass a valid PyUnicodeObject into PyUnicode_AsObject(), it incref's the original object and returns it. If you pass a valid PyBytesObject into PyBytes_AsObject()... it fails. I assert that in the PyBytes_AsObject() should behave like PyUnicode_AsObje

[issue14889] PyBytes_FromObject(bytes_object) fails

2012-05-23 Thread Hynek Schlawack
Changes by Hynek Schlawack : -- nosy: +hynek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue14884] Windows Build instruction typo

2012-05-23 Thread Eli Bendersky
Eli Bendersky added the comment: Nitpicking: the drop down (in both VC++ 2008 & 2010 express) is named "Solution Configurations" [note the 's' in the end] But this name does now appear anywhere - only if you hover on the dropbox. I don't mind either way - either leave it what it was, or chang

[issue14884] Windows Build instruction typo

2012-05-23 Thread Michael Driscoll
Michael Driscoll added the comment: @ Eli - Sorry about that. I just went with Brian's wording on that. I didn't realize it was plural. My experience with Visual Studio is limited, although I hope to rectify that at some point. Anyway, I corrected the patch and attached it. Thanks! -

[issue14884] Windows Build instruction typo

2012-05-23 Thread Eli Bendersky
Eli Bendersky added the comment: LGTM. Brian, any objections to commit? P.S. Michael: I usually like numbering successive versions of a patch (like setup.1.patch, setup.2.patch, or a similar scheme) - this makes it easier to refer to more than one version in a discussion without getting confu

[issue14889] PyBytes_FromObject(bytes_object) fails

2012-05-23 Thread Larry Hastings
Larry Hastings added the comment: The appropriate four line patch. (Six with whitespace.) -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file25682/larry.pybytes_fromobject.identity.1.diff ___ Python tracke

[issue14884] Windows Build instruction typo

2012-05-23 Thread Brian Curtin
Brian Curtin added the comment: Looks good to me. Feel free to commit it, Eli. -- assignee: brian.curtin -> ___ Python tracker ___ _

[issue14889] PyBytes_FromObject(bytes_object) fails

2012-05-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I suppose you are referring to PyUnicode_FromObject() and PyBytes_FromObject()... And by "it fails" did you simply mean "it fails to return the same object"? -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue14889] PyBytes_FromObject(bytes_object) fails

2012-05-23 Thread Larry Hastings
Larry Hastings added the comment: 1) Yes, whoopsies. It's late. 2) It fails, as in, it returns NULL. -- ___ Python tracker ___ ___

[issue14775] Dict untracking can result in quadratic dict build-up

2012-05-23 Thread stw
stw added the comment: I had a thought about untracking tuples. If a tuple contains only immutable objects (atomics and tuples of atomics etc), then it should be untracked. Once untracked, it will never need to be tracked again since the tuple is immutable. If a tuple contains mutable objects

[issue14889] PyBytes_FromObject(bytes_object) fails

2012-05-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > 2) It fails, as in, it returns NULL. It's not my experience. Do you have an example? -- ___ Python tracker ___

[issue14889] PyBytes_FromObject(bytes_object) fails

2012-05-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, the patch is nice but the PyObject_CheckBuffer(...) part should have succeeded, so it's a bit mysterious why it doesn't. -- nosy: +pitrou ___ Python tracker ___

[issue14775] Dict untracking can result in quadratic dict build-up

2012-05-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I had a thought about untracking tuples. If a tuple contains only > immutable objects (atomics and tuples of atomics etc), then it should > be untracked. Once untracked, it will never need to be tracked again > since the tuple is immutable. If a tuple contains

[issue14888] _md5 module crashes on large data

2012-05-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I can't reproduce this issue in my 64 bit machines, neither in Solaris > neither in Ubuntu. I guess the assertion can be fooled by compiler > optimizacions. You should compile in debug mode. -- ___ Python tracker

[issue14888] _md5 module crashes on large data

2012-05-23 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: I can't reproduce this issue in my 64 bit machines, neither in Solaris neither in Ubuntu. I guess the assertion can be fooled by compiler optimizacions. As a consequence, I can't check other hashes functions. Antoine, can you reproduce it doing "md5.new("A"*

[issue14885] shutil tests, test_copy2_xattr and test_copyxattr, fail

2012-05-23 Thread Éric Araujo
Éric Araujo added the comment: FTR a few of us would prefer to kill TESTFN and use only tempfile in tests. It’s cleaner. -- nosy: +eric.araujo ___ Python tracker ___ _

[issue14889] PyBytes_FromObject(bytes_object) fails

2012-05-23 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue14890] typo in difflib

2012-05-23 Thread ninsen
Changes by ninsen : -- components: Library (Lib) files: mywork.patch keywords: patch nosy: ninsen priority: normal severity: normal status: open title: typo in difflib type: behavior versions: Python 2.7 Added file: http://bugs.python.org/file25683/mywork.patch _

[issue14890] typo in difflib

2012-05-23 Thread ninsen
Changes by ninsen : -- type: behavior -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue14884] Windows Build instruction typo

2012-05-23 Thread Michael Driscoll
Michael Driscoll added the comment: Thanks for the tip Eli. I'll try to remember to number my patches next time. This is my first time doing this. -- ___ Python tracker ___ ___

[issue14890] typo in difflib

2012-05-23 Thread ninsen
New submission from ninsen : This is my first patch. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue14885] shutil tests, test_copy2_xattr and test_copyxattr, fail

2012-05-23 Thread Hynek Schlawack
Hynek Schlawack added the comment: It _does_ seem to me like cruft. Ditching it won’t be easy though: $ grep -PR TESTFN Lib/test | wc -l 1390 But it’s good to know to actively avoid using TESTFN whenever possible. I usually adapted myself to module style till now. -- __

[issue14891] An error in bindings of closures

2012-05-23 Thread Frederick Ross
New submission from Frederick Ross : The following code throws an UnboundLocal error: def f(x): def g(): x = x + "a" return x return g() f("b") -- components: None messages: 161432 nosy: Frederick.Ross priority: normal severity: normal status: open title: An erro

[issue14890] typo in difflib

2012-05-23 Thread Hynek Schlawack
Hynek Schlawack added the comment: Hmmm, iff could be also meant as a abbreviation for “if and only if": http://en.wikipedia.org/wiki/Iff IIRC is the usage of such abbreviations rather frowned upon though. -- nosy: +hynek ___ Python tracker

[issue14775] Dict untracking can result in quadratic dict build-up

2012-05-23 Thread stw
stw added the comment: > I had a thought about untracking tuples. If a tuple contains only > immutable objects (atomics and tuples of atomics etc), then it should > be untracked. Once untracked, it will never need to be tracked again > since the tuple is immutable. If a tuple contains mutable ob

[issue14890] typo in difflib

2012-05-23 Thread Ross Lagerwall
Ross Lagerwall added the comment: Yeah, I'm pretty sure it means if and only if. -- nosy: +rosslagerwall ___ Python tracker ___ ___ P

[issue14775] Dict untracking can result in quadratic dict build-up

2012-05-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le mercredi 23 mai 2012 à 16:22 +, stw a écrit : > So the tuple is linked-in to the garbage collection list before its > contents are constructed? It is. It typically happens when you do (in C code): PyObject *my_tuple = PyTuple_New(2); /* compute some_obj

[issue14891] An error in bindings of closures

2012-05-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This is expected behavior: http://docs.python.org/faq/programming.html#why-am-i-getting-an-unboundlocalerror-when-the-variable-has-a-value -- nosy: +amaury.forgeotdarc resolution: -> invalid status: open -> closed __

[issue14888] _md5 module crashes on large data

2012-05-23 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: sha1 fails the same way. Same error. Just clone the test to show it. Please, correct sha1 too and add a test for it :). sha224, sha256, sha384 and sha512 seems OK. -- ___ Python tracker

[issue14888] _md5 module crashes on large data

2012-05-23 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: sha224, sha256, sha384 and sha512 are not failing because they are missing the "Py_SAFE_DOWNCAST" safety net completely. So I would tell that we have an issue here :). -- ___ Python tracker

[issue14888] _md5 module crashes on large data

2012-05-23 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Same can be said about Python 3 hash modules: they are not using the sanity check, so they work. Maybe the real question should be if the sanity check really makes sense at all. If not, remove everywhere (the calculated md5 with no checks looks correct, aft

[issue14888] _md5 module crashes on large data

2012-05-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > sha1 fails the same way. Same error. Just clone the test to show it. > > Please, correct sha1 too and add a test for it :). Well, do you want to provide an updated patch? -- ___ Python tracker

[issue14891] An error in bindings of closures

2012-05-23 Thread Frederick Ross
Frederick Ross added the comment: Assignment in Python creates a new binding. Whether the new binding shadows or replaces an old binding should be irrelevant. This behavior is inconsistent with that. Please fix expectations, and then Python interpreter. -- resolution: invalid -> stat

[issue14668] Document the path option in the Windows installer

2012-05-23 Thread Michael Driscoll
Michael Driscoll added the comment: Looking at 3.3.rst, it looks like we could just add the blurb to the end of the file in the "Other issues" section. The "windows.rst" file is potentially more complicated as I assume we need to leave the directions for adding the path for users that are usi

[issue13445] Enable linking the module pysqlite with Berkeley DB SQL instead of SQLite

2012-05-23 Thread Petri Lehtinen
Petri Lehtinen added the comment: Ok. Closing as wontfix then. -- resolution: -> wont fix stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue14884] Windows Build instruction typo

2012-05-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset e55c65fc3cb4 by Eli Bendersky in branch 'default': Issue #14884: fixed a couple of typos in the Windows build instructions. Patch by Michael Driscoll http://hg.python.org/devguide/rev/e55c65fc3cb4 -- nosy: +python-dev

[issue13934] sqlite3 test typo

2012-05-23 Thread Petri Lehtinen
Petri Lehtinen added the comment: poq: I see you have submitted a few other patches to the tracker, too. For us to be able to use your patches, you should sign the PSF Contributor Agreement as described here: http://www.python.org/psf/contrib/. --

[issue14884] Windows Build instruction typo

2012-05-23 Thread Eli Bendersky
Eli Bendersky added the comment: Done (with a tiny fix inserting parens to avoid ambiguity in a sentence). Thanks for the contribution! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue14862] os.__all__ is missing some names

2012-05-23 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- title: fdopen not listed in __all__ of os.py -> os.__all__ is missing some names ___ Python tracker ___ ___

[issue14862] os.__all__ is missing some names

2012-05-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 352147bbefdb by Petri Lehtinen in branch 'default': #14862: Add missing names to os.__all__ http://hg.python.org/cpython/rev/352147bbefdb -- nosy: +python-dev ___ Python tracker

[issue14862] os.__all__ is missing some names

2012-05-23 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue14891] An error in bindings of closures

2012-05-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: What fails here is the evaluation of "x", not the assignment! You are right concerning the assignment, the outer definition has no effect at all. The very presence of "x = " in the function code turns x into a local variable for the whole function; so

python-bugs-list@python.org

2012-05-23 Thread olivier-mattelaer
New submission from olivier-mattelaer : Hi Everyone, I have found a strange behavior of the import command for the routine readline: The commands (put in the file test.py) is simply: import readline print readline.__doc__ If I run this programs "normally" (i.e. python2.x test.py) everything r

[issue14893] Tutorial: Add function annotation example to function tutorial

2012-05-23 Thread Zachary Ware
New submission from Zachary Ware : A couple months ago, I had never before heard of function annotations and came across a function that had them (I don't remember where or what it was). I spent a fair bit of time searching fruitlessly to figure out what the heck that "->" in the function def

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-05-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0be296605165 by Sandro Tosi in branch 'default': Issue #14814: improve docstrings and arguments value handling, as per Terry J. Reedy's comments http://hg.python.org/cpython/rev/0be296605165 -- ___ Pyth

[issue14894] distutils.LooseVersion fails to compare number and a word

2012-05-23 Thread Natalia
New submission from Natalia : $ python2.7 -c 'from distutils.version import LooseVersion as V; print V("a") > V("1")' True $ python3.2 -c 'from distutils.version import LooseVersion as V; print(V("a") > V("b"))' False $ python3.2 -c 'from distutils.version import LooseVersion as V; print(V("a")

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-05-23 Thread Hynek Schlawack
Hynek Schlawack added the comment: A small bikeshed as it’s a new module: - there’s only one free line before _collapse_addresses_recursive, _get_prefix_length and _count_righthand_zero_bits. - class IPv6Address docstring has a \n too much - ip_interface, v4_int_to_packed, v6_int_to_packed ar

[issue14894] distutils.LooseVersion fails to compare number and a word

2012-05-23 Thread Piotr Ożarowski
Changes by Piotr Ożarowski : -- nosy: +piotr ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue14894] distutils.LooseVersion fails to compare number and a word

2012-05-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> needs patch versions: +Python 3.3 -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list ma

[issue14894] distutils.LooseVersion fails to compare number and a word

2012-05-23 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue14744] Use _PyUnicodeWriter API in str.format() internals

2012-05-23 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file25685/REPORT_32BIT_2.7_3.2_writer ___ Python tracker ___ ___ Python-bugs-li

[issue14744] Use _PyUnicodeWriter API in str.format() internals

2012-05-23 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file25686/REPORT_32BIT_3.3 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue14744] Use _PyUnicodeWriter API in str.format() internals

2012-05-23 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file25687/REPORT_64BIT_2.7_3.2_writer ___ Python tracker ___ ___ Python-bugs-li

[issue14744] Use _PyUnicodeWriter API in str.format() internals

2012-05-23 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file25688/REPORT_64BIT_3.3 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue14744] Use _PyUnicodeWriter API in str.format() internals

2012-05-23 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file25689/faa88c50a3d2.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-05-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset f4f2139202c5 by Sandro Tosi in branch 'default': Issue #14814: minor improvements as suggested by Hynek Schlawack http://hg.python.org/cpython/rev/f4f2139202c5 -- ___ Python tracker

[issue14888] _md5 module crashes on large data

2012-05-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 290d970c011d by Antoine Pitrou in branch '2.7': Issue #14888: Fix misbehaviour of the _md5 module when called on data larger than 2**32 bytes. http://hg.python.org/cpython/rev/290d970c011d -- nosy: +python-dev

[issue14888] _md5 module crashes on large data

2012-05-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've now pushed the fix. Jesus, if you want to propose a test and patch for the _sha1 issue, please open a separate issue. Thanks! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed __

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-05-23 Thread Sandro Tosi
Sandro Tosi added the comment: Thanks Hynek: comments committed -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue14744] Use _PyUnicodeWriter API in str.format() internals

2012-05-23 Thread STINNER Victor
STINNER Victor added the comment: Because I don't know what should be tested, I wrote a lot a tests in the bench_str.py script. To run the benchmark, use: ./python benchmark.py --file=FILE script bench_str.py Then to compare results: ./python benchmark.py compare_to FILE1 FILE2 FILE3 ... Do

[issue14744] Use _PyUnicodeWriter API in str.format() internals

2012-05-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: When posting benchmark numbers, can you please only compared patched against unpatched? I don't think we care about performance compared to 3.2 or 2.7 here, and it would make things more readable. -- ___ Python tra

[issue14744] Use _PyUnicodeWriter API in str.format() internals

2012-05-23 Thread STINNER Victor
STINNER Victor added the comment: For Python 3.3, _PyUnicodeWriter API is faster than the Py_UCS4 buffer API and PyAccu API in quite all cases, with a speedup between 30% and 100%. But there are some cases where the _PyUnicodeWriter API is slower: fmt="x={}"; arg=12.345; fmt.format(arg) fmt="

[issue14744] Use _PyUnicodeWriter API in str.format() internals

2012-05-23 Thread STINNER Victor
STINNER Victor added the comment: > When posting benchmark numbers, can you please only compared > patched against unpatched? Here you have: REPORT_64BIT_PATCH. -- Added file: http://bugs.python.org/file25690/REPORT_64BIT_PATCH ___ Python tracker <

[issue14744] Use _PyUnicodeWriter API in str.format() internals

2012-05-23 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file25689/faa88c50a3d2.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue14744] Use _PyUnicodeWriter API in str.format() internals

2012-05-23 Thread STINNER Victor
STINNER Victor added the comment: faster-format.patch: Patch for Python 3.3 optimizing str%args and str.format(args), use _PyUnicodeWriter deeper in formatting. The patch uses different optimizations: * if the result is just a string, copy the string by reference, don't copy it by value. It'

[issue14895] test_warnings.py EnvironmentVariableTests is a bad test

2012-05-23 Thread Miki Tebeka
New submission from Miki Tebeka : EnvironmentVariableTests depends on format of string representation of objects. While working on Jython 2.7 the test failed due to: AssertionError: "[u'ignore::DeprecationWarning']" != "['ignore::DeprecationWarning']" Attached is a patch to get the output

[issue14892] 'import readline' hangs when launching with '&' on BSD and OS X

2012-05-23 Thread Ned Deily
Ned Deily added the comment: I took a quick look at this. It's not just OS X, the following also fails on FreeBSD 8.2: $ python2.7 -c 'import readline' $ $ python2.7 -c 'import readline' & $ [1] + Stopped (tty output)python2.7 -c ?import readline It seems to be hanging on a read from st

[issue14895] test_warnings.py EnvironmentVariableTests is a bad test

2012-05-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +brett.cannon versions: +Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list maili

[issue14894] distutils.LooseVersion fails to compare number and a word

2012-05-23 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. How did you find this? According to the doc of LooseVersion, 'a' is not valid, so I would like a real example to accept this as a bug. -- ___ Python tracker

[issue14894] distutils.LooseVersion fails to compare number and a word

2012-05-23 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On May 23, 2012, at 10:13 PM, Éric Araujo wrote: > >Thanks for the report. How did you find this? According to the doc of >LooseVersion, 'a' is not valid, so I would like a real example to accept this >as a bug. It works in Python 2.7 so I think it was view

[issue14895] test_warnings.py EnvironmentVariableTests is a bad test

2012-05-23 Thread Philip Jenvey
Philip Jenvey added the comment: Jython's sys.warnoptions should probably just contain strs instead of unicode. Otherwise I suspect unicode values could break the warnings module's usage of it -- nosy: +pjenvey ___ Python tracker

[issue14469] Python 3 documentation links

2012-05-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue14893] Tutorial: Add function annotation example to function tutorial

2012-05-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: This looks like a reasonable addition to the tutorial :-) -- nosy: +rhettinger ___ Python tracker ___ __

[issue14893] Tutorial: Add function annotation example to function tutorial

2012-05-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +eric.araujo, ezio.melotti stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mail

[issue6721] Locks in python standard library should be sanitized on fork

2012-05-23 Thread lesha
lesha added the comment: > So what are you suggesting? That a lock of the default type should > raise an error if you try to acquire it when it has been acquired in a > previous process? I was suggesting a way to make 'logging' fork-safe. No more, no less. Does what my previous comment make

  1   2   >