[issue20566] asyncio as_completed() thrashes adding and removing callbacks

2014-02-08 Thread Glenn Langford
New submission from Glenn Langford: In asyncio, tasks.py as_completed() appears to trigger adding and removing callbacks multiple times for the pending set of futures, each time a single future completes. For example, to wait for 5 futures which complete at different times: - as_completed() u

[issue20566] asyncio as_completed() thrashes adding and removing callbacks

2014-02-08 Thread Glenn Langford
Changes by Glenn Langford : Added file: http://bugs.python.org/file34000/test_thrash.py ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue20566] asyncio as_completed() thrashes adding and removing callbacks

2014-02-08 Thread Glenn Langford
Changes by Glenn Langford : Added file: http://bugs.python.org/file34001/output.txt ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue20566] asyncio as_completed() thrashes adding and removing callbacks

2014-02-08 Thread Guido van Rossum
Guido van Rossum added the comment: Yup, I remember feeling a bit guilty doing it this way, but at least the semantics are correctly, and there were bigger fish to fry. Thanks for the test code that proves the issue! I assume it can be fixed by not using _wait() but some custom approach. If we

[issue20540] Python 3.3/3.4 regression in multiprocessing manager ?

2014-02-08 Thread Richard Oudkerk
Richard Oudkerk added the comment: LGTM -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue20566] asyncio as_completed() thrashes adding and removing callbacks

2014-02-08 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue20564] test_threadsignals.py "failed" on OpenBSD because too slow (> 3sec)

2014-02-08 Thread Remi Pointel
Remi Pointel added the comment: arf, sorry for the noise... I didn't seen this. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue20564] test_threadsignals.py "failed" on OpenBSD because too slow (> 3sec)

2014-02-08 Thread STINNER Victor
STINNER Victor added the comment: What is your OpenBSD version? Before 5.2, there were many issues with signals. -- nosy: +haypo ___ Python tracker ___ __

[issue20566] asyncio as_completed() thrashes adding and removing callbacks

2014-02-08 Thread Guido van Rossum
Guido van Rossum added the comment: BTW, just curious: Glenn, what led you to discover this? -- ___ Python tracker ___ ___ Python-bugs

[issue20564] test_threadsignals.py "failed" on OpenBSD because too slow (> 3sec)

2014-02-08 Thread Remi Pointel
Remi Pointel added the comment: I'm in -current (5.5-beta). -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20540] Python 3.3/3.4 regression in multiprocessing manager ?

2014-02-08 Thread Richard Oudkerk
Richard Oudkerk added the comment: BTW, I see little difference between 3.2 and the unpatched default branch on MacOSX: $ py-32/release/python.exe ~/Downloads/test_manager.py 0.0007331371307373047 8.20159912109375e-05 9.417533874511719e-05 8.082389831542969e-05 7.796287536621094e-05 0.00011587

[issue20065] Python-3.3.3/Modules/socketmodule.c:1660:14: error: 'CAN_RAW' undeclared (first use in this function)

2014-02-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset b1ff233d3ab1 by Charles-François Natali in branch '3.3': Issue #20065: socketmodule: Fix build error when AF_CAN is defined without the http://hg.python.org/cpython/rev/b1ff233d3ab1 New changeset 39a60d62d2a6 by Charles-François Natali in branch 'de

[issue20540] Python 3.3/3.4 regression in multiprocessing manager ?

2014-02-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Note that we're still behind the pre-rewrite performance (this is on > 2.7): If I believe the `time` command, the difference is additional userspace CPU time, therefore probably the pure Python overhead. -- ___ Py

[issue20565] Update Tcl/Tk version for buildbots

2014-02-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think the Windows buildbots should use the version delivered with the installer. While sticking with one tcl/tk version for one 18 to 24 month cycle is ok, perhaps we should consider updating the version delivered with 2.7. The features exposed by tkinter c

[issue20566] asyncio as_completed() thrashes adding and removing callbacks

2014-02-08 Thread Glenn Langford
Glenn Langford added the comment: > Glenn, what led you to discover this? It was found by code inspection. I recently started looking at concurrent.futures, really just curious as to how futures were implemented. Because one of the concurrent.futures bugs I raised also applied to asyncio, I s

[issue20565] Update Tcl/Tk version for buildbots

2014-02-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think this is done through the "external" SVN project: http://svn.python.org/projects/external/ -- nosy: +loewis ___ Python tracker ___ __

[issue20540] Python 3.3/3.4 regression in multiprocessing manager ?

2014-02-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've committed the fix. If there's less low-hanging fruit to pick, we can do that in another issue :) -- resolution: -> rejected stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <

[issue20540] Python 3.3/3.4 regression in multiprocessing manager ?

2014-02-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4816ab0477d2 by Antoine Pitrou in branch '3.3': Issue #20540: Fix a performance regression (vs. Python 3.2) when layering a multiprocessing Connection over a TCP socket. http://hg.python.org/cpython/rev/4816ab0477d2 New changeset 125c24f47f3c by An

[issue20529] Unittest displays ResourceWarning warnings when running tests, it probably should not

2014-02-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset a8a6dc7f478b by Senthil Kumaran in branch '3.3': Include the mention of ResourceWarning being displayed by default by the test runner. http://hg.python.org/cpython/rev/a8a6dc7f478b New changeset 7fc1e8095fb8 by Senthil Kumaran in branch 'default':

[issue20481] Clarify type coercion rules in statistics module

2014-02-08 Thread Nick Coghlan
Nick Coghlan added the comment: Yes, a new RFE to sensibly handle mixed type input in 3.5 would make sense (I did something similar for the issue where we removed the special casing of Counter for 3.4). -- ___ Python tracker

[issue20529] Unittest displays ResourceWarning warnings when running tests, it probably should not

2014-02-08 Thread Senthil Kumaran
Senthil Kumaran added the comment: I think, it is simply okay to mention about ResourceWarning being displayed. I spent something thinking and going into mechanics of how it is displayed may be an overkill for that line in unittest.rst. I'll make the change and if you see any further informati

[issue20529] Unittest displays ResourceWarning warnings when running tests, it probably should not

2014-02-08 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: -> orsenthil resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue20536] statistics._decimal_to_ratio() produces non-integer ratio

2014-02-08 Thread Wolfgang Maier
Wolfgang Maier added the comment: Steven, I think if exp >= 0: return int(x), 1 would have been a better patch, but yours is certainly working, just slower I guess. -- nosy: +wolma ___ Python tracker ___

[issue14983] email.generator should always add newlines after closing boundaries

2014-02-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset d579866d6419 by R David Murray in branch '2.7': #14983: always add a line end after a MIME boundary marker. http://hg.python.org/cpython/rev/d579866d6419 New changeset c2538789c8cf by R David Murray in branch '3.3': #14983: always add a line end aft

[issue14983] email.generator should always add newlines after closing boundaries

2014-02-08 Thread R. David Murray
R. David Murray added the comment: The existing tests that need to be changed to reflect the new behavior are sufficient for testing this, I think. There is small amount of backward compatibility concern here, but since it is an RFC compliance bug and it fixes a problem with verification, I de

[issue20499] Rounding errors with statistics.variance

2014-02-08 Thread Wolfgang Maier
Wolfgang Maier added the comment: I worked out a slightly speedier version of decimal_to_ratio today (Stefan: that's when I duplicated your bug report): from decimal import Context def _decimal_to_ratio (x): _, digits, exp = x.as_tuple() if exp in _ExactRatio.decimal_infinite: # INF,

[issue20563] Mark ipaddress as stable?

2014-02-08 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: pmoody -> ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue20563] Mark ipaddress as stable?

2014-02-08 Thread Nick Coghlan
Nick Coghlan added the comment: Yeah, I quickly gave up on trying to *apply* that netmask parsing patch for issue 18805, and instead just reimplemented it using the original as a guide (and, most importantly, as the source of the new test cases). The slightly different testing setup in the std

[issue20499] Rounding errors with statistics.variance

2014-02-08 Thread Wolfgang Maier
Wolfgang Maier added the comment: oops, > if exp in _ExactRatio.decimal_infinite: # INF, NAN, sNAN should read if exp in ('F', 'n', 'N'): # INF, NAN, sNAN of course. What I pasted comes from a micro-optimization I tried, but which doesn't give any benefit. --

[issue20563] Mark ipaddress as stable?

2014-02-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2b9c10f3b969 by Nick Coghlan in branch 'default': Close #20563: Declare ipaddress API stable http://hg.python.org/cpython/rev/2b9c10f3b969 -- nosy: +python-dev resolution: -> fixed stage: commit review -> committed/rejected status: open ->

[issue20567] test_ttk_guionly gets 'can't invoke "event" command: application has been destroyed' messages from Tk

2014-02-08 Thread Ned Deily
New submission from Ned Deily: Seen with default (3.4.0) framework builds on OS X 10.9 with ActiveTcl 8.5.15.0: ./configure --enable-universalsdk=/ --with-universal-archs=intel --enable-framework=/tmp/t/Library/Frameworks make && make install cd /tmp/t /tmp/t/bin/python3.4 -m test -w -uall [...

[issue20568] Pass --default-install to ensurepip in the Windows installers?

2014-02-08 Thread Nick Coghlan
New submission from Nick Coghlan: Installing 3.4b3 on Windows to test issue 20053, I was surprised to find that after installation, "pip install " didn't work. I had forgotten that due to the flat executable namespace on POSIX systems, we only install pip3 and pip3.4 by default - you have to p

[issue20500] assertion failed when passing an exception object to sys.exit

2014-02-08 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: -> ncoghlan nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue20500] assertion failed when passing an exception object to sys.exit

2014-02-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset e7708864a8d5 by Nick Coghlan in branch 'default': Close #20500: Don't trigger PyObject_Str assertion at shutdown http://hg.python.org/cpython/rev/e7708864a8d5 -- nosy: +python-dev resolution: -> fixed stage: needs patch -> committed/rejecte

[issue20500] assertion failed when passing an exception object to sys.exit

2014-02-08 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks for the report Xavier - 3.4 is a bit fussier about not losing that exception state silently, so the shutdown code simply needed to clear it explicitly after saving it on the local stack. -- ___ Python tracker

[issue20500] assertion failed when passing an exception object to sys.exit

2014-02-08 Thread Nick Coghlan
Nick Coghlan added the comment: I also added a versionchanged to PyObject_Str and a note in the Porting section of What's New, as third party extensions could also be affected by this change - it elevates "may silently discard an active exception" to "debug build assertion failure". -

[issue20566] asyncio as_completed() thrashes adding and removing callbacks

2014-02-08 Thread Guido van Rossum
Guido van Rossum added the comment: I'm looking into a solution for this. The idea is pretty straightforward: http://codereview.appspot.com/61210043. This needs more code to support the optional timeout feature, and it now returns Futures instead of coroutines (which I think is fine). But to

[issue20500] assertion failed when passing an exception object to sys.exit

2014-02-08 Thread STINNER Victor
STINNER Victor added the comment: "I also added a versionchanged to PyObject_Str and a note in the Porting section of What's New, as third party extensions could also be affected by this change - it elevates "may silently discard an active exception" to "debug build assertion failure"." Hi, I

[issue20500] assertion failed when passing an exception object to sys.exit

2014-02-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 41023a501c7b by Nick Coghlan in branch 'default': Issue #20500: Note other public APIs with the new assertion http://hg.python.org/cpython/rev/41023a501c7b -- ___ Python tracker

[issue20500] assertion failed when passing an exception object to sys.exit

2014-02-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9e7594d65178 by Nick Coghlan in branch 'default': Issue #20500: clarify that invocation may be indirect http://hg.python.org/cpython/rev/9e7594d65178 -- ___ Python tracker

[issue20500] assertion failed when passing an exception object to sys.exit

2014-02-08 Thread Nick Coghlan
Nick Coghlan added the comment: Above commits added notes for the other two currently documented public APIs directly affected by the change (PyEval_CallObjectWithKeywords isn't currently documented, despite the public name), and also updated the porting note to clarify that these operations m

[issue20569] IDLE : Add clipboard history feature

2014-02-08 Thread Saimadhav Heblikar
New submission from Saimadhav Heblikar: Hi, this patch adds clipboard history feature to idle.with this,we can retrieve any cut/copied text after the start of idle. it uses a list to store the messages called _clipboard_history it creates a dialog window to present a listbox and a paste button t

[issue20566] asyncio as_completed() thrashes adding and removing callbacks

2014-02-08 Thread Guido van Rossum
Guido van Rossum added the comment: OK, code is ready for review at http://code.google.com/p/tulip/source/detail?r=674355412f33 -- ___ Python tracker ___ ___

[issue20530] Change the text signature format (again) to be more robust

2014-02-08 Thread Nick Coghlan
Nick Coghlan added the comment: Updated patch fixes an assertion failure in typeobject.c (end doesn't point at the ")", it points at the newline immediately after it). -- Added file: http://bugs.python.org/file34003/issue20530_fixed_assertion.diff __

[issue20570] Bundle pip 0.15.3 in Python 3.4rc2

2014-02-08 Thread Nick Coghlan
New submission from Nick Coghlan: Larry, we currently have 0.15.2 bundled for 3.4rc1. This is the latest release of pip: http://www.pip-installer.org/en/latest/news.html#changelog However, there are a few additional fixes that have been merged to the pip 1.5.X maintenance branch that could be

[issue20053] venv and ensurepip are affected by default pip config file

2014-02-08 Thread Nick Coghlan
Nick Coghlan added the comment: I created issue 20570 to propose updating to pip 1.5.3 for 3.4rc2. That would include the pip side workaround for this issue, also allowing this issue to be closed. -- dependencies: +Bundle pip 0.15.3 in Python 3.4rc2 nosy: +larry priority: normal -> def

[issue20570] Bundle pip 0.15.3 in Python 3.4rc2

2014-02-08 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +Marcus.Smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue20530] Change the text signature format (again) to be more robust

2014-02-08 Thread Larry Hastings
Larry Hastings added the comment: Nick: I made the same fix on the plane, except I also added an assert that end - start >= 2. ;-) I'm going to go through everyone's feedback, and if there are any significant changes I'll post a new patch, otherwise I think this patch is basically ready. ---

[issue20568] Pass --default-install to ensurepip in the Windows installers?

2014-02-08 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +Marcus.Smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue20570] Bundle pip 0.15.3 in Python 3.4rc2

2014-02-08 Thread Nick Coghlan
Nick Coghlan added the comment: Donald also pointed out that we want the fix to make pip complain if it is passed a wheel 2.0+ file (it's currently missing the version number warnings/errors that are called for in PEP 427). That isn't merged yet upstream, but will be part of 0.15.3. I interpr

[issue20570] Bundle pip 0.15.3 in Python 3.4rc2

2014-02-08 Thread Donald Stufft
Donald Stufft added the comment: Just t be clear, it's 1.5.3 not 0.15.3. -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue20570] Bundle pip 1.5.3 in Python 3.4rc2

2014-02-08 Thread Nick Coghlan
Nick Coghlan added the comment: Oops - 0.15.3 was the version of Beaker we just released, so my brain keeps confusing the two numbers :) -- title: Bundle pip 0.15.3 in Python 3.4rc2 -> Bundle pip 1.5.3 in Python 3.4rc2 ___ Python tracker

[issue20530] Change the text signature format (again) to be more robust

2014-02-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 29d9638bf449 by Larry Hastings in branch 'default': Issue #20530: Argument Clinic's signature format has been revised again. http://hg.python.org/cpython/rev/29d9638bf449 -- nosy: +python-dev ___ Python t

[issue20530] Change the text signature format (again) to be more robust

2014-02-08 Thread Larry Hastings
Larry Hastings added the comment: I made a couple final tweaks to what was essentially Nick's patch: * Argument Clinic wraps parameters in the signature at 72 columns instead of 79 columns. There are a couple extra characters that get emitted, so this ensures that the generated lines are ne

[issue20538] Segfault in UTF-7 incremental decoder

2014-02-08 Thread Larry Hastings
Larry Hastings added the comment: This checkin appears to be causing a regression in the Windows buildbots. http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/4040 test_streamreaderwriter (test.test_codecs.WithStmtTest) ... test test_codecs failed ok ===

[issue20538] Segfault in UTF-7 incremental decoder

2014-02-08 Thread Larry Hastings
Changes by Larry Hastings : -- resolution: fixed -> stage: committed/rejected -> needs patch status: closed -> open ___ Python tracker ___ __

[issue20538] Segfault in UTF-7 incremental decoder

2014-02-08 Thread Larry Hastings
Larry Hastings added the comment: And to be clear: I'm currently waiting on this before tagging 3.4rc1. If someone who understands the issue could fix this soon, I would appreciate it. -- ___ Python tracker _

<    1   2