[issue27303] [argparse] Unify options in help output

2016-06-12 Thread Memeplex
New submission from Memeplex: Currently when you specify more than one name for an option (typically short and long versions) each name is listed with its entire arg list. This is annoying for options taking many args or choices, for example: --type {html,pdf,github,blogger}, -t {html,pdf,g

[issue27186] add os.fspath()

2016-06-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1ccd6196115a by Brett Cannon in branch 'default': Issue #27186: add Include/osmodule.h to the proper build rules https://hg.python.org/cpython/rev/1ccd6196115a -- ___ Python tracker

[issue27303] [argparse] Unify options in help output

2016-06-12 Thread Memeplex
Changes by Memeplex : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue27303] [argparse] Unify options in help output

2016-06-12 Thread SilentGhost
Changes by SilentGhost : -- versions: +Python 3.6 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue12623] "universal newlines" subprocess support broken with select- and poll-based communicate()

2016-06-12 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue18369] X509 cert class for ssl module

2016-06-12 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue26439] ctypes.util.find_library fails when ldconfig/glibc not available (e.g., AIX)

2016-06-12 Thread aixtools
aixtools added the comment: On 6/12/2016 11:41 AM, Martin Panter wrote: > . > Michael, how are you supposed to apply your latest patch? I have Gnu Patch > 2.7.5, but even in the best case it doesn’t find the files to patch: > > $ patch -p1 -n < python.Lib.ctypes.160608.patch > can't find file to

[issue20674] Update comments in dictobject.c

2016-06-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: Christian, I assigned to you because I thought you had done the SIPhash work that invalidated these comments. Do you know who the right person is? -- ___ Python tracker _

[issue10839] email module should not allow some header field repetitions

2016-06-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: Would you consider raising an exception at least for the case of a "To:" header or perhaps a warning or someother failsafe. Using __setitem__ for appending instead of replacement is surprising and in the case of LetsEncrypt was a small disaster. There is

[issue27136] sock_connect fails for bluetooth (and probably others)

2016-06-12 Thread A. Jesse Jiryu Davis
A. Jesse Jiryu Davis added the comment: Thanks, I'm not a core dev or I'd try it myself. Yury, do you think that's a good approach, or should I mock getaddrinfo for that test? I fear mocking out too much and accidentally not testing anything, or of making tests that someone *else* could accide

[issue27303] [argparse] Unify options in help output

2016-06-12 Thread paul j3
paul j3 added the comment: There are 2 issues here - - how to make the 'choices' list most compact - how to make the multiple option strings display (long and short) more compact, regardless of why the argument part is long. When the choices display is too long, 'metavar' is a handy alternat

[issue27025] More human readable generated widget names

2016-06-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: I apologize for my mistake, but it is not of much relevance. My preference is based on my subjective reactions on reading both variations. I used tknames.py, which outputs < 20 names, rather than the code that output > 200 names, because the former seems more

[issue27024] IDLE shutdown glitch when started by import

2016-06-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: I applied to 2.7 after changing the file name. I still get F:\Python\dev\27>pcbuild\python_d.exe -m test.regrtest -ugui test_idle [1/1] test_idle can't invoke "event" command: application has been destroyed while executing "event generate $w <>" (proced

[issue24363] httplib fails to handle semivalid HTTP headers

2016-06-12 Thread Martin Panter
Martin Panter added the comment: See also Issue 26686; the same problem, but with parsing RFC5322 header fields, rather than HTTP. -- ___ Python tracker ___

[issue10839] email module should not allow some header field repetitions

2016-06-12 Thread Martin Panter
Martin Panter added the comment: There are already the makings of an alternative API: https://docs.python.org/3.6/library/email.message.html#email.message.Message.add_header There is also replace_header(), but it only replaces the _first_ header field, and leaves later ones untouched. However

[issue27024] IDLE shutdown glitch when started by import

2016-06-12 Thread Mark Roseman
Mark Roseman added the comment: tried this patch on 3.6 as per terry's previous msg; still getting same error in idle test suite on os x -- nosy: +markroseman ___ Python tracker ___

[issue27303] [argparse] Unify options in help output

2016-06-12 Thread paul j3
paul j3 added the comment: http://stackoverflow.com/questions/18275023/dont-show-long-options-twice-in-print-help-from-argparse Once answer demonstrates how to change the Formatter: class CustomHelpFormatter(argparse.HelpFormatter): def _format_action_invocation(self, action): if no

[issue25476] close() behavior on non-blocking BufferedIO objects with sockets

2016-06-12 Thread Martin Panter
Martin Panter added the comment: I propose to reject this. Close() should always close the underlying file descriptor or socket, even if there is a blocking error or other exception. -- resolution: -> rejected status: open -> pending ___ Python trac

[issue26292] Raw I/O writelines() broken for non-blocking I/O

2016-06-12 Thread Martin Panter
Martin Panter added the comment: Victor, why did you change the title to specify non-blocking mode? I think blocking mode can also be handled at the same time. I propose: 1. In existing versions (2.7, 3.5): Document that it is undefined what IOBase.writelines() will do if a write() call does

[issue27186] add os.fspath()

2016-06-12 Thread Martin Panter
Martin Panter added the comment: Should the skip logic perhaps check for sys.platform == "win32" instead? The buildbots are still failing. -- ___ Python tracker ___

[issue27186] add os.fspath()

2016-06-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset f384c5c14488 by Martin Panter in branch 'default': Issue #27186: Skip scandir(bytes) test with os.name == "nt" https://hg.python.org/cpython/rev/f384c5c14488 -- ___ Python tracker

[issue27303] [argparse] Unify options in help output

2016-06-12 Thread Memeplex
Memeplex added the comment: Thank you for the tips, Paul. The issue is related to the default behavior but it's always good to know about handy workarounds and extensibility hooks. -- ___ Python tracker __

[issue27304] Create "Source Code" links in module sections, where relevant

2016-06-12 Thread Yoni Lavi
New submission from Yoni Lavi: This is a follow to #22558. As per Terry's suggestion in #22558, for packages with multiple modules that are all documented on the same page and that currently have a "Source Code" link to an __init__ file (e.g. importlib), we should also add more specific "Sour

[issue22558] Missing doc links to source code for Python-coded modules.

2016-06-12 Thread Yoni Lavi
Yoni Lavi added the comment: Created issue 27304 and uploaded a patch. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue27163] IDLE entry for What's New in Python 3.6

2016-06-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset a3cffed2c9ad by Terry Jan Reedy in branch 'default': Issue #27163: Add idlelib/IDLE entry to What's New in 3.6. https://hg.python.org/cpython/rev/a3cffed2c9ad -- nosy: +python-dev ___ Python tracker

[issue10839] email module should not allow some header field repetitions

2016-06-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jun 13, 2016, at 12:09 AM, Martin Panter wrote: >I think I would support deprecating the __setitem__() etc methods, perhaps >with a cleanup of the alternatives, e.g. add remove_all(). Also, >__getitem__() is equivalent to get(), which does not raise KeyError

[issue10839] email module should not allow some header field repetitions

2016-06-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jun 12, 2016, at 09:19 PM, Raymond Hettinger wrote: >Would you consider raising an exception at least for the case of a "To:" >header or perhaps a warning or someother failsafe. No, not for compat32 policy. Seriously, I do not want to change the semantics

[issue27025] More human readable generated widget names

2016-06-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: ` and ^ LGTM. We can change this in any time if it looks bad. -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___

[issue27025] More human readable generated widget names

2016-06-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 304c61263ae6 by Serhiy Storchaka in branch 'default': Issue #27025: Generated names for Tkinter widgets are now more meanful https://hg.python.org/cpython/rev/304c61263ae6 -- nosy: +python-dev ___ Python

[issue10839] email module should not allow some header field repetitions

2016-06-12 Thread Berker Peksag
Berker Peksag added the comment: I don't think a new API is needed. But we need to promote the policy keyword better in docs. See https://twitter.com/aksiksi/status/741769504817045508 for an example of confusion. I don't know if it's a good idea or API but can we add a 'policy' keyword argume

[issue26867] test_ssl test_options fails on ubuntu 16.04

2016-06-12 Thread Matthias Klose
Matthias Klose added the comment: Description: properly handle Ubuntu's openssl having OP_NO_SSLv3 forced on by default Author: Marc Deslauriers Forwarded: yes, http://bugs.python.org/issue25724 Index: b/Lib/test/test_ssl.py === -

[issue26867] test_ssl test_options fails on ubuntu 16.04

2016-06-12 Thread Larry Hastings
Larry Hastings added the comment: That does seem like it'd make the test failure go away. But the fix seems a little Ubuntu-specific. Is it reasonable to do that when testing on every platform? -- ___ Python tracker

<    1   2