[issue26372] Popen.communicate not ignoring BrokenPipeError

2016-02-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is just the bug I reported in msg236951. Text streams are buffered, thus setting bufsize=0 does not help if universal_newlines=True. Added comments on Rietveld. -- nosy: +serhiy.storchaka ___ Python tracker

[issue26376] Tkinter root window won't close if packed.

2016-02-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If the problem is that the window is too small to contain the close icon, this is not Python issue. May be this is Tk issue or end application issue. -- ___ Python tracker _

[issue26388] Disabling changing sys.argv[0] with runpy.run_module(...alter_sys=True)

2016-02-23 Thread Mike Kaplinskiy
Mike Kaplinskiy added the comment: So how might I get this patch committed? :) -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5824] SocketServer.DatagramRequestHandler Broken under Linux

2016-02-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 92ae4a305858 by Martin Panter in branch '2.7': Issue #5824: Fix DatagramRequestHandler tests by binding the client socket https://hg.python.org/cpython/rev/92ae4a305858 New changeset 0d9d8fdd9736 by Martin Panter in branch '3.5': Issue #5824: Fix Da

[issue25671] Fix venv activate.fish to maintain $status

2016-02-23 Thread Ned Deily
Changes by Ned Deily : -- nosy: +vinay.sajip versions: -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue26372] Popen.communicate not ignoring BrokenPipeError

2016-02-23 Thread Ned Deily
Changes by Ned Deily : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue26335] Make mmap.write return the number of bytes written like other write methods

2016-02-23 Thread Martin Panter
Martin Panter added the comment: Patch looks okay to me. I guess it would be good to write a What’s New entry as well. -- nosy: +martin.panter ___ Python tracker ___ ___

[issue26385] the call of tempfile.NamedTemporaryFile fails and leaves a file on the disk

2016-02-23 Thread Martin Panter
Martin Panter added the comment: Here is my proposed version for Python 2. -- Added file: http://bugs.python.org/file42015/issue26385_4_py2.diff ___ Python tracker ___ __

[issue26414] os.defpath too permissive

2016-02-23 Thread Shawn
Changes by Shawn : -- nosy: +swalker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/ma

[issue22088] base64 module still ignores non-alphabet characters

2016-02-23 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue26404] socketserver context manager

2016-02-23 Thread Martin Panter
Martin Panter added the comment: Thanks, the patch looks pretty good to me. I left some comments about minor things. Also, someone will need to write a What’s New entry. -- stage: -> patch review ___ Python tracker

[issue26423] __len__() returns 32 bit int on windows leading to overflows

2016-02-23 Thread Frazer McLean
Changes by Frazer McLean : -- nosy: +RazerM ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue26281] Clear sys.path_importer_cache from importlib.invalidate_caches()

2016-02-23 Thread Eric Snow
Eric Snow added the comment: Re: the kw-only arg, it seems weird to accommodate the implementation of one meta-path finder in the signature of importlib.invalidate_caches(). Here's an alternative: Use a different sys.path_importer_cache sentinel internally (in PathFinder) and never clear None

[issue22088] base64 module still ignores non-alphabet characters

2016-02-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset c62526580ff0 by Martin Panter in branch '2.7': Issue #22088: Clarify base-64 alphabets and which characters are discarded https://hg.python.org/cpython/rev/c62526580ff0 New changeset c8933fbc9171 by Martin Panter in branch '3.5': Issue #22088: Clari

[issue26281] Clear sys.path_importer_cache from importlib.invalidate_caches()

2016-02-23 Thread Brett Cannon
Brett Cannon added the comment: Or another option is to add a keyword-only argument to importlib.invalidate_caches() to also clear the the cache of importers itself on top of the caches of the importers themselves. -- ___ Python tracker

[issue26281] Clear sys.path_importer_cache from importlib.invalidate_caches()

2016-02-23 Thread Brett Cannon
Brett Cannon added the comment: Damn, good point about the backwards-compatibility issue. Then I think a doc note for importlib.invalidate_caches() saying that there is also sys.path_importer_cache would be good enough. -- assignee: -> brett.cannon components: +Documentation -Library

[issue26281] Clear sys.path_importer_cache from importlib.invalidate_caches()

2016-02-23 Thread Eric Snow
Eric Snow added the comment: (Note that PathFinder.invalidate_caches() loops over sys.path_importer_cache and invalidates the cache of each path entry finder therein. What you're suggesting is clearing sys.path_importer_cache after the loop finishes.) Hmm. The distinction is between clearing

[issue26376] Tkinter root window won't close if packed.

2016-02-23 Thread Sam Yeager
Sam Yeager added the comment: It's almost certainly only found on OSX. I'm currently taking a Python class of approximately 150 students, and at least two of us independently found this issue on our respective Macs. IDLE and Python are the same version (v3.4.4). The info window lists Tk as ve

[issue26335] Make mmap.write return the number of bytes written like other write methods

2016-02-23 Thread Jakub Stasiak
Jakub Stasiak added the comment: Oops, sorry for the silliness in the C code, thanks for reviewing. I modified as suggested, please find the new patch attached. -- Added file: http://bugs.python.org/file42014/mmap_write_return_count2.patch ___ Python

[issue26423] __len__() returns 32 bit int on windows leading to overflows

2016-02-23 Thread Dave Hibbitts
New submission from Dave Hibbitts: __len__() always returns an int which on windows machines is tied to the size of a c long and is always 32 bits even if it's compiled for 64 bit. len() however returns an int for values less than sys.maxint and a long above that. Returning an int in __len__(

[issue26284] Fix telco benchmark

2016-02-23 Thread STINNER Victor
STINNER Victor added the comment: > Unfortunately, replacing io.BytesIO(data) with indexing does not make the > benchmark faster or more stable on my machine. Ah, I didn't check. I expected BytesIO.read() to be slower than bytes string slicing. --

[issue26422] printing 1e23 and up is incorrect

2016-02-23 Thread Eric V. Smith
Eric V. Smith added the comment: Please see https://docs.python.org/3.5/tutorial/floatingpoint.html for a discussion of why this is not a bug. -- nosy: +eric.smith resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracke

[issue26039] More flexibility in zipfile interface

2016-02-23 Thread Martin Panter
Martin Panter added the comment: Thanks for the pointer Dhiraj. I prefer the open(mode="w") version proposed here, as being more flexible. This way you could wrap the writer object in e.g. TextIOWrapper. The other patch requires passing in a file reader object. Having another look at zipfile-o

[issue26416] Deprecate the regex_v8, telco, and spectral_norm benchmarks

2016-02-23 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: postponed -> rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26422] printing 1e23 and up is incorrect

2016-02-23 Thread John Taylor
New submission from John Taylor: The print statement does not display accurate results. code: print("%35d" % (1e21)) print("%35d" % (1e22)) print("%35d" % (1e23)) print("%35d" % (1e24)) print("%35d" % (1e25)) print("%35d" % (1e26)) print("%35d" % (1e27)) print("%3

[issue26416] Deprecate the regex_v8, telco, and spectral_norm benchmarks

2016-02-23 Thread Brett Cannon
Brett Cannon added the comment: OK, so everyone says to keep what we have. -- resolution: -> postponed status: open -> closed ___ Python tracker ___

[issue26284] Fix telco benchmark

2016-02-23 Thread Brett Cannon
Brett Cannon added the comment: If you think the string conversion should go back in, Stefan, feel free to put it back (unless Victor wants to say why he took it out). -- assignee: -> skrah ___ Python tracker ___

[issue26360] Deadlock in thread.join on Python 2.7/Mac OS X 10.9, 10.10

2016-02-23 Thread Mark Dickinson
Changes by Mark Dickinson : -- title: Deadlock in thread.join on Python 2.7/Mac OS X 10.9 -> Deadlock in thread.join on Python 2.7/Mac OS X 10.9, 10.10 ___ Python tracker ___ __

[issue26360] Deadlock in thread.join on Python 2.7/Mac OS X 10.9

2016-02-23 Thread Mark Dickinson
Mark Dickinson added the comment: I've found OS X 10.10 and OS X 10.11 machines to test on. I'm able to reproduce on 10.10, but not on 10.11. This adds to the plausibility of the "Apple bug" explanation. -- ___ Python tracker

[issue25136] Python doesn't find Xcode 7 stub libraries

2016-02-23 Thread Anthony Foglia
Changes by Anthony Foglia : -- nosy: +afoglia ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue26392] socketserver.BaseServer.close_server should stop serve_forever

2016-02-23 Thread Aviv Palivoda
Aviv Palivoda added the comment: I understand the problem and why this patch should be rejected. -- resolution: -> rejected status: open -> closed ___ Python tracker ___ ___

[issue26398] cgi.escape() Can Lead To XSS and HTML Vulnerabilities

2016-02-23 Thread Dhiraj
Changes by Dhiraj : -- resolution: duplicate -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue26398] cgi.escape() Can Lead To XSS and HTML Vulnerabilities

2016-02-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: As pointed out, this is working as intended and is documented as such. That it isn't what you want is why Python 3 has html.escape() instead. -- resolution: -> duplicate status: open -> closed superseder: -> cgi.escape Can Lead To XSS Vulnerabiliti

[issue26416] Deprecate the regex_v8, telco, and spectral_norm benchmarks

2016-02-23 Thread Yury Selivanov
Yury Selivanov added the comment: We now have speed.python.org up, so I'd keep spectral_norm to make sure we don't accidentally harm the performance of int/floats operations. It also helped me to discover that PyLong_AsDouble was unnecessary slow, etc. --

[issue26421] string_richcompare invalid check Py_NotImplemented

2016-02-23 Thread yuriy_levchenko
New submission from yuriy_levchenko: i have object with flag Py_TPFLAGS_STRING_SUBCLASS stringobject.c (line 1192) in function string_richcompare we have check string PyString_Check but, #define PyString_Check(op) \ PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_STRING_SUBCLASS)

[issue26420] IDEL for Python 3.5.1 for x64 Windows exits when pasted a string with non-BMP characters

2016-02-23 Thread Tatsunori Uchino
Tatsunori Uchino added the comment: P.S. 𠮷 is explained as U+20BB7 in UCS-4. And the characters that is explaind as U+1F444(👄) and U+1F468(👨) are both what are said emojis(explains the mouth and man) -- ___ Python tracker

[issue26420] IDEL for Python 3.5.1 for x64 Windows exits when pasted a string with non-BMP characters

2016-02-23 Thread Tatsunori Uchino
New submission from Tatsunori Uchino: On Windows Server 2012 R2 with Update(which is compatible with Windows 8.1 Update 1), I copied a character U+20BB7 and pasted it on IDLE. After that, IDLE suddenly exited with no messages, notices, or errors. Then, I tried to input some non-BMP characto

[issue26039] More flexibility in zipfile interface

2016-02-23 Thread Dhiraj
Dhiraj added the comment: Please ha Look on issue 11980 http://bugs.python.org/issue11980 Already have been Patched -- nosy: +DhirajMishra ___ Python tracker ___ ___

[issue26039] More flexibility in zipfile interface

2016-02-23 Thread Thomas Kluyver
Thomas Kluyver added the comment: Ping! ;-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue8844] Condition.wait() doesn't raise KeyboardInterrupt

2016-02-23 Thread Sergei Lebedev
Sergei Lebedev added the comment: Is it possible to backport this patch to 2.7? -- nosy: +superbobry ___ Python tracker ___ ___ Python-

[issue25924] investigate if getaddrinfo(3) on OSX is thread-safe

2016-02-23 Thread A. Jesse Jiryu Davis
A. Jesse Jiryu Davis added the comment: Related to #26406, a fix for NetBSD and OpenBSD. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue26406] getaddrinfo is thread-safe on NetBSD and OpenBSD

2016-02-23 Thread A. Jesse Jiryu Davis
A. Jesse Jiryu Davis added the comment: Thank you! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue26398] cgi.escape() Can Lead To XSS and HTML Vulnerabilities

2016-02-23 Thread Dhiraj
Dhiraj added the comment: Even the IDLE of Python is Vulnerable to CGI.ESCAPE() Please have a look on attachments , I hope this would be Patch Soon. Thank You -- nosy: +dstufft, gregory.p.smith type: -> security Added file: http://bugs.python.org/file42013/Python-IDLE-CGI-Vulnerable.p

[issue26323] Add assert_called() and assert_called_once() methods for mock objects

2016-02-23 Thread STINNER Victor
STINNER Victor added the comment: > In the past I've rejected them because you can easily get it by asserting the > call count is non-zero and I want to avoid the proliferation of a thousand > assert methods Yeah, I understand that. IMHO having to check if a function was called is a common ne

[issue26406] getaddrinfo is thread-safe on NetBSD and OpenBSD

2016-02-23 Thread Ned Deily
Ned Deily added the comment: Thanks for the additional patch, Jesse. Since we don't have a NetBSD buildbot and I don't have any NetBSD or OpenBSD systems at hand to do any testing, I'll take your word for the version checks. If anyone runs into any problems because of these changes, feel free

[issue26406] getaddrinfo is thread-safe on NetBSD and OpenBSD

2016-02-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 52a8c1965750 by Ned Deily in branch '2.7': Issue #26406: Avoid unnecessary serialization of getaddrinfo(3) calls on https://hg.python.org/cpython/rev/52a8c1965750 New changeset 419d20551d26 by Ned Deily in branch '3.5': Issue #26406: Avoid unnecessa

[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

2016-02-23 Thread Martin Panter
Martin Panter added the comment: About rounding: I’m not too sure what people would expect. Obviously it is much easier to implement truncating to zero. But it is different to many other rounding cases in Python; that is why I thought to make it explicit. >>> datetime.fromtimestamp(59.999)

[issue26399] CSV Injection Vulnerability

2016-02-23 Thread Maciej Szulik
Maciej Szulik added the comment: Closing in favor of http://psf.upfronthosting.co.za/roundup/meta/issue580 -- nosy: +maciej.szulik resolution: -> wont fix status: open -> closed ___ Python tracker

[issue26375] Python 2.7.10 and 3.4.4 hang on imaplib.IMAP4_SSL()

2016-02-23 Thread Maciej Szulik
Changes by Maciej Szulik : -- nosy: +maciej.szulik ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue26409] Support latest Tcl/Tk on future versions of Mac installer

2016-02-23 Thread Ned Deily
Ned Deily added the comment: Thanks for the suggestion. Moving the OS X installers to using Tcl/Tk 8.6 is the subject of Issue15663. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Investigate providing Tcl/Tk 8.6 with OS X installers __

[issue26376] Tkinter root window won't close if packed.

2016-02-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: I was running from IDLE when I said no problem on Windows, so this is OSX specific. Are you running same version of python (splash message) and tcl/tk? (on IDLE, Help => About IDLE). Does Python on OSX have equivalent of pythonw.exe? If you start IDLE at

[issue26323] Add assert_called() and assert_called_once() methods for mock objects

2016-02-23 Thread Michael Foord
Michael Foord added the comment: There have been persistent calls for an "assert_called" method over the lifetime of mock. In the past I've rejected them because you can easily get it by asserting the call count is non-zero and I want to avoid the proliferation of a thousand assert methods. Th

[issue20580] IDLE should support platform-specific default config defaults

2016-02-23 Thread Ned Deily
Ned Deily added the comment: See Issue26417 for further discussion about the OS X specific tailoring of IDLE config files and changes to the 2.7 Makefiles to better match the 3.x Makefiles to reduce the risk of inadvertent platform differences. -- versions: -Python 3.4 __

[issue26416] Deprecate the regex_v8, telco, and spectral_norm benchmarks

2016-02-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > On the speed mailing list, it was also suggested to use the geometric mean > rather than the minimum or the average. This should be considered a bit more carefully. First, geometric mean is only useful when you are agregating heterogenous numbers. Here, we

[issue26275] perf.py: calibrate benchmarks using time, not using a fixed number of iterations

2016-02-23 Thread Stefan Krah
Changes by Stefan Krah : -- dependencies: +Fix telco benchmark ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26417] Default IDLE 2.7.11 configuration files are out-of-sync on OS X framework installs

2016-02-23 Thread Ned Deily
Ned Deily added the comment: For 2.7.12 I've committed changes to the Mac/IDLE Makefile so that it now edits the defaults files in place on install just like the 3.x Makefiles do. Framework installs of IDLE 2.7 on OS X no longer output startup warnings and, since the defaults are now in sync,

[issue26414] os.defpath too permissive

2016-02-23 Thread Martin Panter
Martin Panter added the comment: Digging through the history, it has been this way since at least revision d5b67d2ec7ee (1994). Removing the colon is definitely a good idea. Maybe this might be a more proper way to get the default PATH: >>> os.confstr("CS_PATH") '/bin:/usr/bin' -- no

[issue26418] multiprocessing.pool.ThreadPool eats up memories

2016-02-23 Thread renlifeng
New submission from renlifeng: If func creates lots objects and appends them to a list, and runs over and over, pool.map(func...) will eventually eat up all memories. Cleaning the list at the end of func does not help. One can reproduce by running the attached file. By contrast, after replaci

[issue26417] Default IDLE 2.7.11 configuration files are out-of-sync on OS X framework installs

2016-02-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 13826ff147e4 by Ned Deily in branch '2.7': Issue #26417: Prevent spurious errors and incorrect defaults when https://hg.python.org/cpython/rev/13826ff147e4 -- nosy: +python-dev ___ Python tracker

[issue26416] Deprecate the regex_v8, telco, and spectral_norm benchmarks

2016-02-23 Thread STINNER Victor
STINNER Victor added the comment: I opened the issue #26275 to try to make benchmarks more reliable. My notes to tune the Linux kernel to reduce the "noise" from the operating system: http://haypo-notes.readthedocs.org/microbenchmark.html#reliable-micro-benchmarks On the speed mailing list, it

[issue26416] Deprecate the regex_v8, telco, and spectral_norm benchmarks

2016-02-23 Thread Stefan Krah
Stefan Krah added the comment: Telco is a real world workload devised by Mike Cowlishaw. Some fixes need to me made for the version in the benchmark suite; in particular, the amount of input seems insufficient for _decimal (#26284). I'm not a fan of weeding out real world benchmarks until our te

[issue26407] csv.writer.writerows masks exceptions from __iter__

2016-02-23 Thread Ilja Everilä
Ilja Everilä added the comment: After doing some reading on https://docs.python.org/dev/c-api/exceptions.html it seems that this is possibly "as designed" or such, since csv_writerows explicitly calls PyErr_SetString on receiving NULL from PyObject_GetIter. Still, it feels like this could eith

[issue26416] Deprecate the regex_v8, telco, and spectral_norm benchmarks

2016-02-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not sure what "inconsistent" means. If the results are unstable between runs, it may mean the operations being measured themselves are unstable (for example because of hashing differences or cache aliasing effects from run to run). I'd rather like benchma

[issue26416] Deprecate the regex_v8, telco, and spectral_norm benchmarks

2016-02-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue26405] tkinter askopenfilename doubleclick issue on windows

2016-02-23 Thread rapolas
rapolas added the comment: Just tried this on Python 2.7.11 and the issue is not present. -- ___ Python tracker ___ ___ Python-bugs-li