[issue18129] Fatal Python error: Cannot recover from stack overflow.

2013-10-03 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> duplicate status: open -> closed superseder: -> Interpreter aborts when chaining an infinite number of exceptions ___ Python tracker _

[issue18129] Fatal Python error: Cannot recover from stack overflow.

2013-10-03 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue19160] Inconsistent size for GIL release in hashlib

2013-10-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset bfebfadfc4aa by Jesus Cea in branch '3.3': Close #19160: Inconsistent size for GIL release in hashlib http://hg.python.org/cpython/rev/bfebfadfc4aa New changeset 989ea05b2500 by Jesus Cea in branch 'default': MERGE: Close #19160: Inconsistent size f

[issue19160] Inconsistent size for GIL release in hashlib

2013-10-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 310c26df3234 by Jesus Cea in branch '3.3': Close #19160: Inconsistent size for GIL release in hashlib http://hg.python.org/cpython/rev/310c26df3234 New changeset 9503097ce1b7 by Jesus Cea in branch 'default': MERGE: Close #19160: Inconsistent size f

[issue19160] Inconsistent size for GIL release in hashlib

2013-10-03 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: For extra safety, I just checked the source of 3.4: """ #define HASHLIB_GIL_MINSIZE 2048 [...] if (self->lock == NULL && view.len >= HASHLIB_GIL_MINSIZE) { [...] if (view.len >= HASHLIB_GIL_MINSIZE) { [...] if (len >= HASHLIB_GIL_MINSIZE) { """ So, yes,

[issue19160] Inconsistent size for GIL release in hashlib

2013-10-03 Thread Berker Peksag
Berker Peksag added the comment: It looks like it is 2048: http://hg.python.org/cpython/rev/f9f5d9047a05/ See also issue 4751. -- nosy: +berker.peksag ___ Python tracker ___ ___

[issue19160] Inconsistent size for GIL release in hashlib

2013-10-03 Thread Jesús Cea Avión
New submission from Jesús Cea Avión: In http://docs.python.org/3.3/library/hashlib.html there is a contradiction: """ For better multithreading performance, the Python GIL is released for strings of more than 2047 bytes at object creation or on update. [...] Changed in version 3.1: The Python

[issue19159] 2to3 incorrectly converts two parameter unicode() constructor to str()

2013-10-03 Thread Gregory P. Smith
New submission from Gregory P. Smith: >From a conversion through 2to3: < default_value=unicode("", "utf-8"), --- > default_value=str("", "utf-8"), The Python 2 unicode constructor takes an optional second parameter which is the codec to use to convert when the first parameter is no

[issue19158] BoundedSemaphore.release() subject to races

2013-10-03 Thread Tim Peters
New submission from Tim Peters: I'm sure this flaw exists on more than just the current default branch, but didn't check. BoundedSemaphore.release() doesn't quite do what it thinks it's doing. By eyeball, the code obviously suffers from a small timing hole: multiple threads releasing at the

[issue19157] ipaddress.IPv6Network.hosts function omits network and broadcast addresses

2013-10-03 Thread Michiel
New submission from Michiel: (See also: http://stackoverflow.com/q/19159168/1298153. This is my first bug submission) Contrary to IPv4, IPv6 does not have a concept of network and broadcast addresses. It looks like the same code is used to generate the hosts for both IPv4 and IPv6, resulting i

[issue19152] ExtensionFileLoader missing get_filename()

2013-10-03 Thread Eric Snow
Eric Snow added the comment: Good point. -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue19146] Improvements to traceback module

2013-10-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Well this is what I get: > > $ python3 > Python 3.4.0a1+ (default:41de6f0e62fd+, Aug 27 2013, 18:44:07) > [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> from colle

[issue19146] Improvements to traceback module

2013-10-03 Thread Guido van Rossum
Guido van Rossum added the comment: Well this is what I get: $ python3 Python 3.4.0a1+ (default:41de6f0e62fd+, Aug 27 2013, 18:44:07) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from collections impor

[issue19156] Enum helper functions test-coverage

2013-10-03 Thread CliffM
New submission from CliffM: Added some tests for the _is_sunder and _is_dunder helper functions in the enum module. -- components: Tests files: enum.patch keywords: patch messages: 198923 nosy: CliffM priority: normal severity: normal status: open title: Enum helper functions test-cover

[issue19146] Improvements to traceback module

2013-10-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > And adding __slots__ to a namedtuple subclass doesn't work. Are you sure? I do it all the time. -- nosy: +pitrou ___ Python tracker ___ _

[issue19152] ExtensionFileLoader missing get_filename()

2013-10-03 Thread Berker Peksag
Berker Peksag added the comment: It would be good to add a versionadded(or versionchanged) tag. -- nosy: +berker.peksag versions: -Python 3.3 ___ Python tracker ___

[issue19152] ExtensionFileLoader missing get_filename()

2013-10-03 Thread Eric Snow
Eric Snow added the comment: Thanks for noticing that, Brett. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list ma

[issue19152] ExtensionFileLoader missing get_filename()

2013-10-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7ed717bd5faa by Eric Snow in branch '3.3': [issue19152] Revert 832579dbafd6. http://hg.python.org/cpython/rev/7ed717bd5faa -- ___ Python tracker __

[issue19152] ExtensionFileLoader missing get_filename()

2013-10-03 Thread Eric Snow
Eric Snow added the comment: Dang it. I was thinking of it as a bug that the method wasn't there, but you're right regardless. Revert coming. -- ___ Python tracker ___ ___

[issue19152] ExtensionFileLoader missing get_filename()

2013-10-03 Thread Brett Cannon
Changes by Brett Cannon : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue19152] ExtensionFileLoader missing get_filename()

2013-10-03 Thread Brett Cannon
Brett Cannon added the comment: Actually you need to back out the 3.3 commit. That's a new API in a bugfix release and that's bad. -- ___ Python tracker ___

[issue19155] Display stack info with color in pdb (the "w" command)

2013-10-03 Thread Peng Yu
New submission from Peng Yu: Currently, the "w" command does not show the stack info in color. I think that it might be visually helpful to add some color to emphasize the current frame, etc. May I suggest to add this feature to pdb? Thanks. -- messages: 198916 nosy: Peng.Yu priority:

[issue19087] bytearray front-slicing not optimized

2013-10-03 Thread STINNER Victor
STINNER Victor added the comment: bytea_slice3.patch looks simpler than bytea_slice2.patch, I prefer it. -- ___ Python tracker ___ __

[issue19151] Docstring and WindowsRegistryFinder wrong relative to importlib._bootstrap._get_supported_file_loaders()

2013-10-03 Thread Eric Snow
Changes by Eric Snow : -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue19152] ExtensionFileLoader missing get_filename()

2013-10-03 Thread Eric Snow
Changes by Eric Snow : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Python

[issue19152] ExtensionFileLoader missing get_filename()

2013-10-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 832579dbafd6 by Eric Snow in branch '3.3': [issue19152] Add ExtensionFileLoader.get_filename(). http://hg.python.org/cpython/rev/832579dbafd6 -- ___ Python tracker ___

[issue19151] Docstring and WindowsRegistryFinder wrong relative to importlib._bootstrap._get_supported_file_loaders()

2013-10-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 32b18998a560 by Eric Snow in branch '3.3': [issue19151] Fix docstring and use of _get_suppported_file_loaders() to reflect 2-tuples. http://hg.python.org/cpython/rev/32b18998a560 -- ___ Python tracker <

[issue17442] code.InteractiveInterpreter doesn't display the exception cause

2013-10-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +georg.brandl, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue18986] Add a case-insensitive case-preserving dict

2013-10-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Raymond, have you had time to look at this? -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue19087] bytearray front-slicing not optimized

2013-10-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a slightly modified patch implementing Serhiy's suggestion. -- Added file: http://bugs.python.org/file31954/bytea_slice3.patch ___ Python tracker __

[issue19151] Docstring and WindowsRegistryFinder wrong relative to importlib._bootstrap._get_supported_file_loaders()

2013-10-03 Thread Eric Snow
Eric Snow added the comment: As with #19152, I'll need to backport this to 3.3. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue19151] Docstring and WindowsRegistryFinder wrong relative to importlib._bootstrap._get_supported_file_loaders()

2013-10-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset a329474cfe0c by Eric Snow in branch 'default': [issue19151] Fix issue number in Misc/NEWS entry. http://hg.python.org/cpython/rev/a329474cfe0c -- nosy: +python-dev ___ Python tracker

[issue19151] Docstring and WindowsRegistryFinder wrong relative to importlib._bootstrap._get_supported_file_loaders()

2013-10-03 Thread Eric Snow
Eric Snow added the comment: changeset: 85941:152f7235667001fe7cb3c90ad79ab421ef8c03bb user:Eric Snow date:Thu Oct 03 12:08:55 2013 -0600 summary: [issue19951] Fix docstring and use of _get_suppported_file_loaders() to reflect 2-tuples. (wrong issue # in commit message)

[issue19152] ExtensionFileLoader missing get_filename()

2013-10-03 Thread Eric Snow
Eric Snow added the comment: I realized after I committed that this should probably be back-ported to 3.3. I'll take care of that in a few hours. -- ___ Python tracker ___

[issue19152] ExtensionFileLoader missing get_filename()

2013-10-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0d079c66dc23 by Eric Snow in branch 'default': [issue19152] Add ExtensionFileLoader.get_filename(). http://hg.python.org/cpython/rev/0d079c66dc23 -- nosy: +python-dev ___ Python tracker

[issue19014] Allow memoryview.cast() for empty views

2013-10-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Antoine. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue19154] AttributeError: 'NoneType' in http/client.py when using select when file descriptor is closed.

2013-10-03 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue19014] Allow memoryview.cast() for empty views

2013-10-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Applied Stefan's suggestion. Thanks for the review :) -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker __

[issue19014] Allow memoryview.cast() for empty views

2013-10-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset b08e092df155 by Antoine Pitrou in branch '3.3': Issue #19014: memoryview.cast() is now allowed on zero-length views. http://hg.python.org/cpython/rev/b08e092df155 New changeset 1e13a58c1b92 by Antoine Pitrou in branch 'default': Issue #19014: memory

[issue19154] AttributeError: 'NoneType' in http/client.py when using select when file descriptor is closed.

2013-10-03 Thread Florent Viard
New submission from Florent Viard: In Lib/http/client.py +682(Formerly httplib) def fileno(self): return self.fp.fileno() This function should be modified to be able to handle the case where the http request is already completed and so "fp" is closed. Ex.: def fileno(self):

[issue18805] ipaddress netmask/hostmask parsing bugs

2013-10-03 Thread pmoody
pmoody added the comment: I've got a patch from pmarks that I've applied to ipaddr and the google code version of ipaddress-py. I'll get it applied to the hg ipaddress. -- ___ Python tracker __

[issue19153] Embedding into a shared library fails again

2013-10-03 Thread Rinat
New submission from Rinat: I have same error as here described http://bugs.python.org/issue4434 I made everythings according this article http://docs.python.org/2/extending/embedding.html#compiling-and-linking-under-unix-like-systems and more but when i try to call interpriter from C++ it fail

[issue19108] Benchmark runner tries to execute external Python command and fails on error reporting

2013-10-03 Thread Brett Cannon
Brett Cannon added the comment: I want to only accept major.minor version specifications; how that is done on the command-line I don't care and leave up to you. And yes, the version may be used in the future to disable tests that e.g. don't work on Python 3.4 like Chameleon. -- _

[issue19108] Benchmark runner tries to execute external Python command and fails on error reporting

2013-10-03 Thread Stefan Behnel
Stefan Behnel added the comment: I'm having trouble understanding your last comment. Are you saing that you want the exact value to be a two digits version and therefore use separate arguments for both Pythons (e.g. "--basever 2.7 --cmpver 3.3"), or that you want it to accept two digit version

[issue19021] AttributeError in Popen.__del__

2013-10-03 Thread Richard Oudkerk
Richard Oudkerk added the comment: > Well, perhaps we can special-case builtins not to be "wiped" at shutdown. > However, there is another problem here in that the Popen object survives > until the builtins module is wiped. This should be investigated too. Maybe it is because it uses the evil r

[issue19152] ExtensionFileLoader missing get_filename()

2013-10-03 Thread Brett Cannon
Brett Cannon added the comment: Just an oversight. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue19151] Docstring and WindowsRegistryFinder wrong relative to importlib._bootstrap._get_supported_file_loaders()

2013-10-03 Thread Brett Cannon
Brett Cannon added the comment: LGTM; just watch any Windows buildbot for possible failure. -- ___ Python tracker ___ ___ Python-bugs-

[issue19108] Benchmark runner tries to execute external Python command and fails on error reporting

2013-10-03 Thread Brett Cannon
Brett Cannon added the comment: I should mention any solution for the command-line should take a N.N value *only* and not just 2/3 for instances where tests do not work with the latest version of Python yet. -- ___ Python tracker

[issue19021] AttributeError in Popen.__del__

2013-10-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > There is a regression in 3.4 due to changes in shutdown procedure. This > code correctly works in 3.3. There are more than a dozen places in the > stdlib which rely upon accessibility of builtins. Well, perhaps we can special-case builtins not to be "wiped"

[issue18725] Multiline shortening

2013-10-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could anyone please review the patch? -- keywords: +needs review ___ Python tracker ___ ___ Python

[issue19141] Windows Launcher fails to respect PATH

2013-10-03 Thread Mark Hammond
Mark Hammond added the comment: > I am trying to draw attention to the situation where the script has no > shebang line, and there is no other explicit configuration info for > py.exe. In that case, the user should just type "python scriptname.py" - py.exe is for cases where just specifying "py

[issue19014] Allow memoryview.cast() for empty views

2013-10-03 Thread Stefan Krah
Stefan Krah added the comment: Ok, I think the main reason for disallowing zeros in view->shape here was that casts are undefined if also the "shape" argument is given: x = memoryview(b'') x.cast('d', shape=[1]) Now, this case *is* already caught at a later stage, since there isn't enough space

[issue19143] Finding the Windows version getting messier

2013-10-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue18965] 2to3 can produce illegal bytes literals

2013-10-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file31952/2to3_nonascii_bytes.patch ___ Python tracker ___ ___ Python-bugs-

[issue18965] 2to3 can produce illegal bytes literals

2013-10-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Backported to 2.7. -- Added file: http://bugs.python.org/file31953/2to3_nonascii_bytes-2.7.patch ___ Python tracker ___ __

[issue18037] 2to3 passes through string literal which causes SyntaxError in 3.x

2013-10-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue18965] 2to3 can produce illegal bytes literals

2013-10-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added a test. -- Added file: http://bugs.python.org/file31952/2to3_nonascii_bytes.patch ___ Python tracker ___ ___

[issue18965] 2to3 can produce illegal bytes literals

2013-10-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file31657/2to3_nonascii_bytes.patch ___ Python tracker ___ ___ Python-bugs-

[issue18037] 2to3 passes through string literal which causes SyntaxError in 3.x

2013-10-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5e8de100f708 by Serhiy Storchaka in branch '2.7': Issue #18037: 2to3 now escapes '\u' and '\U' in native strings. http://hg.python.org/cpython/rev/5e8de100f708 New changeset 5950dd4cd9ef by Serhiy Storchaka in branch '3.3': Issue #18037: 2to3 now es

[issue19152] ExtensionFileLoader missing get_filename()

2013-10-03 Thread Eric Snow
New submission from Eric Snow: Any reason why ExtensionFileLoader does not implement get_filename()? I'm guessing it just slipped through the cracks. It should be there (and be registered as implementing ExecutionLoader). -- assignee: eric.snow components: Interpreter Core messages: