[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 rep...@bugs.python.org wrote: New submission from Martin Teichmann: Currently there is an assert statement asserting that no two tasks

[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

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

[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

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

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue24431 ___

[issue24405] Missing code markup in Expressions documentation

2015-06-12 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- resolution: - fixed stage: needs patch - resolved type: enhancement - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24405 ___

[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

[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

[issue11245] Implementation of IMAP IDLE in imaplib?

2015-06-12 Thread Piers Lauder
Changes by Piers Lauder pi...@it.usyd.edu.au: -- nosy: +piers ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11245 ___ ___ Python-bugs-list mailing

[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

[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

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

[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 rep...@bugs.python.org http://bugs.python.org/issue24402

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

2015-06-12 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: - docs@python components: +Documentation -Interpreter Core nosy: +docs@python versions: -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org

[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 rep...@bugs.python.org http://bugs.python.org/issue22872

[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

[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 Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24442 ___ ___ Python-bugs-list

[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

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue24432 ___ ___ Python-bugs-list mailing

[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) at

[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

[issue24405] Missing code markup in Expressions documentation

2015-06-12 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24405 ___ ___

[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

[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 rep...@bugs.python.org

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

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

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

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue24437

[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

[issue24438] Strange behaviour when multiplying imaginary inf by 1

2015-06-12 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24438 ___ ___

[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 rep...@bugs.python.org http://bugs.python.org/issue23996 ___ ___

[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

[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) = (NAN

[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 rep...@bugs.python.org http://bugs.python.org/issue24437 ___ ___ Python-bugs-list mailing list Unsubscribe:

[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

[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

[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

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

[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

[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

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