[issue14897] struct.pack raises unexpected error message

2012-05-23 Thread mesheb82
mesheb82 added the comment: Also, I tested this on Windows in Python 3.2.3 and Windows in Python 2.7.2 -- ___ Python tracker ___ ___

[issue14897] struct.pack raises unexpected error message

2012-05-23 Thread mesheb82
New submission from mesheb82 : I found some unexpected behavior while working with the struct module. >>> import struct This works as expected: >>> struct.pack('1s1s','3','4') '34' In this case, with bad input, the error message says I need 2 arguments, when I provide 2 arguments. >>> struct.p

[issue14877] No option to run bdist_wininst against newer msvc versions on non-windows systems

2012-05-23 Thread Aaron Staley
Aaron Staley added the comment: Hi Eric, Quick rundown: There are template 'exe' inside distutils/command. bdist_wininst appends to the template to build a customized installer. First the 64 bit bug: http://bugs.python.org/issue6792 With that bug active, I must be able to make 64 bit window

[issue14877] No option to run bdist_wininst against newer msvc versions on non-windows systems

2012-05-23 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. I know little about the wininst code in distutils; can you explain if this is a bug (i.e. bdist_wininst in 2.7 must use wininst-9.0-etc.exe or the installers won’t work) or a feature request (i.e. a new option to allow using newer exe fil

[issue14886] json C vs pure-python implementation difference

2012-05-23 Thread Alexey Smirnov
Changes by Alexey Smirnov : -- nosy: +alexey-smirnov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue968430] error flattening complex smime signed message

2012-05-23 Thread R. David Murray
Changes by R. David Murray : -- versions: -Python 2.7, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue968430] error flattening complex smime signed message

2012-05-23 Thread R. David Murray
Changes by R. David Murray : -- components: +email -Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue968430] error flattening complex smime signed message

2012-05-23 Thread R. David Murray
R. David Murray added the comment: I think if we can fix issue 1590744, this will be completely fixed. -- assignee: r.david.murray -> dependencies: +mail message parsing glitch ___ Python tracker ___

[issue6942] email.generator.Generator memory consumption

2012-05-23 Thread R. David Murray
Changes by R. David Murray : -- assignee: r.david.murray -> components: +email -Library (Lib) ___ Python tracker ___ ___ Python-bugs-l

[issue11785] email subpackages documentation problems

2012-05-23 Thread R. David Murray
Changes by R. David Murray : -- assignee: r.david.murray -> components: +email nosy: +barry type: -> behavior versions: +Python 2.7 -Python 3.1 ___ Python tracker ___ _

[issue14896] plistlib handling of real datatype

2012-05-23 Thread Ned Deily
Ned Deily added the comment: This should no longer be an issue on most platforms as of Python 2.7 and Python 3.1. Both added a new algorithm such that "the repr() of a floating-point number x now returns a result based on the shortest decimal string that’s guaranteed to round back to x under

[issue8898] The email package should defer to the codecs module for all aliases

2012-05-23 Thread R. David Murray
Changes by R. David Murray : -- assignee: r.david.murray -> components: +email -Library (Lib) nosy: +barry ___ Python tracker ___ ___

[issue1590744] mail message parsing glitch

2012-05-23 Thread R. David Murray
R. David Murray added the comment: I think I can actually fix this once the patch in issue 14731 is applied. -- assignee: r.david.murray -> components: +email -Library (Lib) dependencies: +Enhance Policy framework in preparation for adding email6 policies as provisional versions: -Py

[issue9874] Message.attach() loses empty attachments

2012-05-23 Thread R. David Murray
R. David Murray added the comment: And now it's been long enough that I lost the email :( -- assignee: r.david.murray -> components: +email -Library (Lib) nosy: +barry versions: +Python 3.3 -Python 3.1 ___ Python tracker

[issue11021] email MIME-Version headers for each part in multipart message

2012-05-23 Thread R. David Murray
Changes by R. David Murray : -- assignee: r.david.murray -> components: +email -Library (Lib) nosy: +barry ___ Python tracker ___ ___

[issue12586] Provisional new email API: new policy implementing custom header objects

2012-05-23 Thread R. David Murray
Changes by R. David Murray : Added file: http://bugs.python.org/file25693/email6.patch ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue12586] Provisional new email API: new policy implementing custom header objects

2012-05-23 Thread R. David Murray
Changes by R. David Murray : Removed file: http://bugs.python.org/file25655/email6.patch ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue14886] json C vs pure-python implementation difference

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

[issue14886] json C vs pure-python implementation difference

2012-05-23 Thread Марк Коренберг
Марк Коренберг added the comment: #!/usr/bin/python2.7 import json class pseudo_list(object): __class__ = list # fake isinstance def __init__(self, iterator): self._saved_iterator = iterator def __iter__(self): return self._saved_iterator class myenc(json.JSONEnc

[issue12029] Catching virtual subclasses in except clauses

2012-05-23 Thread Jim Jewett
Jim Jewett added the comment: When does the performance hit occur? If it is only when an exception has been raised, and its own class is not listed by the except clause, then I personally wouldn't worry about it; tracing the MRO *could* get arbitrarily long already; it just doesn't in practic

[issue13400] packaging: build command should have options to control byte-compilation

2012-05-23 Thread Julien Courteau
Julien Courteau added the comment: It is possible to only change the "frontend" (options: byte-compile, compile, no-byte-compile, optimize) without changing the "backend" (attributes: compile and optimize). This way it is then easy to handle both sets of options (no-byte-compile, byte-compile

[issue14896] plistlib handling of real datatype

2012-05-23 Thread Peter VG
New submission from Peter VG : Since strings cannot reliably be converted to floats and back, plistlib should provide an option to treat the real datatype as strings/data or to use the Decimal library class. Currently, reading and then writing a real value can change its representation in the

[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

[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

[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 ___ __

[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

[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

[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

[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

[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

[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 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

[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'

[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: > 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
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 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: 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

[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

[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 __

[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

[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

[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

[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/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/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/file25685/REPORT_32BIT_2.7_3.2_writer ___ Python tracker ___ ___ Python-bugs-li

[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

[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 Piotr Ożarowski
Changes by Piotr Ożarowski : -- nosy: +piotr ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[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 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 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

[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

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

[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

[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 ___ __

[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 : -- title: fdopen not listed in __all__ of os.py -> os.__all__ is missing some names ___ Python tracker ___ ___

[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

[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 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

[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 ___ __

[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

[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

[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

[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 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: 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

[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 __

[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

[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 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 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

[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

[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. -- __

[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://

[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
Changes by ninsen : -- type: behavior -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[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 _

[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.

[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 ___ _

[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"*

[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

[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

[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 ___

[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 ___

[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 Larry Hastings
Larry Hastings added the comment: 1) Yes, whoopsies. It's late. 2) It fails, as in, it returns NULL. -- ___ 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

[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 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 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

[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: 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

[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

[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

[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

[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

[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 ___ ___

  1   2   >