[issue22165] Empty response from http.server when directory listing contains invalid unicode

2014-08-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for the review Senthil. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue22165] Empty response from http.server when directory listing contains invalid unicode

2014-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset f180a9156cc8 by Serhiy Storchaka in branch '3.4': Issue #22165: SimpleHTTPRequestHandler now supports undecodable file names. http://hg.python.org/cpython/rev/f180a9156cc8 New changeset 3153a400b739 by Serhiy Storchaka in branch 'default': Issue #22

[issue20184] Derby #16: Convert 50 sites to Argument Clinic across 9 files

2014-08-16 Thread Nick Coghlan
Nick Coghlan added the comment: (Well, they'll support it in 3.5...) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue20184] Derby #16: Convert 50 sites to Argument Clinic across 9 files

2014-08-16 Thread Nick Coghlan
Nick Coghlan added the comment: 30 of the builtin functions now support signature introspection thanks to Argument Clinic :) -- ___ Python tracker ___ __

[issue20184] Derby #16: Convert 50 sites to Argument Clinic across 9 files

2014-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6219aa966a5f by Nick Coghlan in branch 'default': Issue #20184: Add signature introspection for 30 of the builtins http://hg.python.org/cpython/rev/6219aa966a5f -- nosy: +python-dev ___ Python tracker

[issue15512] Correct __sizeof__ support for parser

2014-08-16 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Revision aceb975c4832 added useless '#ifndef Py_LIMITED_API' check in 2.7 branch. Support for Py_LIMITED_API was introduced in Python 3.2. -- nosy: +Arfrever ___ Python tracker

[issue4591] 32-bits unsigned user/group identifier

2014-08-16 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Revision 035cbc654889 added useless '#ifndef Py_LIMITED_API' check in 2.7 branch. Support for Py_LIMITED_API was introduced in Python 3.2. -- nosy: +Arfrever ___ Python tracker

[issue22193] Add _PySys_GetSizeOf()

2014-08-16 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Revision b5114747d3ed added useless '#ifndef Py_LIMITED_API' check in 2.7 branch. Support for Py_LIMITED_API was introduced in Python 3.2. -- nosy: +Arfrever ___ Python tracker

[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2014-08-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe your 3. is my 1b. It really requires being able to change preference for an extension without editing ~HOME/.idlerc/config-extensions.cfg by hand. See #3068. -- ___ Python tracker

[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2014-08-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 3. Make the checkmark toggle local to the window and make the preferences option toggle default value to all windows. This is how it works in Kate (KDE text editor). -- ___ Python tracker

[issue22212] zipfile.py fails if zlib.so module fails to build.

2014-08-16 Thread John Malmberg
New submission from John Malmberg: If the zlib.so fails to build while building python, subsequent runs of setup.py fail, which prevents a trying again to build zlib.so after the issue is fixed unless all the .so modules built are deleted. File "/PRJ_ROOT/CPYTHON/Lib/zipfile.py", line 20, i

[issue22201] python -mzipfile fails to unzip files with folders created by zip

2014-08-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka stage: -> patch review type: -> behavior versions: +Python 2.7, Python 3.5 ___ Python tracker __

[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2014-08-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe the line number behavior Ned describes is the same as the Code Context behavior. I just tested the latter to verify Saimadhav's email report. I think both *should* be the same. The docs say Code Context is a toggle. However, it does not mention the

[issue22211] Remove VMS specific code in expat.h & xmlrole.h

2014-08-16 Thread John Malmberg
New submission from John Malmberg: The Modules/expat/expat.h and Modules/expat/xmlrole.h contain VMS specific code that actually breaks building python 3.5 on VMS. Per http://bugs.python.org/issue16136, such VMS specific code should be removed for Python 3.5. This code may still be needed fo

[issue22210] pdb-run-restarting-a-pdb-session

2014-08-16 Thread Ned Deily
Ned Deily added the comment: Without more information, it is hard to know exactly what problem you are seeing but it appears you are trying to run pdb from within the tornado web server. That may be difficult to do; I'm guessing that the pdb debugger main loop does not play well with an event

[issue22157] _ctypes on ppc64: libffi/src/powerpc/linux64.o: ABI version 1 is not compatible with ABI version 2 output

2014-08-16 Thread Ned Deily
Changes by Ned Deily : -- nosy: +doko, meador.inge -ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue22195] Make it easy to replace print() calls with logging calls

2014-08-16 Thread Vinay Sajip
Vinay Sajip added the comment: > but still not very elegant. You're also repeating the stream on every > occurrence, so easy to leave it out by mistake. It might need more work to make a LoggerWriter work with sys.stdout [i.e. allowing sys.stdout = LoggerWriter()], which seems to be the only w

[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2014-08-16 Thread Ned Deily
Ned Deily added the comment: >> 1. With Tk 8.4, the extension gets a bit further but still fails: >I fixed this now. Please let me know how it works now. Yep, 8.4 now seems to work just fine. >> 2. I just noticed that the (now) "Line Number" menu item has no visual >> indication of its state

[issue22201] python -mzipfile fails to unzip files with folders created by zip

2014-08-16 Thread Ryan Wilson
Ryan Wilson added the comment: The reason behind this was that zipfile.py currently handles empty directories in zipfiles incorrectly. On lines 1774 - 1778 in Lib/zipfile.py: tgtdir = os.path.dirname(tgt) if not os.path.exists(tgtdir): os.makedirs(tgtdir) with open(tgt, 'wb') as fp: fp

[issue22165] Empty response from http.server when directory listing contains invalid unicode

2014-08-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file36388/issue22165_2.patch ___ Python tracker ___ ___ Python-bugs-list mail

[issue22165] Empty response from http.server when directory listing contains invalid unicode

2014-08-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch with a test. -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-b

[issue22195] Make it easy to replace print() calls with logging calls

2014-08-16 Thread Martin Matusiak
Martin Matusiak added the comment: Hm, on this model you still have to go and update all your print() statements with the file= argument. That's less invasive than replacing them with logger.info(), but still not very elegant. You're also repeating the stream on every occurrence, so easy to le

[issue22165] Empty response from http.server when directory listing contains invalid unicode

2014-08-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: Attached patch looks good to me. If an unittest can be provided for this situation in test_httpservers.py it will be comprehensive and will be good to go. -- nosy: +orsenthil ___ Python tracker

[issue8797] urllib2 basicauth broken in 2.6.5: RuntimeError: maximum recursion depth exceeded in cmp

2014-08-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: @Serhiy, yeah, I think the patch attached to issue22165 will fix one of the buildbot failures. For this issue. there was another one with Broken PIPE which may need a different fix. -- ___ Python tracker

[issue8797] urllib2 basicauth broken in 2.6.5: RuntimeError: maximum recursion depth exceeded in cmp

2014-08-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: May be issue22165 patch fixes this test failure. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue8797] urllib2 basicauth broken in 2.6.5: RuntimeError: maximum recursion depth exceeded in cmp

2014-08-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: I have backed out my changes. The buildbot failures were new as I could not reproduce them in my local test on Mac. I will run the buildbot suite on branch and fix it before committing. -- ___ Python tracker

[issue8797] urllib2 basicauth broken in 2.6.5: RuntimeError: maximum recursion depth exceeded in cmp

2014-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5336a01542e2 by Senthil Kumaran in branch '2.7': backout changeset e0510a3bdf8f - due to buildbot failures. Ref: Issue #8797 http://hg.python.org/cpython/rev/5336a01542e2 New changeset d51e739004bc by Senthil Kumaran in branch '3.4': backout changes

[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2014-08-16 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: On 16 August 2014 14:03, Ned Deily wrote: > 1. With Tk 8.4, the extension gets a bit further but still fails: > I fixed this now. Please let me know how it works now. > 2. I just noticed that the (now) "Line Number" menu item has no visual > indication o

[issue22198] Odd floor-division corner case

2014-08-16 Thread Tim Peters
Tim Peters added the comment: Sorry, Mark - I took a true thing and careleslly turned it into a false thing ;-) It's math.floor(a_float) that returns an int in Py3, not floor division of floats. So, yup, no real problem with returning -0.0 after all; it's just that it can't be _explained_ vi

[issue22191] warnings.__all__ incomplete

2014-08-16 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue22156] Fix compiler warnings "comparison between signed and unsigned integers"

2014-08-16 Thread STINNER Victor
STINNER Victor added the comment: > I'm not sure about _tracemalloc.c. May be make MAX_NFRAME an int would be > simpler? Ok, I agree, I changed it. -- ___ Python tracker ___ __

[issue22156] Fix compiler warnings "comparison between signed and unsigned integers"

2014-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset a318a5ab91fe by Victor Stinner in branch 'default': Issue #22156: simplify _tracemalloc.c, use an int for the MAX_NFRAME constant http://hg.python.org/cpython/rev/a318a5ab91fe -- ___ Python tracker

[issue22206] PyThread_create_key(): fix comparison between signed and unsigned numbers in Python/thread_pthread.h

2014-08-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +pitrou stage: -> patch review type: -> behavior versions: +Python 2.7, Python 3.4 ___ Python tracker ___ ___

[issue22156] Fix compiler warnings "comparison between signed and unsigned integers"

2014-08-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm not sure about _tracemalloc.c. May be make MAX_NFRAME an int would be simpler? Other changes LGTM. -- ___ Python tracker ___

[issue22157] _ctypes on ppc64: libffi/src/powerpc/linux64.o: ABI version 1 is not compatible with ABI version 2 output

2014-08-16 Thread STINNER Victor
STINNER Victor added the comment: This issue may be related to the issue #22176. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue22138] patch.object doesn't restore function defaults

2014-08-16 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue22185] Occasional RuntimeError from Condition.notify

2014-08-16 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue11822] Improve disassembly to show embedded code objects

2014-08-16 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue22188] test_gdb fails on invalid gdbinit

2014-08-16 Thread STINNER Victor
STINNER Victor added the comment: It sounds reasonable to ignore gdbinit files. -- nosy: +haypo -python-dev stage: resolved -> ___ Python tracker ___ ___

[issue22188] test_gdb fails on invalid gdbinit

2014-08-16 Thread STINNER Victor
Changes by STINNER Victor : -- versions: +Python 2.7, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22188] test_gdb fails on invalid gdbinit

2014-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset ecb97f8ea31c by Victor Stinner in branch '2.7': Closes #22188: test_gdb now runs gdb with -nx: "Do not execute commands from http://hg.python.org/cpython/rev/ecb97f8ea31c New changeset 320856a0a635 by Victor Stinner in branch '3.4': Closes #22188: t

[issue8797] urllib2 basicauth broken in 2.6.5: RuntimeError: maximum recursion depth exceeded in cmp

2014-08-16 Thread STINNER Victor
STINNER Victor added the comment: test_urllib2_localnet now fails since the changeset 3435c5865cfc. Example: http://buildbot.python.org/all/builders/x86%20RHEL%206%203.x/builds/4410/steps/test/logs/stdio http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/10518/steps/test/l

[issue22157] _ctypes on ppc64: libffi/src/powerpc/linux64.o: ABI version 1 is not compatible with ABI version 2 output

2014-08-16 Thread STINNER Victor
STINNER Victor added the comment: This issue is unrelated to venv, it's an issue between libffi and ctypes. -- nosy: +haypo ___ Python tracker ___ ___

[issue22157] _ctypes on ppc64: libffi/src/powerpc/linux64.o: ABI version 1 is not compatible with ABI version 2 output

2014-08-16 Thread STINNER Victor
Changes by STINNER Victor : -- title: FAIL: test_with_pip (test.test_venv.EnsurePipTest) -> _ctypes on ppc64: libffi/src/powerpc/linux64.o: ABI version 1 is not compatible with ABI version 2 output ___ Python tracker

[issue22189] collections.UserString missing some str methods

2014-08-16 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue22205] debugmallocstats test is cpython only

2014-08-16 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the patch, I commited it into Python 3.4 & 3.5. -- nosy: +haypo versions: +Python 3.4, Python 3.5 ___ Python tracker ___

[issue22205] debugmallocstats test is cpython only

2014-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 615aa483dbb1 by Victor Stinner in branch '3.4': Closes #22205: sys._debugmallocstats is a cpython specific feature, so http://hg.python.org/cpython/rev/615aa483dbb1 New changeset e68dcbae66b7 by Victor Stinner in branch 'default': (Merge 3.4) Closes

[issue22206] PyThread_create_key(): fix comparison between signed and unsigned numbers in Python/thread_pthread.h

2014-08-16 Thread STINNER Victor
STINNER Victor added the comment: pthread_key_create_overflow.patch: safer patch, delete the newly created key and return an error on integer overflow. -- Added file: http://bugs.python.org/file36386/pthread_key_create_overflow.patch ___ Python track

[issue22208] tarfile can't add in memory files (reopened)

2014-08-16 Thread Lars Gustäbel
Lars Gustäbel added the comment: Why overcomplicate things? import io, tarfile with tarfile.open("foo.tar", mode="w") as tar: b = "hello world!".encode("utf-8") t = tarfile.TarInfo("helloworld.txt") t.size = len(b) # this is crucial tar.addfile(t, io.BytesIO(b)) My answer to

[issue8797] urllib2 basicauth broken in 2.6.5: RuntimeError: maximum recursion depth exceeded in cmp

2014-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset e0510a3bdf8f by Senthil Kumaran in branch '2.7': Fix Issue #8797: Raise HTTPError on failed Basic Authentication immediately. Initial patch by Sam Bull. http://hg.python.org/cpython/rev/e0510a3bdf8f New changeset 3435c5865cfc by Senthil Kumaran in

[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2014-08-16 Thread Ned Deily
Ned Deily added the comment: Thanks for addressing the comments. With linenumber-text-widget-v2.diff: 1. With Tk 8.4, the extension gets a bit further but still fails: File "/Users/nad/Projects/PyDev/active/dev/3x/t/idlelib/__main__.py", line 9, in idlelib.PyShell.main() File "/Users

[issue22198] Odd floor-division corner case

2014-08-16 Thread Mark Dickinson
Mark Dickinson added the comment: > But in Py3 floor division of floats returns an integer. Not in my version! Python 3.4.1 (default, May 21 2014, 01:39:38) [GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)] on darwin Type "help", "copyright", "credits" or "license" for more information. >

[issue20184] Derby #16: Convert 50 sites to Argument Clinic across 9 files

2014-08-16 Thread Nick Coghlan
Nick Coghlan added the comment: Tweaked patch to apply cleanly to trunk, but realised it has been a while since I looked at the current state of argument clinic: * I'm not sure if varargs support has been added yet. If it has, "min", "max", "print", "__build_class__" can be converted. If it ha