[issue31209] MappingProxyType can not be pickled

2017-08-14 Thread Alex Hayes
New submission from Alex Hayes: I imagine that this is by design (likely because it can't be implemented) however I wanted to check if this was the case. Instances of types.MappingProxyType can't be pickled. For example; ``` import pickle from types import MappingProxyType eggs =

[issue9253] argparse: optional subparsers

2017-08-14 Thread Anthony Sottile
Anthony Sottile added the comment: I've attempted to address some of the backward/forward compatibility issue with subparsers becoming optional by default (vs required by default in python2) with this pull request: https://github.com/python/cpython/pull/3027 (would love to get a review as

[issue31208] Simplify `low_fds_to_close` in subprocess.py

2017-08-14 Thread TaoQingyun
Changes by TaoQingyun <845767...@qq.com>: -- components: Library (Lib) files: subprocess.patch keywords: patch nosy: qingyunha priority: normal severity: normal status: open title: Simplify `low_fds_to_close` in subprocess.py type: enhancement versions: Python 3.7 Added file:

[issue26510] [argparse] Add required argument to add_subparsers

2017-08-14 Thread Anthony Sottile
Anthony Sottile added the comment: I've added a patch for this https://github.com/python/cpython/pull/3027 Would love to get a review so it could be included -- nosy: +Anthony Sottile ___ Python tracker

[issue31198] getaddrinfo: inconsistent handling of port=None

2017-08-14 Thread Nathaniel Smith
Nathaniel Smith added the comment: Ugh, apparently this weird behavior is actually mandated by the RFC :-(. RFC 3493: The nodename and servname arguments are either null pointers or pointers to null-terminated strings. One or both of these two arguments must be a non-null pointer.

[issue31002] IDLE: Add tests for configdialog keys tab

2017-08-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Great work. Thank you. Next: #31205, #31001, #31206, then ... -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue31093] IDLE: Add tests for configdialog extensions tab

2017-08-14 Thread Terry J. Reedy
New submission from Terry J. Reedy: It is not clear what will be left after #27099 -- ___ Python tracker ___

[issue31207] IDLE, configdialog: Factor out ExtPage class from ConfigDialog

2017-08-14 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- dependencies: +IDLE: Add tests for configdialog extensions tab ___ Python tracker ___

[issue31207] IDLE, configdialog: Factor out ExtPage class from ConfigDialog

2017-08-14 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: terry.reedy components: IDLE nosy: terry.reedy priority: normal severity: normal stage: test needed status: open title: IDLE, configdialog: Factor out ExtPage class from ConfigDialog versions: Python 3.6, Python 3.7

[issue31206] IDLE, configdialog: Factor out HighPage class from ConfigDialog

2017-08-14 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- dependencies: +IDLE: Add tests for configdialog highlight tab ___ Python tracker ___

[issue31206] IDLE, configdialog: Factor out HighPage class from ConfigDialog

2017-08-14 Thread Terry J. Reedy
New submission from Terry J. Reedy: As with #31050, #31205 -- assignee: terry.reedy components: IDLE messages: 300278 nosy: csabella, terry.reedy priority: normal severity: normal stage: test needed status: open title: IDLE, configdialog: Factor out HighPage class from ConfigDialog

[issue31002] IDLE: Add tests for configdialog keys tab

2017-08-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset a31459008c5b3230363d155a2e8616664dc4f0c6 by Terry Jan Reedy in branch '3.6': [3.6] bpo-31002: IDLE: Add tests for configdialog keys tab (GH-2996) (#3092) https://github.com/python/cpython/commit/a31459008c5b3230363d155a2e8616664dc4f0c6

[issue31001] IDLE: Add tests for configdialog highlight tab

2017-08-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: If we do the same renamings for the theme selection vars and functions as done for keys selection on the keys tab, then the corresponding tests can be copied and slightly altered. However, duplicate names require that KeyPage be separated first. Hence the

[issue31205] IDLE, configdialog: Factor out KeysPage class from ConfigDialog

2017-08-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Let me know if you start on this. -- nosy: +csabella ___ Python tracker ___

[issue31002] IDLE: Add tests for configdialog keys tab

2017-08-14 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +3132 ___ Python tracker ___ ___

[issue31002] IDLE: Add tests for configdialog keys tab

2017-08-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 2f8964634918bdf09107c49a2d5ca62460091e54 by Terry Jan Reedy (Cheryl Sabella) in branch 'master': bpo-31002: IDLE: Add tests for configdialog keys tab (#2996) https://github.com/python/cpython/commit/2f8964634918bdf09107c49a2d5ca62460091e54

[issue31205] IDLE, configdialog: Factor out KeysPage class from ConfigDialog

2017-08-14 Thread Terry J. Reedy
New submission from Terry J. Reedy: Do as did with #31050 and GenPage class. This should be done *before* #31001, highlights test. -- assignee: terry.reedy components: IDLE messages: 300273 nosy: terry.reedy priority: normal severity: normal stage: test needed status: open title:

[issue31194] Inconsistent __repr__s for _collections objects

2017-08-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: IIRC, deque() did this to better match the behavior of list(). Not everything in Python is consistent and sometimes we have to pick and choose between what we want to be consistent with. For the most part, the decisions have worked out well in practice

[issue31194] Inconsistent __repr__s for _collections objects

2017-08-14 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger priority: normal -> low versions: +Python 3.7 -Python 3.6 ___ Python tracker

[issue31204] Support __fspath__ in shlex.quote

2017-08-14 Thread Anthony Sottile
Anthony Sottile added the comment: Ah oops, I'm incorrect here, the __fspath__ object I was dealing with supported __str__ and that's how subprocess was converting it -- not via __fspath__. -- stage: -> resolved status: open -> closed ___ Python

[issue31204] Support __fspath__ in shlex.quote

2017-08-14 Thread Anthony Sottile
New submission from Anthony Sottile: Given shlex.quote often is used closely with calls in `subprocess`, should it also support quoting __fspath__ objects? I'll write up a quick patch for this -- components: Library (Lib) messages: 300270 nosy: Anthony Sottile priority: normal

[issue30983] eval frame rename in pep 0523 broke gdb's python extension

2017-08-14 Thread Łukasz Langa
Changes by Łukasz Langa : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue30983] eval frame rename in pep 0523 broke gdb's python extension

2017-08-14 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 09b77165e3fffa7b7ff160ad06042cdcfa004bf5 by Łukasz Langa in branch '3.6': [3.6] bpo-30983: eval frame rename in pep 0523 broke gdb's python extension (GH-2803) (#3090)

[issue31170] expat: utf8_toUtf8 cannot properly handle exhausting buffer

2017-08-14 Thread Lin Tian
Lin Tian added the comment: Reactive this issue as to let you know that libexpat has confirmed and fixed the bug and they are interested in porting the fix to python. Reactive this in case you want to know what's going on and make a decision accordingly. (Sorry, I'm not very familiar with

[issue30983] eval frame rename in pep 0523 broke gdb's python extension

2017-08-14 Thread Łukasz Langa
Changes by Łukasz Langa : -- pull_requests: +3131 ___ Python tracker ___ ___

[issue30983] eval frame rename in pep 0523 broke gdb's python extension

2017-08-14 Thread Łukasz Langa
Changes by Łukasz Langa : -- pull_requests: +3130 ___ Python tracker ___ ___

[issue31106] os.posix_fallocate() generate exception with errno 0

2017-08-14 Thread Larry Hastings
Larry Hastings added the comment: You understand correctly. It won't be backported to Python 3.5. -- ___ Python tracker ___

[issue30983] eval frame rename in pep 0523 broke gdb's python extension

2017-08-14 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 2e0f4db114424a00354eab889ba8f7334a2ab8f0 by Łukasz Langa (Bruno "Polaco" Penteado) in branch 'master': bpo-30983: eval frame rename in pep 0523 broke gdb's python extension (#2803)

[issue31149] Add Japanese to the language switcher

2017-08-14 Thread Julien Palard
Julien Palard added the comment: @inada make sense, so I'll change "Français" for "French" for consistency. -- ___ Python tracker ___

[issue31106] os.posix_fallocate() generate exception with errno 0

2017-08-14 Thread Марк Коренберг
Марк Коренберг added the comment: If I understand right, Python 3.5 will not be fixed with this pathc. Right ? If yes, I will tell Debian maintainers to backport this patch to Python 3.5, which is shipped with latest stable Debian 9. -- ___ Python

[issue1612262] Class Browser doesn't show internal classes

2017-08-14 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- dependencies: +IDLE: add docstrings to browser.py stage: test needed -> patch review ___ Python tracker

[issue31024] typing.Tuple is class but is defined as data inside https://docs.python.org/3.6/objects.inv

2017-08-14 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Bernát, I would recommend asking this on Sphinx tracker (I also assigned this to docs@python since this seems to be a purely documentation issue). https://github.com/sphinx-doc/sphinx -- assignee: -> docs@python components: +Documentation nosy:

[issue31191] Fix grammar in threading.Barrier docs

2017-08-14 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker ___

[issue31191] Fix grammar in threading.Barrier docs

2017-08-14 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- stage: -> backport needed versions: +Python 3.6 ___ Python tracker ___

[issue31191] Fix grammar in threading.Barrier docs

2017-08-14 Thread Mariatta Wijaya
New submission from Mariatta Wijaya: New changeset 143be366295038b36fc32c44b8e1b48a375eab56 by Mariatta (Saurabh Chaturvedi) in branch 'master': bpo-31191: Improve grammar in threading.Barrier docs (GH-3080) https://github.com/python/cpython/commit/143be366295038b36fc32c44b8e1b48a375eab56

[issue31148] Can we get an MSI installer for something past 3.4.4?

2017-08-14 Thread Steve Dower
Steve Dower added the comment: The general requirements of an installer are: * runs without any preinstalled prerequisites * does not install anything permanent until the user says so (Visual Studio breaks this rule :( ) * installs all required prerequisites * install on all supported operating

[issue30824] Add mimetype for extension .json

2017-08-14 Thread R. David Murray
Changes by R. David Murray : -- stage: needs patch -> backport needed ___ Python tracker ___

[issue30824] Add mimetype for extension .json

2017-08-14 Thread R. David Murray
R. David Murray added the comment: New changeset 8204b903683f9e0f037ccfaa87622716019914d7 by R. David Murray (Nate Tangsurat) in branch 'master': bpo-30824: Add mimetype for .json (#3048) https://github.com/python/cpython/commit/8204b903683f9e0f037ccfaa87622716019914d7 --

[issue31106] os.posix_fallocate() generate exception with errno 0

2017-08-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Needed a NEWS entry. -- nosy: +serhiy.storchaka versions: -Python 3.5 ___ Python tracker ___

[issue31193] re.IGNORECASE strips combining character from lower case of LATIN CAPITAL LETTER I WITH DOT ABOVE

2017-08-14 Thread David MacIver
David MacIver added the comment: Sure, but 'i' is a single code point. The bug is that the regex matches 'i', not that it doesn't match the actual two codepoint lower case of the string. -- ___ Python tracker

[issue31193] re.IGNORECASE strips combining character from lower case of LATIN CAPITAL LETTER I WITH DOT ABOVE

2017-08-14 Thread Matthew Barnett
Matthew Barnett added the comment: The re module works with codepoints, it doesn't understand canonical equivalence. For example, it doesn't recognise that "\N{LATIN CAPITAL LETTER E}\N{COMBINING ACUTE ACCENT}" is equivalent to "\N{LATIN CAPITAL LETTER E WITH ACUTE}". This is true for Python

[issue31195] Make any() and all() work with async generators

2017-08-14 Thread Brett Cannon
Brett Cannon added the comment: I figured there was something. :( Closing this as "rejected". -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue31129] RawConfigParser.items() is unusual in taking arguments

2017-08-14 Thread Guido van Rossum
Guido van Rossum added the comment: I don't think this is worth it. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue31129] RawConfigParser.items() is unusual in taking arguments

2017-08-14 Thread Daniel Watkins
Daniel Watkins added the comment: Having ironed out my confusion over typing the method, I agree that making the types more obvious is not a compelling argument for this change. That said, I think the current API has been confusing to me in the past, and I think the proposed change is still a

[issue31200] address sanitizer build fails

2017-08-14 Thread Julien Palard
Julien Palard added the comment: Segfault occur in Include/object.h line 1054: #define Py_TRASHCAN_SAFE_BEGIN(op) \ do { \ PyThreadState *_tstate = PyThreadState_GET(); \ if (_tstate->trash_delete_nesting < PyTrash_UNWIND_LEVEL) { \

[issue31201] module test that failed doesn't exist

2017-08-14 Thread R. David Murray
R. David Murray added the comment: Yep, I figured that. That's why I suggested the clarification to the README, if someone wants to generate a PR for it. -- ___ Python tracker

[issue31201] module test that failed doesn't exist

2017-08-14 Thread Paulo Matos
Paulo Matos added the comment: Argh, apologies David. I hadn't noticed the mistake. I simply copy/pasted and was expecting the command line to rerun all the tests that had previously failed. I was assuming the suite had some kind of state that recorded the tests that previously failed and ran

[issue31199] configure checks fail confusingly under --with-address-sanitizer if libasan is missing

2017-08-14 Thread R. David Murray
Changes by R. David Murray : -- title: !HAVE_CLOCK_GETTIME causes problems with _PyTime_FromTimespec -> configure checks fail confusingly under --with-address-sanitizer if libasan is missing ___ Python tracker

[issue31201] module test that failed doesn't exist

2017-08-14 Thread R. David Murray
R. David Murray added the comment: Replace "test_that_failed" with the name of the test that failed. The README could be improved by saying: If any tests fail, you can re-run the failing test(s) in verbose mode. For example if, 'test_os' and 'test_gdb' failed, you can run:: make test

[issue31203] socket.IP_PKTINFO is missing from python

2017-08-14 Thread Laurent GUERBY
Laurent GUERBY added the comment: Probable fix in Modules/socketmodule.c after /* IPv4 [gs]etsockopt options */ add: #ifdef IP_PKTINFO PyModule_AddIntMacro(m, IP_PKTINFO); #endif -- ___ Python tracker

[issue31203] socket.IP_PKTINFO is missing from python

2017-08-14 Thread Laurent GUERBY
New submission from Laurent GUERBY: The constant socket.IP_PKTINFO is missing. Definition on Linux: http://elixir.free-electrons.com/linux/v4.12.7/source/include/uapi/linux/in.h#L96 Exemple code that would benefit from the definition:

[issue31024] typing.Tuple is class but is defined as data inside https://docs.python.org/3.6/objects.inv

2017-08-14 Thread Bernát Gábor
Bernát Gábor added the comment: how can we find it out? -- ___ Python tracker ___ ___ Python-bugs-list

[issue31200] address sanitizer build fails

2017-08-14 Thread Julien Palard
Julien Palard added the comment: Some (most?) of them looks to be unicode strings, and according to the very end of the main function: #ifdef __INSURE__ /* Insure++ is a memory analysis tool that aids in discovering * memory leaks and other memory problems. On Python exit, the *

[issue31106] os.posix_fallocate() generate exception with errno 0

2017-08-14 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +3129 ___ Python tracker ___ ___

[issue31202] Windows pathlib.Path.glob(pattern) fixed part of the pattern changed to lowercase whereas it should be unchanged.

2017-08-14 Thread aicirbs
New submission from aicirbs: Windows pathlib.Path.glob(pattern) fixed part of the pattern to lowercase whereas it should be unchanged. Note that this issue is different from http://bugs.python.org/issue26655 : "pathlib glob case sensitivity issue on Windows" where it was asked to get the

[issue31106] os.posix_fallocate() generate exception with errno 0

2017-08-14 Thread Larry Hastings
Larry Hastings added the comment: New changeset d4b93e21c2664d6a78e0656e7a7be0807be1c352 by larryhastings (Коренберг Марк) in branch 'master': bpo-31106: Fix handling of erros in posix_fallocate() and posix_fadvise() (#3000) (#3000)

[issue31200] address sanitizer build fails

2017-08-14 Thread Julien Palard
Julien Palard added the comment: Are you sure you build is failing? It looks like it succeeded, if we only speak about the build. You're seeing AddressSanitizer reports because, during the build, the built python is used. Like in `./python -E -S -m sysconfig --generate-posix-vars`. So if you

[issue31149] Add Japanese to the language switcher

2017-08-14 Thread INADA Naoki
INADA Naoki added the comment: My preference is "Japanese". After selecting drop down list, we can type "jap" to select Japanese. On the other hand, we should use IME to input "日本語". It's not so easy as input alphabets. -- ___ Python tracker

[issue31201] module test that failed doesn't exist

2017-08-14 Thread Paulo Matos
New submission from Paulo Matos: Trying to rerun the tests that failed but it just says that the module doesn't exist. I am running the exact command line mentioned in the readme file: $ make test TESTOPTS="-v test_that_failed" running build running build_ext The following modules found by

[issue31200] address sanitizer build fails

2017-08-14 Thread Paulo Matos
New submission from Paulo Matos: Build with address sanitizer fails miserably. Configuration in Fedora 26. I attach config.log and the output of $ ../configure --with-assertions --with-lto --with-pydebug --with-address-sanitizer --disable-ipv6 $ make -j18 profile-opt -- components:

[issue31199] !HAVE_CLOCK_GETTIME causes problems with _PyTime_FromTimespec

2017-08-14 Thread Paulo Matos
Paulo Matos added the comment: OK, the problem was the missing libasan which made quite a few checks fail. We should check for libasan before all other checks, when compiling with --with-address-sanitizer. -- ___ Python tracker

[issue31199] !HAVE_CLOCK_GETTIME causes problems with _PyTime_FromTimespec

2017-08-14 Thread Paulo Matos
New submission from Paulo Matos: On a Fedora 26 system, I run configure as: $ ../configure --with-assertions --with-lto --with-pydebug --with-address-sanitizer --disable-ipv6 My pyconfig.h contains: /* #undef HAVE_CLOCK */ /* Define to 1 if you have the `clock_getres' function. */ /* #undef

[issue26669] time.localtime(float("NaN")) does not raise a ValueError on all platforms

2017-08-14 Thread Mark Dickinson
Mark Dickinson added the comment: > potentially questionable? I'll ask a C compiler person... Questionable indeed. Attempting to cast a NaN to an integer type results in undefined behaviour. Unfortunately, so does attempting to cast any double value that's outside the range represented by the

[issue31198] getaddrinfo: inconsistent handling of port=None

2017-08-14 Thread Nathaniel Smith
Changes by Nathaniel Smith : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___

[issue31198] getaddrinfo: inconsistent handling of port=None

2017-08-14 Thread Nathaniel Smith
New submission from Nathaniel Smith: socket.getaddrinfo accepts None as a port argument, and translates it into 0. This is handy, because bind() understands 0 to mean "pick a port for me", and if you want bind to pick a port for you and port=None is a slightly more obvious way to say that

[issue31197] Namespace disassembly omits some compiled objects

2017-08-14 Thread Nick Coghlan
Nick Coghlan added the comment: Note that the current dis._get_code_object() helper doesn't *quite* cover this, as it will implicitly compile raw strings, which isn't the desired behaviour for this use case. -- ___ Python tracker

[issue31197] Namespace disassembly omits some compiled objects

2017-08-14 Thread Nick Coghlan
New submission from Nick Coghlan: In reviewing the PR for issue 31183, I noticed that the criteria for deciding which values to disassemble when disassembling a namespace (objects with a __dict__ attribute) has gotten out of sync with the criteria used by the dis() itself. The problem is