[issue24431] StreamWriter.drain is not callable concurrently

2015-06-12 Thread Guido van Rossum
Guido van Rossum added the comment: Note that Glyph recommends against this fix (see mailing list). On Thu, Jun 11, 2015 at 7:59 AM, Martin Teichmann wrote: > > New submission from Martin Teichmann: > > Currently there is an assert statement asserting that no two > tasks (asyncio tasks, that i

[issue11245] Implementation of IMAP IDLE in imaplib?

2015-06-12 Thread F Malina
F Malina added the comment: I am in for my part and I emailed Piers to come and join us and he surely will when the bug tracker is responsive again. Imaplib2 does have an up to date test suite and compatibility wise imaplib2 can be substituted for imaplib in existing clients with no changes in t

[issue24438] Strange behaviour when multiplying imaginary inf by 1

2015-06-12 Thread Alex Monk
New submission from Alex Monk: alex@alex-laptop:~$ python3 Python 3.4.3 (default, Mar 26 2015, 22:03:40) [GCC 4.9.2] on linux Type "help", "copyright", "credits" or "license" for more information. >>> infj = complex(0, float("inf")) >>> infj infj >>> infj*1 (nan+infj) >>> infj*1*1 (nan+nanj) --

[issue24437] Add information about the buildbot console view and irc notices to devguide

2015-06-12 Thread R. David Murray
R. David Murray added the comment: Thanks for the review. Here is an updated patch. -- Added file: http://bugs.python.org/file39693/buildbot-console-irc.patch ___ Python tracker ___

[issue24438] Strange behaviour when multiplying imaginary inf by 1

2015-06-12 Thread R. David Murray
Changes by R. David Murray : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue11245] Implementation of IMAP IDLE in imaplib?

2015-06-12 Thread R. David Murray
R. David Murray added the comment: This is great. When you say it is fully compatible, though, is that testing against imaplib in python2 or python3? It is the python3 decisions about string/bytes handling where the discrepancies are most likely to arise, unless the python3 port was modeled

[issue23996] _PyGen_FetchStopIterationValue() crashes on unnormalised exceptions

2015-06-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Have you tried benchmarking the "slow" solution? -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue23760] Tkinter in Python 3.4 on Windows don't post internal clipboard data to the Windows clipboard on exit

2015-06-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is minimal reproducer on Tcl/Tk. I don't have a workaround. -- status: pending -> open Added file: http://bugs.python.org/file39694/issue23760.tcl ___ Python tracker ___

[issue11245] Implementation of IMAP IDLE in imaplib?

2015-06-12 Thread F Malina
F Malina added the comment: I just wen’t through my repo looking at relevant commits to double check and I didn’t have to change a line in my user level code when upgrading from python2 to 3. There was only one way to do it. -- ___ Python tracker <

[issue11245] Implementation of IMAP IDLE in imaplib?

2015-06-12 Thread R. David Murray
R. David Murray added the comment: Do you have any tests that use non-ascii passwords? I think that was the most significant bug. -- ___ Python tracker ___

[issue24087] Documentation doesn't explain the term "coroutine" (PEP 342)

2015-06-12 Thread Martin Panter
Martin Panter added the comment: I suspect the patch is out of date due to PEP 492 and Issue 24180 (“await” syntax for coroutines). But maybe the current glossary entry could be refined to also mention generators. -- nosy: +vadmium ___ Python tracke

[issue11245] Implementation of IMAP IDLE in imaplib?

2015-06-12 Thread F Malina
F Malina added the comment: I don’t have a test for it, neither has stdlib imaplib. We just need to port over the encode fix. Copy over the fixed version of _CRAM_MD5_AUTH. from line 599 in python3.5 imaplib https://github.com/python/cpython/blob/master/Lib/imaplib.py#L599

[issue24439] Feedback for awaitable coroutine documentation

2015-06-12 Thread Martin Panter
New submission from Martin Panter: Today I tried playing with the new “async def” functionality in the interactive interpreter, based on reading the documentation. Here are some bits that surprised me, so could be the focus of further documentation. (Initial documentation added in Issue 24180.

[issue24438] Strange behaviour when multiplying imaginary inf by 1

2015-06-12 Thread Steven D'Aprano
Steven D'Aprano added the comment: I've found the same behaviour going back to Python 1.5. I think what happens here is that (0+∞j)*1 evaluates the multiplication by implicitly coercing the int to a complex: (0+∞j)*(1+0j) => (0*1 + ∞j*1 + 0*0j + ∞j*0j) => (0-NAN + ∞j+0j) => (NA

[issue24437] Add information about the buildbot console view and irc notices to devguide

2015-06-12 Thread Zachary Ware
Zachary Ware added the comment: LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue24437] Add information about the buildbot console view and irc notices to devguide

2015-06-12 Thread Carol Willing
Carol Willing added the comment: Thank you R. David and Zach. The patch looks good to me too, and the info will be helpful to others. Please commit and let's get this good info out to others :) (I don't have privileges or I would do so.) -- stage: patch review -> commit review ___

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2015-06-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4335d898be59 by Victor Stinner in branch 'default': Issue #15745: Rewrite os.utime() tests in test_os https://hg.python.org/cpython/rev/4335d898be59 -- nosy: +python-dev ___ Python tracker

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2015-06-12 Thread STINNER Victor
STINNER Victor added the comment: I pushed test_utime.patch with minor updates: * _test_utime_current() now also checks if the FS supports subsecond * use a delta of 20 ms in _test_utime_current(), instead of 10 ms, for Windows I will wait for FreeBSD and Solaris buildbots to see if my changes

[issue24440] Move the buildslave setup information from the wiki to the devguide

2015-06-12 Thread R. David Murray
New submission from R. David Murray: I propose that we move the information on setting up a buildslave from the wiki to the devguide. The attached patch is my rewrite (hopefully an improvement) of the information from the wiki. Note that there are a couple of TBD pieces (setup on Windows, re

[issue24440] Move the buildslave setup information from the wiki to the devguide

2015-06-12 Thread R. David Murray
Changes by R. David Murray : -- keywords: +patch Added file: http://bugs.python.org/file39695/buildslave.patch ___ Python tracker ___

[issue24437] Add information about the buildbot console view and irc notices to devguide

2015-06-12 Thread R. David Murray
R. David Murray added the comment: Oops, forgot to put the issue number in the commit message: bff43c5c8c4f -- resolution: -> fixed stage: commit review -> resolved status: open -> closed type: -> enhancement ___ Python tracker

[issue24440] Move the buildslave setup information from the wiki to the devguide

2015-06-12 Thread Carol Willing
Carol Willing added the comment: R. David, this will be an excellent addition to the devguide. Great clarity in the text. I particularly like your discussion of what are buildbots and who provides and maintains them. It also encourages those interested in a particular os to consider maintainin

[issue24438] Strange behaviour when multiplying imaginary inf by 1

2015-06-12 Thread Mark Dickinson
Mark Dickinson added the comment: There's no bug here: as Steven explained, this is simply the result of the usual arithmetic conversions when performing a mixed-type operation. > Python should multiply a complex by a non-complex in the "simple" way I think this would just be adding unnecessa

[issue24438] Strange behaviour when multiplying imaginary inf by 1

2015-06-12 Thread Mark Dickinson
Mark Dickinson added the comment: Closing as not a bug; for the suggestion of changing the mixed-type arithmetic behaviour, I think that's something that should be discussed on the python-ideas mailing list. -- resolution: -> not a bug stage: -> resolved status: open -> closed

[issue24391] Better repr for threading objects

2015-06-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: The Semaphore and BoundedSemphore examples show why including the module is helpful. I prefer the function-call syntax, as long as it is accurate, even though the string as a whole cannot be eval()-ed. In any case, threading and multiprocessing are somewhat

[issue11245] Implementation of IMAP IDLE in imaplib?

2015-06-12 Thread Piers Lauder
Changes by Piers Lauder : -- nosy: +piers ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue24403] Missing fixer for changed round() behavior

2015-06-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: The fix would be to add a 'round' function at the top of a module, after the imports. This is more the provenance of 2 & 3 compatibility modules, such as 6, which might have both round2 and round3 functions. -- nosy: +terry.reedy

[issue24431] StreamWriter.drain is not callable concurrently

2015-06-12 Thread Guido van Rossum
Guido van Rossum added the comment: See mailing list discussion. -- resolution: -> rejected status: open -> closed ___ Python tracker ___ ___

[issue24405] Missing code markup in "Expressions" documentation

2015-06-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is Py3 only (Py 2 has no set displays) in Reference Manual, 6.9. Comparisons. (Please provide such info with reports.) Will fix. -- nosy: +terry.reedy stage: -> needs patch versions: +Python 3.4, Python 3.5, Python 3.6 _

[issue24405] Missing code markup in "Expressions" documentation

2015-06-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset ccb0f43964e0 by Terry Jan Reedy in branch '3.4': Closes issue #24405: mark set display as code. https://hg.python.org/cpython/rev/ccb0f43964e0 -- nosy: +python-dev ___ Python tracker

[issue24405] Missing code markup in "Expressions" documentation

2015-06-12 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: needs patch -> resolved type: enhancement -> behavior ___ Python tracker ___ _

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2015-06-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 50ec3fb126dd by Victor Stinner in branch '3.4': Issue #15745: Rewrite os.utime() tests in test_os https://hg.python.org/cpython/rev/50ec3fb126dd New changeset 744c96cd57da by Victor Stinner in branch '3.5': (Merge 3.4) Issue #15745: Rewrite os.utime

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2015-06-12 Thread STINNER Victor
STINNER Victor added the comment: I applied the fix to Python 3.4 and 3.5 too. Python 2.7 doesn't look to be affected by the issue, I don't see any test copying the timestamp of a file to another, nor test on timestamp using nanosecond resolution. -- versions: -Python 2.7 __

[issue24406] "Built-in Types" doc doesn't explain dict comparison.

2015-06-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: The 3.4 sequence section also has this: "Sequences of the same type also support comparisons. In particular, tuples and lists are compared lexicographically by comparing corresponding elements." I agree that dicts should have a similar sentence or two. Neithe

[issue24406] "Built-in Types" doc doesn't explain dict comparison.

2015-06-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset d775fad1db43 by Terry Jan Reedy in branch '2.7': Issue #24406: Add sentences on dict comparisons, similar to those for Sequence https://hg.python.org/cpython/rev/d775fad1db43 New changeset 4e816c324846 by Terry Jan Reedy in branch '3.4': Issue #2440

[issue24406] "Built-in Types" doc doesn't explain dict comparison.

2015-06-12 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs

[issue20186] Derby #18: Convert 31 sites to Argument Clinic across 23 files

2015-06-12 Thread Tal Einat
Tal Einat added the comment: Attached is a revised patch for Modules/mathmodule.c incorporating changes suggested by Serhiy in his review. The major change is the reformatting of the doc-strings of most of the functions in the module to use the same format as doc-strings generated by AC.

[issue24441] In argparse add_argument() allows the empty choices argument

2015-06-12 Thread py.user
New submission from py.user: A script, configuring argparse to have no choices: #!/usr/bin/env python3 import argparse parser = argparse.ArgumentParser() parser.add_argument('foo', choices=[]) args = parser.parse_args() print(args) Running it: [guest@localhost args]$ ./t.py usage: t.py [-h

[issue24441] In argparse add_argument() allows the empty choices argument

2015-06-12 Thread R. David Murray
R. David Murray added the comment: There's no real reason to throw an error here, and to do so would break backward compatibility and, arguably, functionality: someone autogenerating a choices list might depend on the empty list working. -- nosy: +r.david.murray resolution: -> rejecte

[issue24402] input() uses sys.__stdout__ instead of sys.stdout for prompt

2015-06-12 Thread Tal Einat
Tal Einat added the comment: Okay, so the change is straightforward. With this change the entire test suite passes on my machine. We'll need a test for this for the test suite, and that's far less straightforward. It seems that test.test_builtin.BuiltinTest.check_input_tty() could be a starti

[issue24402] input() uses sys.__stdout__ instead of sys.stdout for prompt

2015-06-12 Thread Tal Einat
Tal Einat added the comment: Here's a patch with just the required fix (no tests). -- keywords: +patch Added file: http://bugs.python.org/file39697/issue24402.fix_only.patch ___ Python tracker _

[issue22158] RFC 6531 (SMTPUTF8) support in smtpd.PureProxy

2015-06-12 Thread Milan Oberkirch
Milan Oberkirch added the comment: I just wanted to note that this patch works with the current default repo as expected. I will try to come up with some tests now (PureProxy is not tested at all right now). -- ___ Python tracker

[issue24405] Missing code markup in "Expressions" documentation

2015-06-12 Thread Berker Peksag
Changes by Berker Peksag : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue24429] msvcrt error when embedded

2015-06-12 Thread erik flister
erik flister added the comment: well i can confirm @eryksun's method works, so it's not a problem with how the manifest is included in the dll. to me, the real issue is that ctypes.cdll.msvcrt and find_library('c') aren't correct. the first returns something "old and unsupported," or "offici

[issue24432] Upgrade windows builds to use OpenSSL 1.0.2b

2015-06-12 Thread Ned Deily
Ned Deily added the comment: Make that OpenSSL 1.0.2c now. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue11245] Implementation of IMAP IDLE in imaplib?

2015-06-12 Thread Piers Lauder
Piers Lauder added the comment: Hi, apologies for not responding to the "pierslauder" pings, but i don't own that login, or at least have forgotten all about it, and its email address is invalid (or there is another pierslauder out there). I maintain imaplib2 on sourceforge (as piersrlauder) a

[issue24442] Readline Bindings Don't Report Any Error On Completer Function Exception

2015-06-12 Thread Perry Randall
New submission from Perry Randall: Noticed this while writing a non-trivial completion function for readline.set_completer. When an exception is thrown in the completion function readline doesnt do anything, squashes the error, this should not be the case. -- components: Interpreter Co

[issue24442] Readline Bindings Don't Report Any Error On Completer Function Exception

2015-06-12 Thread Steven D'Aprano
Steven D'Aprano added the comment: I disagree that it "should not be the case", I think Python's current behaviour is correct. Although it makes debugging completer functions harder, it would not be good for a bug in the completer to raise an exception and break line editing. This is one case

[issue24442] Readline Bindings Don't Report Any Error On Completer Function Exception

2015-06-12 Thread Perry Randall
Perry Randall added the comment: Ah yeah you're correct, on second thought I think an addition to the readline documentation is warranted, not a code change. -- ___ Python tracker _

[issue22158] RFC 6531 (SMTPUTF8) support in smtpd.PureProxy

2015-06-12 Thread Milan Oberkirch
Milan Oberkirch added the comment: After looking at this patch and how we implemented SMTPUTF8 in the parent class again, I think we can come up with a more generic solution. Haven't it figured out quite yet. -- ___ Python tracker

[issue24442] Readline Bindings Don't Report Any Error On Completer Function Exception

2015-06-12 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> docs@python components: +Documentation -Interpreter Core nosy: +docs@python versions: -Python 3.2, Python 3.3 ___ Python tracker __

[issue24175] Consistent test_utime() failures on FreeBSD

2015-06-12 Thread Zachary Ware
Zachary Ware added the comment: This appears to have been fixed in #15745. -- resolution: -> fixed stage: -> resolved status: open -> closed superseder: -> Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS) type: -> behavior _

[issue21783] smtpd.py does not allow multiple helo/ehlo commands

2015-06-12 Thread Milan Oberkirch
Milan Oberkirch added the comment: Here is the patch how it should look like at some point. Question being: How should we handle backwards-compatibility? -- keywords: +patch Added file: http://bugs.python.org/file39699/issue21783.patch ___ Python tra

[issue24442] Readline Bindings Don't Report Any Error On Completer Function Exception

2015-06-12 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue22872] multiprocessing.Queue raises AssertionError

2015-06-12 Thread Milan Oberkirch
Milan Oberkirch added the comment: Here is the trivial patch for that :) -- keywords: +patch nosy: +zvyn Added file: http://bugs.python.org/file39700/issue22872.patch ___ Python tracker

[issue795081] email.Message param parsing problem II

2015-06-12 Thread Milan Oberkirch
Milan Oberkirch added the comment: Is this still relevant? I just made a patch based on the suggestions discussed and it does not change the behavior of the original bug report (but fixed the bug regarding '' mentioned by tony_nelson). Maybe I'm missing something? -- keywords: +pat

[issue24412] setUpClass equivalent for addCleanup

2015-06-12 Thread Tal Einat
Tal Einat added the comment: Is this really needed? One can use try/except/raise, and since addClassCleanup() would only be called from setUpClass(), I don't quite see the utility of it. -- nosy: +taleinat ___ Python tracker

[issue24443] Link for clear and wait missing in EventObjects

2015-06-12 Thread Jaivish Kothari
New submission from Jaivish Kothari: https://docs.python.org/2/library/threading.html#threading.Event.set links missing for wait and clear . set() is linked though. Line: " An event object manages an internal flag that can be set to true with the set() method and reset to false with the clear

[issue24412] setUpClass equivalent for addCleanup

2015-06-12 Thread Robert Collins
Robert Collins added the comment: It would be nice for symmetry. I mean, setUpClass isn't needed either, and we have it ;). however, we actually have two contexts this would be called from - setUpClass and setUpModule; both share their internals. So we probably need a decoupled cleanups imple

[issue24403] Missing fixer for changed round() behavior

2015-06-12 Thread Tal Einat
Tal Einat added the comment: See the existing issue and discussion about this on the six library's issue tracker (opened nearly a year ago): https://bitbucket.org/gutworth/six/issue/94/introduce-sixround -- nosy: +taleinat ___ Python tracker

[issue24444] In argparse empty choices cannot be printed in the help

2015-06-12 Thread py.user
New submission from py.user: >>> import argparse >>> >>> parser = argparse.ArgumentParser() >>> _ = parser.add_argument('foo', choices=[], help='%(choices)s') >>> parser.print_help() Traceback (most recent call last): File "", line 1, in File "/home/guest/tmp/tests/misc/git/example/cpython/

[issue24421] Race condition compiling Modules/_math.c

2015-06-12 Thread Tal Einat
Tal Einat added the comment: Confirmed on OSX 10.10. Here's my output: running build running build_ext building 'cmath' extension ./slow-cc.py -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Werror=declaration-after-statement -I./Include