[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

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21817
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 programs, which means those programs are 
blocking Python. You should look for their documentation on how to close them, 
or report this as a problem to them.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23258
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--
title: Delay-load ShellExecute[AW] in os.startfile - Delay-load ShellExecute

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23253
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 32-bit and 
64-bit respectively?

My commands are (approximately):

  gendef - python35.dll  mingwlib.def

  dlltool --dllname python35.dll --def mingwlib.def --output-lib 
amd64\libpython35.a -m i386:x86-64

  dlltool --dllname python35.dll --def mingwlib.def --output-lib 
win32\libpython35.a -m i386

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23199
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 in python releases the GIL, therefore as Antoine says 
the only time we need to document GIL behavior is when that *doesn't* happen.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23251
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--
Added file: http://bugs.python.org/file37745/issue20284.stoneleaf.03.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20284
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23259
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue22919
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 resolve this install problem ???

--
components: Windows
files: Python_install-error-mgg.png
messages: 234193
nosy: 20scanman, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Cannot Install Python 3.4.2  on Windows 7 64 bit / screen print attached
versions: Python 3.4
Added file: http://bugs.python.org/file37747/Python_install-error-mgg.png

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23258
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 platforms keep increasing (e.g. ARM, 
phone/tablet/various sandboxes, etc.) and the fewer dependencies we have the 
more likely Python will Just Work in them. (And the more value that a split up 
posixmodule.c will have... guess it'll have to happen eventually.)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23253
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 more 
added with no intervening resizes (which clear all dummy entries) and only when 
the newly added keys happen to land on previously deleted entries.

The cost of the optimization is the extra logic in the inner search loop, an 
extra freeslot stackframe field that needs to be saved and restored, and extra 
logic on the loop exit.  It also causes dummies to leak out of the lookkey 
routines so that the code in contains(), discard(), and insert() all have to 
check for the dummy case.

This patch removes the freeslot tracking.  It saves one field on the 
stackframe, simplifies the lookkey inner-loop logic, simplifies the lookkey 
found_null logic, it confines knowledge of dummies to just the lookkey 
functions, and it simplifies the code in the insert(), contains(), and 
discard() functions.

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.

--
assignee: rhettinger
components: Interpreter Core
files: late8.diff
keywords: patch
messages: 234198
nosy: rhettinger
priority: low
severity: normal
stage: patch review
status: open
title: Remove dummy reuse optimization from sets
type: performance
versions: Python 3.5
Added file: http://bugs.python.org/file37750/late8.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23259
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 well, since making a single pass clean-up during resizing is 
cheaper than doing multi-step tracking for every insertion).  The slots do get 
reused, just not immediately.

Also, the idea is to not let the possibility of pop-change-update algorithms 
create a cost for the more common uses of sets (uniquification, fast membership 
testing, and set-to-set operations such as union, intersection, and difference).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23259
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 minute. There'll be more features and work to do.

There's a README.txt file (which I'll attach next) that has an overview of the 
installer. It'll be worth reading that first before looking at the code.

And apologies if the code makes no sense. I'm happy to explain sections, but 
WiX is about 90% magic (and the rest is MSBuild magic) and so any explanation 
is likely to be unsatisfactory. I've been working with both of these pretty 
intently for the last few years and I still don't feel like I've mastered 
them...

--
keywords: +patch
Added file: http://bugs.python.org/file37751/23260_1.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23260
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 blocker
severity: normal
status: open
title: Update Windows installer
type: enhancement
versions: Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23260
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 finalize the codecs with.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23231
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 Window.
https://hg.python.org/cpython/rev/8c0e5b507794

New changeset af092c1d3747 by Ned Deily in branch 'default':
Issue #23180: merge from 3.4
https://hg.python.org/cpython/rev/af092c1d3747

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23180
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 hard 
line breaks)
* CRLF is used instead if found in input (even in non-text mode!)
* Typo errors in documentation
* quopri uses istext=True
* header flag does not affect newline encoding; only istext affects it

One corner case concerns me slightly: binascii.b2a_qp(istext=False) will use \n 
for soft line breaks by default, but will suddenly switch to CRLF if the input 
data happens to contain a CRLF sequence. This is despite the CRLFs from the 
data being encoded and therefore not appearing in the output themselves.

--
assignee:  - docs@python
components: +Documentation
keywords: +patch
nosy: +docs@python
Added file: http://bugs.python.org/file37756/quopri-newline.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20121
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue23180
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: http://bugs.python.org/file37757/simplehttp-fcn-rnm-doc.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23255
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 3.4
https://hg.python.org/cpython/rev/e3dfe942697e

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23211
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
https://hg.python.org/cpython/rev/2d71d0f954fb

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23211
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23259
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 arcane hack and 
simplify the set.pop() code just a little bit.

--
assignee: rhettinger
components: Interpreter Core
files: finger.diff
keywords: patch
messages: 234216
nosy: rhettinger
priority: low
severity: normal
status: open
title: Clean-up set.pop() search finger logic
versions: Python 3.5
Added file: http://bugs.python.org/file37753/finger.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23261
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 a technical comment on the patch?  If it isn't broken or 
seriously misguided, I will likely apply it shortly.

--
nosy: +tim.peters

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23259
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker rep...@bugs.python.org
http://bugs.python.org/issue23260
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/ using webbrowser.open() or 
webbrowser.open_new_tab() results in File not Found tabs pointing to these 
two URLs, respectively:

file:///home/ssokolow/openURL%28http://www.example.com/%29
file:///home/ssokolow/openURL%28http://www.example.com/,new-tab%29

As I happen to have the Dead Snakes PPA set up on Lubuntu 14.04 for use with 
tox, I was able to confirm this as an issue in Python 2.7, 3.1, 3.2, 3.3, and 
3.4.

--
components: Library (Lib)
messages: 234218
nosy: ssokolow
priority: normal
severity: normal
status: open
title: webbrowser module broken with Firefox 36+
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23262
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.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 cases. But in some cases the problem is not the character 
is invalid so much as the character may not be used to START the identifier. 
One example of this is the combining grave accent which is an XID_CONTINUE 
character but not an XID_START

So ̀e is an invalid identifier but è is a valid identifier. So the ̀ character 
is not invalid in all cases.

The attached patch attempts to clarify this by providing a different error when 
the start character is invalid.

 ̀e = 4
  File stdin, line 1
̀e = 4
 ^
SyntaxError: invalid start character in identifier

However, if the character is simply not allowed (as it is neither an XID_START 
or an XID_CONTINUE character) the original error is used.
 ☺smile = 4
  File stdin, line 1
☺smile = 4
 ^
SyntaxError: invalid character in identifier

--
components: Unicode
files: clarify_unicode_identifier_errors.patch
keywords: patch
messages: 234222
nosy: Matt.Bachmann, ezio.melotti, haypo
priority: normal
severity: normal
status: open
title: Python 3 gives misleading errors when validating unicode identifiers
type: enhancement
versions: Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6
Added file: 
http://bugs.python.org/file37755/clarify_unicode_identifier_errors.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23263
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 don't lengthen the dependency path.

It would be interesting to know what the impact of the patch is on the 
workloads that were supposed to be helped by the removed logic.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23259
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20420
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 to break send_head down into composable parts so that any 
developer can subclass SimpleHTTPRequestHandler to create one's own 
HTTPRequestHandler class with their own custom behaviour without having to 
rewrite a lot of repeated code.

For example consider a developer wanting to address two usecases
* Use SimpleHTTPRequestHandler, but use index.html from a different directory.
* For certain GET urls, call on a specific function to response.
* Use custom html page instead of index.html

class CustomHTTPRequestHandler(SimpleHTTPRequestHandler):
def do_GET(self):
if self.path =='/':
f = self.home_head()
elif self.path in self.custom_paths:
f = self.special_head()
else:
f = self.send_head()
# ...
# Standard Code

As a result of the patch, in above scenario instead of copy-pasting logic for 
browser redirection, getting object for file or directory and, applying headers 
upon success; Developer can use methods redirect_browser, 
get_dir_or_html_dir_path and, apply_headers to reduce the code.

Basically, applying DRY principle.

Note: Since this is but refactoring of existing code without any new 
functionality being added, no test cases are provided.

--
components: Library (Lib)
files: simplehttp.patch
keywords: patch
messages: 234165
nosy: last-ent
priority: normal
severity: normal
status: open
title: SimpleHTTPRequestHandler refactor for more extensible usage.
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file37736/simplehttp.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23255
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 162 in handle
  File E:\Projects\repos\cpython\lib\unittest\case.py, line 704 in 
assertRaises
  File E:\Projects\repos\cpython\lib\ctypes\test\test_win32.py, line 47 in 
test_SEH
  File E:\Projects\repos\cpython\lib\unittest\case.py, line 577 in run
  File E:\Projects\repos\cpython\lib\unittest\case.py, line 625 in __call__
  File E:\Projects\repos\cpython\lib\unittest\suite.py, line 125 in run
  File E:\Projects\repos\cpython\lib\unittest\suite.py, line 87 in __call__
  File E:\Projects\repos\cpython\lib\unittest\suite.py, line 125 in run
  File E:\Projects\repos\cpython\lib\unittest\suite.py, line 87 in __call__
  File E:\Projects\repos\cpython\lib\unittest\suite.py, line 125 in run
  File E:\Projects\repos\cpython\lib\unittest\suite.py, line 87 in __call__
  File E:\Projects\repos\cpython\lib\unittest\suite.py, line 125 in run
  File E:\Projects\repos\cpython\lib\unittest\suite.py, line 87 in __call__
  File E:\Projects\repos\cpython\lib\unittest\suite.py, line 125 in run
  File E:\Projects\repos\cpython\lib\unittest\suite.py, line 87 in __call__
  File E:\Projects\repos\cpython\lib\test\support\__init__.py, line 1669 in 
run
  File E:\Projects\repos\cpython\lib\test\support\__init__.py, line 1770 in 
_run_suite
  File E:\Projects\repos\cpython\lib\test\support\__init__.py, line 1804 in 
run_unittest
  File E:\Projects\repos\cpython\lib\test\regrtest.py, line 1283 in 
test_runner
  File E:\Projects\repos\cpython\lib\test\regrtest.py, line 1284 in 
runtest_inner
  File E:\Projects\repos\cpython\lib\test\regrtest.py, line 978 in runtest
  File E:\Projects\repos\cpython\lib\test\regrtest.py, line 763 in main
  File E:\Projects\repos\cpython\lib\test\regrtest.py, line 1568 in 
main_in_temp_cwd
  File E:\Projects\repos\cpython\lib\test\__main__.py, line 3 in module
  File E:\Projects\repos\cpython\lib\runpy.py, line 85 in _run_code
  File E:\Projects\repos\cpython\lib\runpy.py, line 170 in _run_module_as_main


It seems that test_SEH is not properly skipped, since on my machine, 
sys.executable is in fact cpython\PCbuild\win32\python_d.EXE. Not sure from 
where the .EXE part comes, but the following patch makes the test pass.



diff -r d3671e6ba106 Lib/ctypes/test/test_win32.py
--- a/Lib/ctypes/test/test_win32.py Fri Jan 16 20:46:37 2015 -0500
+++ b/Lib/ctypes/test/test_win32.py Sat Jan 17 16:32:23 2015 +0200
@@ -38,7 +38,7 @@
 @unittest.skipUnless(sys.platform == win32, 'Windows-specific test')
 class FunctionCallTestCase(unittest.TestCase):
 @unittest.skipUnless('MSC' in sys.version, SEH only supported by MSC)
-@unittest.skipIf(sys.executable.endswith('_d.exe'),
+@unittest.skipIf(sys.executable.lower().endswith('_d.exe'),
  SEH not enabled in debug builds)
 def test_SEH(self):
 # Call functions with invalid arguments, and make sure

--
components: ctypes
messages: 234168
nosy: Claudiu.Popa, zach.ware
priority: low
severity: normal
stage: patch review
status: open
title: test_ctypes crashes on Windows on debug builds
type: crash
versions: Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23256
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://hg.python.org/cpython/rev/b5821f7493c1

--
nosy: +python-dev
resolution:  - fixed
stage: patch review - resolved
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23256
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 case where the client sets '__doc__ = None' himself.

The following example might be more explanatory:

 class A:
...__doc__ = a
...
 inspect.getdoc(A)
'a'
 inspect.getdoc(A())
'a'
 class B(A):
...   __doc__ = None
...
 vars(B)
mappingproxy({'__doc__': None, '__module__': '__main__'})
 B.__dict__
mappingproxy({'__doc__': None, '__module__': '__main__'})
 class C(A): pass
...
 vars(C)
mappingproxy({'__doc__': None, '__module__': '__main__'})


Nevertheless, my patch ignores this case, since it operates only on methods. 
When trying to do inspect.getdoc(Child, parent=Parent), it will try to look for 
an attribute 'Child' in the mro of Parent and thus it will return None, since 
this doesn't exist (this can actually be a problem, if that attribute actually 
exist).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15582
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15955
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue21817
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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) such as 
socket.socket. Removed several guarding __getstate__() methods. Added few new 
tests.

--
Added file: http://bugs.python.org/file37739/pickle_restrictions_2.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22995
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: winbuild.patch
keywords: patch
messages: 234177
nosy: eric.araujo, ezio.melotti, ncoghlan, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
stage: patch review
status: open
title: Update Windows build/setup instructions in devguide
versions: Python 3.5
Added file: http://bugs.python.org/file37740/winbuild.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23257
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker rep...@bugs.python.org
http://bugs.python.org/issue21518
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--
nosy: +pitrou

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21817
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 a horrendously big dependency and we're better off without it.)

--
keywords: +patch
Added file: http://bugs.python.org/file37743/23253.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23253
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23251
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 if the behaviour was unintuitive (i.e. if it *didn't* release the GIL) 
would it make sense to document it.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23251
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com