[issue21817] `concurrent.futures.ProcessPoolExecutor` swallows tracebacks

2015-01-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset a36b402b099b by Antoine Pitrou in branch 'default': Issue #21817: When an exception is raised in a task submitted to a ProcessPoolExecutor, the remote traceback is now displayed in the parent process. https://hg.python.org/cpython/rev/a36b402b099b

[issue21862] cProfile command-line should accept -m module_name as an alternative to script path

2015-01-17 Thread Mayank Tripathi
Mayank Tripathi added the comment: Now allows parameters after the -m option. -- nosy: +oquanox Added file: http://bugs.python.org/file37749/cProfile_module_option.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21862

[issue23258] Cannot Install Python 3.4.2 on Windows 7 64 bit / screen print attached

2015-01-17 Thread Steve Dower
Steve Dower added the comment: You can close those applications, or ignore the message and continue, just like the dialog says (if you ignore it, you may need to reboot for installation to complete). You could also try doing a Just for Me installation. Python is not trying to update those

[issue23253] Delay-load ShellExecute

2015-01-17 Thread Tim Golden
Tim Golden added the comment: I'm +0.75. I think the idea's fine in principle and the patch (by inspection) seems to do the right things. My only concerns are: that posixmodule.c becomes even longer and more involved; and that the benefit might not quite be great enough to justify the added

[issue23248] Update ssl data

2015-01-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: New patch merges in the old codes. -- Added file: http://bugs.python.org/file37748/update_ssl_data2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23248

[issue23199] libpython27.a in amd64 release is 32-bit

2015-01-17 Thread Steve Dower
Steve Dower added the comment: So I've grabbed gendef and dlltool from the latest mingw-w64 and will look at using those in the future for both 2.7 and 3.5. According to objdump, I can use these to create file format pe-i386 and pe-x86-64 with the same tools. Are these the correct formats for

[issue18022] Inconsistency between quopri.decodestring() and email.quoprimime.decode()

2015-01-17 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18022 ___ ___ Python-bugs-list

[issue23251] mention in time.sleep() docs that it does not block other Python threads

2015-01-17 Thread R. David Murray
R. David Murray added the comment: Yes, on consideration I agree with Antoine. That last sentence should be deleted. Otherwise we'd need to mention that the gil was released every place that the gil was released, which would be very redundant. The general rule is that anything that blocks

[issue20284] patch to implement PEP 461 (%-interpolation for bytes)

2015-01-17 Thread Ethan Furman
Ethan Furman added the comment: Better patch, along the lines of my original thought: - byarrayformat converts bytearray to bytes - calls bytesformat (now _PyBytes_Format) to do the heavy lifting - uses PyByteArray_FromObject to tranform back to bytearray Now working on in-place format.

[issue23248] Update ssl data

2015-01-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- versions: +Python 2.7, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23248 ___ ___

[issue23255] SimpleHTTPRequestHandler refactor for more extensible usage.

2015-01-17 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23255 ___ ___ Python-bugs-list

[issue23259] Remove dummy reuse optimization from sets

2015-01-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This can be a common case in following algorithm (mesh optimization): while elems: elem = elems.pop() changed = optimize(elem) if changed: elems.update(neighbors(elem)) -- nosy: +serhiy.storchaka

[issue22919] Update PCBuild for VS 2015

2015-01-17 Thread Steve Dower
Steve Dower added the comment: Closing again, as Victor's issue was resolved (VS 2010 SP1 is needed, and I'm updating the devguide to specify that on #23257). -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue23239] SSL match_hostname does not accept IP Address

2015-01-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- keywords: +patch Added file: http://bugs.python.org/file37746/ip_certs.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23239 ___

[issue21817] `concurrent.futures.ProcessPoolExecutor` swallows tracebacks

2015-01-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you very much. Everything is now committed. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21817

[issue23258] Cannot Install Python 3.4.2 on Windows 7 64 bit / screen print attached

2015-01-17 Thread steve
New submission from steve: I down loaded and tried to install version 3.4.2 on a Windows 7 64 bit system. 2 error messages came up saying that I had to stop two Windows systems tasks to allow the install to complete. Please see the attached screen print for details. What can I do to

[issue23253] Delay-load ShellExecute

2015-01-17 Thread Steve Dower
Steve Dower added the comment: Yeah, I hate touching posixmodule.c for the same reason. It'd be nice to split it up into separate platform files, but nobody is volunteering for that. If you focus on the performance, then yeah, this change probably isn't worth it. OTOH, the number of Windows

[issue23260] Update Windows installer

2015-01-17 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23260 ___ ___

[issue23239] SSL match_hostname does not accept IP Address

2015-01-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23239 ___

[issue23259] Remove dummy reuse optimization from sets

2015-01-17 Thread Raymond Hettinger
New submission from Raymond Hettinger: The lookkey routines in Object/setobject.c have logic to track the first open freeslot in a search. The benefit is that new keys can reuse previously deleted slots. The benefit only occurs in cases where keys are added, then some removed, and then

[issue23259] Remove dummy reuse optimization from sets

2015-01-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: Even in the mesh algorithm, we let resizing periodically clean-up the dummies. The idea is to not pay the freeslot tracking cost on every lookup and instead only clean-up periodically (which would likely give better performance for the mesh algorithm as

[issue23260] Update Windows installer

2015-01-17 Thread Steve Dower
Steve Dower added the comment: Patch. I'm also revising Doc/using/windows.rst, but I don't want to delay the initial reviews. I don't think this is perfect, but it works well enough for the first alpha (scheduled for 8 Feb), so I want to get it in and stabilised now rather than at the last

[issue23260] Update Windows installer

2015-01-17 Thread Steve Dower
Changes by Steve Dower steve.do...@microsoft.com: Added file: http://bugs.python.org/file37752/README.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23260 ___

[issue23260] Update Windows installer

2015-01-17 Thread Steve Dower
New submission from Steve Dower: Updating the installer for better security and robustness. Large patch coming soon (just getting an issue number to put in NEWS). -- assignee: steve.dower components: Windows messages: 234203 nosy: steve.dower, tim.golden, zach.ware priority: release

[issue23231] Fix codecs.iterencode/decode() by allowing data parameter to be omitted

2015-01-17 Thread Martin Panter
Martin Panter added the comment: Another idea that doesn’t involve changing the incremental codec APIs is kind of described in https://bugs.python.org/issue7475#msg145986: to add format parameters to iterencode() and iterdecode(), which would allow it to determine the right data type to

[issue23260] Update Windows installer

2015-01-17 Thread Steve Dower
Steve Dower added the comment: As I expected, shortly after posting this I find a significant issue with the way the installer will work. Expect a revised patch soon :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23260

[issue23180] Rename IDLE's Windows menu item to Window

2015-01-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: I cannot currently test or commit a patch. So go ahead. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23180 ___

[issue23180] Rename IDLE's Windows menu item to Window

2015-01-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9a451aaa8ddb by Ned Deily in branch '2.7': Issue #23180: Rename IDLE Windows menu item to Window. https://hg.python.org/cpython/rev/9a451aaa8ddb New changeset 8c0e5b507794 by Ned Deily in branch '3.4': Issue #23180: Rename IDLE Windows menu item to

[issue20121] quopri_codec newline handling

2015-01-17 Thread Martin Panter
Martin Panter added the comment: Here is a patch that clarifies in the documentation and test suite how newlines work in the “quopri” and “binascii” modules. It also fixes the native Python implementation to support CRLFs. * \n is used by default (e.g. for soft line breaks if the input has no

[issue23180] Rename IDLE's Windows menu item to Window

2015-01-17 Thread Ned Deily
Ned Deily added the comment: Thanks for the patches, Al. Pushed for release in 2.7.10, 3.4.3, and 3.5.0. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org

[issue23255] SimpleHTTPRequestHandler refactor for more extensible usage.

2015-01-17 Thread Ent
Ent added the comment: @vadmium: My Mistake. It should read file path not file object. (500 error when submitting to review page.) Renaming get_html_or_dir_path to get_path_or_dir for accurate description. Also renaming copyfile to more pythonic copy_file. -- Added file:

[issue23211] test.test_logging.SMTPHandlerTest failing on Snow Leopard

2015-01-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 90b664532d1c by Ned Deily in branch '3.4': Issue #23211: Workaround test_logging failure on some OS X 10.6 systems: https://hg.python.org/cpython/rev/90b664532d1c New changeset e3dfe942697e by Ned Deily in branch 'default': Issue #23211: merge from

[issue23211] test.test_logging.SMTPHandlerTest failing on Snow Leopard

2015-01-17 Thread Ned Deily
Ned Deily added the comment: I *thought* I had tested 3.4 before; sorry about that! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23211 ___ ___

[issue23211] test.test_logging.SMTPHandlerTest failing on Snow Leopard

2015-01-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 65ac2b992673 by Ned Deily in branch '3.4': Issue #23211: Fix patch for 3.4 differences. https://hg.python.org/cpython/rev/65ac2b992673 New changeset 2d71d0f954fb by Ned Deily in branch 'default': Issue #23211: null merge

[issue23259] Remove dummy reuse optimization from sets

2015-01-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: In short, it looks like the freeslot idea was a net negative -- it optimized an uncommon case at the cost of slowing and complicating the common cases. Do you have a benchmark showing the slowing down? -- nosy: +pitrou

[issue23261] Clean-up set.pop() search finger logic

2015-01-17 Thread Raymond Hettinger
New submission from Raymond Hettinger: The existing search finger is stored in a hackish way (using the hash field of entry zero in the hash table). Replace this with normal coding techniques (saving the field in the set object). Cost one extra field in the set object. Benefit, remove an

[issue23211] test.test_logging.SMTPHandlerTest failing on Snow Leopard

2015-01-17 Thread Ned Deily
Ned Deily added the comment: OK, the workaround is applied for 3.4.3 and 3.5.0. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23211

[issue23259] Remove dummy reuse optimization from sets

2015-01-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: I've observed the generated assembly has fewer instructions on the critical path and that a register was freed-up. That's enough for me in this case (it's too easy to get trapped in local minimums in timing small changes like this). Do either of you have

[issue23180] Rename IDLE's Windows menu item to Window

2015-01-17 Thread Ned Deily
Ned Deily added the comment: LGTM. Terry, should I apply them? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23180 ___ ___ Python-bugs-list

[issue23260] Update Windows installer

2015-01-17 Thread Steve Dower
Steve Dower added the comment: New patch with some changes to how optional debug symbols and binaries are handled. (I misunderstood how a particular WiX feature worked...) -- Added file: http://bugs.python.org/file37754/23260_2.diff ___ Python

[issue6671] webbrowser doesn't respect xfce default browser

2015-01-17 Thread Stephan Sokolow
Changes by Stephan Sokolow bugs_python_org.zen.ssoko...@spamgourmet.com: -- nosy: +ssokolow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6671 ___

[issue23262] webbrowser module broken with Firefox 36+

2015-01-17 Thread Stephan Sokolow
New submission from Stephan Sokolow: As of Firefox 36 (currently in beta channel), the -remote option has been removed. https://www.mozilla.org/en-US/firefox/36.0a2/auroranotes/ https://www.mozilla.org/en-US/firefox/36.0beta/releasenotes/ As such, attempting to open http://www.example.com/

[issue23263] Python 3 gives misleading errors when validating unicode identifiers

2015-01-17 Thread Matt Bachmann
New submission from Matt Bachmann: PEP 3131 changed the definition of valid identifiers to match this pattern XID_Start XID_Continue* . Currently if you have an invalid character in an identifier you get this error ☺ = 4 SyntaxError: invalid character in identifier This is fine in most

[issue23259] Remove dummy reuse optimization from sets

2015-01-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fewer instructions doesn't necessarily translate into better performance. The bottleneck in superscalar, pipelined processors is often the data dependency path between instructions. Adding instructions may as well not slow anything down, if those instructions

[issue20420] BufferedIncrementalEncoder violates IncrementalEncoder interface

2015-01-17 Thread Martin Panter
Martin Panter added the comment: For what it’s worth, both io.TextIOWrapper and _pyio.TextIOWrapper appear to only ever call IncrementalEncoder.setstate(0). And the newline _decoder_ is not relevant because it doesn’t use any _encoder_. -- nosy: +vadmium

[issue3566] httplib persistent connections violate MUST in RFC2616 sec 8.1.4.

2015-01-17 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3566 ___ ___

[issue23255] SimpleHTTPRequestHandler refactor for more extensible usage.

2015-01-17 Thread Ent
New submission from Ent: Use of http.server.BaseHTTPRequestHandler for exploratory or simple usage, SimpleHTTPRequestHandler provides a good platform to start on. However, the current code in SimpleHTTPRequestHandler's send_head is tightly coupled together as a single unit. This patch aims

[issue23255] SimpleHTTPRequestHandler refactor for more extensible usage.

2015-01-17 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag stage: - patch review versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23255 ___

[issue23255] SimpleHTTPRequestHandler refactor for more extensible usage.

2015-01-17 Thread Berker Peksag
Berker Peksag added the comment: +base_files = ['index.html', 'index.html'] I guess this should be ['index.htm', 'index.html']. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23255

[issue23255] SimpleHTTPRequestHandler refactor for more extensible usage.

2015-01-17 Thread Ent
Ent added the comment: Changing base_files to point @ ['index.htm', 'index.html'] -- Added file: http://bugs.python.org/file37737/simplehttp1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23255

[issue23256] test_ctypes crashes on Windows on debug builds

2015-01-17 Thread Claudiu Popa
New submission from Claudiu Popa: Hi, Doing the following on Windows leads to a nasty crash python_d -m test test_ctypes: [1/1] test_ctypes Fatal Python error: Segmentation fault Current thread 0x16fc (most recent call first): File E:\Projects\repos\cpython\lib\unittest\case.py, line

[issue23256] test_ctypes crashes on Windows on debug builds

2015-01-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2bbd7b739b85 by Zachary Ware in branch '3.4': Closes #23256: Avoid a crash in test_ctypes https://hg.python.org/cpython/rev/2bbd7b739b85 New changeset b5821f7493c1 by Zachary Ware in branch 'default': Merge with 3.4 (#23256)

[issue23256] test_ctypes crashes on Windows on debug builds

2015-01-17 Thread Zachary Ware
Zachary Ware added the comment: The .EXE is very strange, but the fix was simple enough. Thanks for the report. -- versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23256

[issue15582] Enhance inspect.getdoc to follow inheritance chains

2015-01-17 Thread Claudiu Popa
Claudiu Popa added the comment: Yury, regarding your last message, is it actually possible to have a subclass which doesn't have a __doc__ attribute in its __dict__, except using slots? __doc__ seems to be set to None every time if it's not specified, so I don't know how could I detect the

[issue15955] gzip, bz2, lzma: add option to limit output size

2015-01-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 00e552a23bcc by Antoine Pitrou in branch 'default': Issue #15955: Add an option to limit output size when decompressing LZMA data. https://hg.python.org/cpython/rev/00e552a23bcc -- nosy: +python-dev ___

[issue15955] gzip, bz2, lzma: add option to limit output size

2015-01-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've committed the LZMADecompressor patch. Now let's tackle the rest. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15955 ___

[issue6700] inspect.getsource() returns incorrect source lines

2015-01-17 Thread Claudiu Popa
Changes by Claudiu Popa pcmantic...@gmail.com: -- nosy: +Claudiu.Popa, yselivanov versions: +Python 3.5 -Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6700

[issue21817] `concurrent.futures.ProcessPoolExecutor` swallows tracebacks

2015-01-17 Thread Claudiu Popa
Claudiu Popa added the comment: Here's the updated version of this patch. -- type: behavior - enhancement versions: -Python 3.4 Added file: http://bugs.python.org/file37738/issue21817_1.patch ___ Python tracker rep...@bugs.python.org

[issue22995] Restrict default pickleability

2015-01-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is hard to write good tests, because every example is temporary, after adding support of pickling it will be not valid. Here is extended patch. It now handles Python subclasses of builtin classes (except list and dict which are pickleable via iterators)

[issue23251] mention in time.sleep() docs that it does not block other Python threads

2015-01-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think it's superfluous to mention the GIL here, since it has no impact on the function. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23251

[issue23257] Update Windows build/setup instructions in devguide

2015-01-17 Thread Steve Dower
New submission from Steve Dower: This seems like the best (only?) way to get a devguide patch reviewed... I don't have any concerns, but other people may have some more suggestions for this section that I'm happy to add. -- assignee: steve.dower components: Devguide, Windows files:

[issue23257] Update Windows build/setup instructions in devguide

2015-01-17 Thread SilentGhost
SilentGhost added the comment: Couple of things: 1. chosen chosen 2. double space needed before You can invoke... -- nosy: +SilentGhost ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23257

[issue22080] Add windows_helper module helper

2015-01-17 Thread Claudiu Popa
Claudiu Popa added the comment: Here's a cleaned up version of the patch. -- Added file: http://bugs.python.org/file37741/issue22080_1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22080

[issue21518] Expose RegUnloadKey in winreg

2015-01-17 Thread Claudiu Popa
Claudiu Popa added the comment: The new patch drops the weird error dance from test_unload_key, it seems to work without it, I don't remember how it failed without it. -- Added file: http://bugs.python.org/file37742/issue21518_2.patch ___ Python

[issue21817] `concurrent.futures.ProcessPoolExecutor` swallows tracebacks

2015-01-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hi, here are some comments about the patch: - RemoteTraceback, ExceptionWithTraceback, rebuild_exc should be private (i.e. with a leading underscore) - in test_traceback, you can use the context manager form of assertRaises instead of the try..except..else

[issue23257] Update Windows build/setup instructions in devguide

2015-01-17 Thread Steve Dower
Steve Dower added the comment: Thanks! Haven't updated the patch, but I've fixed them. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23257 ___

[issue20916] ssl.enum_certificates() will not return all certificates trusted by Windows

2015-01-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +steve.dower ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20916 ___ ___ Python-bugs-list

[issue23253] Delay-load ShellExecute[AW] in os.startfile

2015-01-17 Thread Steve Dower
Changes by Steve Dower steve.do...@microsoft.com: -- assignee: - steve.dower stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23253 ___

[issue23253] Delay-load ShellExecute[AW] in os.startfile

2015-01-17 Thread Steve Dower
Steve Dower added the comment: Attached a patch. Comparing the time for python.exe -c '0' with Powershell's Measure-Command tool, it looks like there's a 3-4ms (~8-10%) improvement in startup time too. That's not at all robust, but it's certainly no worse. (I'm not surprised - shell32.dll is

[issue23251] mention in time.sleep() docs that it does not block other Python threads

2015-01-17 Thread Akira Li
Akira Li added the comment: I think it's superfluous to mention the GIL here, since it has no impact on the function. If GIL is not released then all Python code in other threads is effectively blocked. It is worth mentioning explicitly that it is guaranteed to be released during the sleep.

[issue23251] mention in time.sleep() docs that it does not block other Python threads

2015-01-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: If GIL is not released then all Python code in other threads is effectively blocked. But that would be a stupid implementation of sleep(). It is not desirable to clutter the docs with such mentions: most calls to the OS in the stdlib release the GIL. Only

[issue21817] `concurrent.futures.ProcessPoolExecutor` swallows tracebacks

2015-01-17 Thread Claudiu Popa
Claudiu Popa added the comment: Thanks, Antoine! Here's the new version, with your comments addressed. -- Added file: http://bugs.python.org/file37744/issue21817_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21817

[issue22522] sys.excepthook doesn't receive the traceback when called from code.InteractiveInterpreter

2015-01-17 Thread Claudiu Popa
Claudiu Popa added the comment: Ping. :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22522 ___ ___ Python-bugs-list mailing list