[issue32123] Make the API of argparse.HelpFormatter public

2018-01-08 Thread paul j3
paul j3 added the comment: To elaborate on my last comment, the existing subclasses that customize formatting modify _fill_text _split_lines _get_help_string _get_default_metavar_for_optional _get_default_metavar_for_positional those are all 'private' methods. --

[issue32474] argparse nargs should support string wrapped integers too

2018-01-08 Thread paul j3
paul j3 added the comment: In https://bugs.python.org/issue11354 'argparse: nargs could accept range of options count' I explored the option allowing regex style range arguments, such as nargs='{2,4}' or an equivalent tuple nargs=(2,4). But that builds on

[issue32517] test_read_pty_output() of test_asyncio hangs on macOS 10.13.2 (darwin 17.3.0)

2018-01-08 Thread Ned Deily
Change by Ned Deily : -- nosy: +mattbillenstein ___ Python tracker ___ ___ Python-bugs-list

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2018-01-08 Thread Tom Karzes
Tom Karzes added the comment: I'm dismayed to see that this bug was reported in 2010, yet as of January 2018 has not yet been fixed. This option parsing behavior is contrary to Unix option passing conventions. I certainly don't mind enhancements, but the last thing that

[issue32521] NIS module fails to build due to the removal of interfaces related to Sun RPC from glibc.

2018-01-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think this is a duplicate of #32007. -- nosy: +benjamin.peterson ___ Python tracker ___

[issue32518] HTTPServer can't deal with persistent connection properly

2018-01-08 Thread 杨鹏
杨鹏 added the comment: OK,i got it. thanks for your reply. But i have to say, the BaseHTTPServer document is kind of confusing. It claims to support persistent connection, but actually it hangs with such situation, i can't even shut it down with shudown() method. After

[issue32232] building extensions as builtins is broken in 3.7

2018-01-08 Thread Ned Deily
Ned Deily added the comment: Can someone provide a pull request and a test for this prior to beta 1? -- ___ Python tracker ___

[issue32248] Port importlib_resources (module and ABC) to Python 3.7

2018-01-08 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +4998 ___ Python tracker ___ ___ Python-bugs-list

[issue32518] HTTPServer can't deal with persistent connection properly

2018-01-08 Thread Martin Panter
Change by Martin Panter : -- superseder: HTTPServer can't deal with persistent connection properly -> http.server and SimpleHTTPServer hang after a few requests ___ Python tracker

[issue32521] NIS module fails to build due to the removal of interfaces related to Sun RPC from glibc.

2018-01-08 Thread Christian Heimes
Christian Heimes added the comment: I modified setup.py to look for libtirpc. In case the library is detected, it's added as dependency and /usr/include/tirpc is included in search path. -- assignee: christian.heimes -> stage: patch review -> versions: -Python

[issue31963] AMD64 Debian PGO 3.x buildbot: compilation failed with an internal compiler error in create_edge

2018-01-08 Thread Neil Schemenauer
Neil Schemenauer added the comment: That's mysterious. I reviewed the 'stdout' log from the buildbot. The removal of profile data is run early in the build: find . -name '*.gc??' -exec rm -f {} ';' Later, the bytearrayobject is compiled with profile generation

[issue28009] core logic of uuid.getnode() is broken for AIX - all versions

2018-01-08 Thread Michael Felt
Michael Felt added the comment: On 08/01/2018 17:22, Michael wrote: > On 08/01/2018 16:07, Michael Felt wrote: >> Michael Felt added the comment: >> >> Considering that _uuid is now working for AIX issue32399 - some time differences - this is on

[issue32521] NIS module fails to build due to the removal of interfaces related to Sun RPC from glibc.

2018-01-08 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +4997 stage: -> patch review ___ Python tracker ___

[issue32521] NIS module fails to build due to the removal of interfaces related to Sun RPC from glibc.

2018-01-08 Thread Christian Heimes
Change by Christian Heimes : -- assignee: -> christian.heimes nosy: +christian.heimes ___ Python tracker ___

[issue32521] NIS module fails to build due to the removal of interfaces related to Sun RPC from glibc.

2018-01-08 Thread STINNER Victor
STINNER Victor added the comment: > The header is located at /usr/include/tirpc/rpc/rpc.h configure.ac should be modified to detect tirpc is installed. If yes, setup.py should add /usr/include/tirpc/ to includes to build the "nis" module. --

[issue32521] NIS module fails to build due to the removal of interfaces related to Sun RPC from glibc.

2018-01-08 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: The header is located at /usr/include/tirpc/rpc/rpc.h -- ___ Python tracker ___

[issue32521] NIS module fails to build due to the removal of interfaces related to Sun RPC from glibc.

2018-01-08 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Already tried. Unfortunately it doesn't. -- ___ Python tracker ___

[issue32521] NIS module fails to build due to the removal of interfaces related to Sun RPC from glibc.

2018-01-08 Thread STINNER Victor
STINNER Victor added the comment: Do you know if installing libtirpc-devel does install required rpc/rpc.h / fixes the issue? -- ___ Python tracker

[issue32521] NIS module fails to build due to the removal of interfaces related to Sun RPC from glibc.

2018-01-08 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___

[issue32521] NIS module fails to build due to the removal of interfaces related to Sun RPC from glibc.

2018-01-08 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- title: NIS module fails to build due to the remove of interfaces related to Sun RPC from glibc. -> NIS module fails to build due to the removal of interfaces related to Sun RPC from glibc.

[issue32521] NIS module fails to build due to the remove of interfaces related to Sun RPC from glibc.

2018-01-08 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : Currently on the development branch of Fedora (28), an upstream change of glibc is being pushed where the Sun RPC support is removed from our downstream glibc package in favor of the libtirpc library. More details [0]. As a

[issue28009] core logic of uuid.getnode() is broken for AIX - all versions

2018-01-08 Thread Michael Felt
Michael Felt added the comment: On 08/01/2018 16:07, Michael Felt wrote: > Michael Felt added the comment: > > Considering that _uuid is now working for AIX issue32399 - I need to get some > things straight (aka some help please). > > Does uuid.py

[issue32520] error writing to file in binary mode - python 3.6.3

2018-01-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: print() converts all its arguments to string by calling str(). The resulting strings are written to the output file. print(bin_buff, file=fp) is equivalent to fp.write(str(bin_buff)) fp.write('\n') If you will run

[issue32174] nonASCII punctuation characters can not display in python363.chm.

2018-01-08 Thread wwq
wwq added the comment: I found the problem was not fixed on python364.chm but it show well on python362.chm, maybe the python.org official config was a change to let the coding error. -- nosy: +wwqgtxx ___ Python tracker

[issue31993] pickle.dump allocates unnecessary temporary bytes / str

2018-01-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'll create a separate PR for the memoroview issue after merging PR 5114. -- ___ Python tracker

[issue32520] error writing to file in binary mode - python 3.6.3

2018-01-08 Thread jeff deifik
New submission from jeff deifik : I am running python 3.6.3 on cygwin / windows. Here is a test program to demonstrate the bug: #!/usr/bin/env python3 fp = open("bug_out.txt", "ab") buff = 'Hello world' print('type of buff is', type(buff)) bin_buff = bytes(buff, 'utf-8')

[issue32517] test_read_pty_output() of test_asyncio hangs on macOS 10.13.2 (darwin 17.3.0)

2018-01-08 Thread STINNER Victor
Change by STINNER Victor : -- title: test_read_pty_output() of test_asyncio hangs on x86-64 Sierra 3.6 -> test_read_pty_output() of test_asyncio hangs on macOS 10.13.2 (darwin 17.3.0) ___ Python tracker

[issue28009] core logic of uuid.getnode() is broken for AIX - all versions

2018-01-08 Thread Michael Felt
Michael Felt added the comment: Considering that _uuid is now working for AIX issue32399 - I need to get some things straight (aka some help please). Does uuid.py (./Lib/uuid.py) call _uuid.py? If not, I am curious how _uuid.c is used - because ./Lib/test/test_uuid.py

[issue32519] venv API docs - symlinks default incorrect

2018-01-08 Thread Jason R. Coombs
New submission from Jason R. Coombs : In the API docs for EnvBuilder.symlinks, it states "Defaults to True on Linux and Unix systems, but False on Windows." But in fact, the implementation takes the value passed, which always defaults to False. It's only on the command-line

[issue32493] UUID Module - FreeBSD build failure

2018-01-08 Thread Michael Felt
Michael Felt added the comment: On 08/01/2018 12:47, David Carlier wrote: > David Carlier added the comment: > > Perfect. That solves in the process OpenBSD uuid module build too. > > -- p.s. I did not 'invent' unsigned32 - just took the

[issue32517] test_read_pty_output() of test_asyncio hangs on x86-64 Sierra 3.6

2018-01-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: The darwin version change is likely due to an upgrade from macOS 10.13.1 to 10.13.2. The user change can be due to the introduction of a new system user, but I don't know when user _timed was introduced and don't have 10.3 VMs other

[issue32518] HTTPServer can't deal with persistent connection properly

2018-01-08 Thread R. David Murray
R. David Murray added the comment: Yes, I would say it is. Note that this isn't going to get "fixed" in 2.7, because 2.7 doesn't get new features, and the proposed change to the CLI is a new feature. As noted in that issue discussion we aren't going to change the

[issue26959] pickle: respect dispatch for functions again

2018-01-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___

[issue32493] UUID Module - FreeBSD build failure

2018-01-08 Thread David Carlier
David Carlier added the comment: Perfect. That solves in the process OpenBSD uuid module build too. -- ___ Python tracker ___

[issue32493] UUID Module - FreeBSD build failure

2018-01-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Seems to be in inttypes.h: https://www.ibm.com/support/knowledgecenter/en/ssw_aix_71/com.ibm.aix.files/inttypes.h.htm -- ___ Python tracker

[issue32493] UUID Module - FreeBSD build failure

2018-01-08 Thread Michael Felt
Michael Felt added the comment: On 05/01/2018 13:38, Antoine Pitrou wrote: > Antoine Pitrou added the comment: > > Michael, does AIX have uint32_t? If so, we could happily drop the unsigned32 > reference. Yes, AIX has unit32_t.

[issue32518] HTTPServer can't deal with persistent connection properly

2018-01-08 Thread Martin Panter
Martin Panter added the comment: Perhaps this can be treated as a duplicate of Issue 31639. -- nosy: +martin.panter ___ Python tracker

[issue32518] HTTPServer can't deal with persistent connection properly

2018-01-08 Thread 杨鹏
New submission from 杨鹏 : when client is using persistent connection, HTTPServer will hang with that connection. As a result, it can't deal with other clients. -- components: Library (Lib) messages: 309659 nosy: 杨鹏 priority: normal pull_requests: 4996 severity: