[issue32829] Lib/ be more pythonic

2018-02-12 Thread Дилян Палаузов
New submission from Дилян Палаузов : diff --git a/Lib/distutils/command/sdist.py b/Lib/distutils/command/sdist.py --- a/Lib/distutils/command/sdist.py +++ b/Lib/distutils/command/sdist.py @@ -251,14 +251,11 @@ class sdist(Command): for fn in standards:

[issue32808] subprocess.check_output opens an unwanted command line window after fall creator update

2018-02-12 Thread Christian Heigele
Christian Heigele added the comment: Please stop investigation on this bug for now, it might be related to an in-house security tool. -- ___ Python tracker

[issue30109] make reindent failed.

2018-02-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 2.7 needs different solution. The side effect of issue10639 in 2.7 was changing input and output files for the reindenter to Unicode files. This was not correct. Standard streams stdin/stdout in 2.7 are binary files, and the

[issue32827] Fix incorrect usage of _PyUnicodeWriter_Prepare()

2018-02-12 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Based on discussion in PR 660. _PyUnicodeWriter_Prepare() is used incorrectly in unicode_decode_call_errorhandler_writer(), _PyUnicode_DecodeUnicodeEscape() and PyUnicode_DecodeRawUnicodeEscape() in Objects/unicodeobject.c.

[issue32827] Fix incorrect usage of _PyUnicodeWriter_Prepare()

2018-02-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +5436 stage: -> patch review ___ Python tracker ___

[issue32825] warn user of creation of multiple Tk instances

2018-02-12 Thread mps
New submission from mps : tkinter is the first GUI interface used by novices. They often get in trouble when they create a new Tk instance instead of a Toplevel. It would be helpful to output a warning message in this case (i.e. checking _default_root is not None and

[issue32826] idle test fails at least on the 3.6 branch

2018-02-12 Thread Matthias Klose
New submission from Matthias Klose <d...@debian.org>: seen with the 3.6 branch 20180212, last known succeeding test is the 3.6.4 release. test test_idle failed -- Traceback (most recent call last): File "/home/packages/python/3.6/python3.6-3.6.4/Lib/idlelib/idle_test/test_he

[issue32829] Lib/ be more pythonic

2018-02-12 Thread Christian Heimes
Christian Heimes added the comment: We generally don't accept patches on bugs.python.org. Please open a pull request on github, see https://devguide.python.org/#contributing -- nosy: +christian.heimes ___ Python tracker

[issue30109] make reindent failed.

2018-02-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +5437 stage: backport needed -> patch review ___ Python tracker

[issue32820] Add bits method to ipaddress

2018-02-12 Thread Christian Heimes
Christian Heimes added the comment: I agree with Serhiy and Eric. It's a needless complication of the module. What's the actual use case of printing a human readable bit representation of an IP address? -- nosy: +christian.heimes

[issue30717] Add unicode grapheme cluster break algorithm

2018-02-12 Thread INADA Naoki
INADA Naoki added the comment: We missed 3.7 train. I'm sorry about I couldn't review it. But I have many shine features I want in 3.7 and I have no time to review all. Especially, I need to understand tr29. It was hard job to me. I think publishing this (and any

[issue32828] compress "True if bool(x) else False" expressions

2018-02-12 Thread Дилян Палаузов
New submission from Дилян Палаузов : diff --git a/Lib/_strptime.py b/Lib/_strptime.py --- a/Lib/_strptime.py +++ b/Lib/_strptime.py @@ -525,7 +525,7 @@ def _strptime(data_string, format="%a %b %d %H:%M:%S %Y"): # out the Julian day of the year. if julian is

[issue32820] Add bits method to ipaddress

2018-02-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +ncoghlan -nick ___ Python tracker ___

[issue32820] Add bits method to ipaddress

2018-02-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The usefulness of this feature looks questionable to me. -- nosy: +nick, serhiy.storchaka ___ Python tracker

[issue32830] tkinter documentation suggests "from tkinter import *", contradicting PEP8

2018-02-12 Thread ChrisRands
New submission from ChrisRands : Issue arose from this SO post: https://stackoverflow.com/questions/48746351/documentation-is-contradicting-pep8 The tkinter documentation suggests: from tkinter import * https://docs.python.org/3/library/tkinter.html But this obviously

[issue32832] doctest should support custom ps1/ps2 prompts

2018-02-12 Thread Sergey B Kirpichev
New submission from Sergey B Kirpichev : The Python stdlib allows override of sys.ps1/ps2 (to make IPython-like dynamic prompts and so on). I believe it would be a good idea to support this in doctest too, to cover cases when given application uses different from defaults

[issue32826] idle test fails at least on the 3.6 branch

2018-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: What system? test_idle passes on Windows. Unfortunately, none of the *nix or Mac buildbots run tkinter and hence no tests that require a live tk window, and this one does. Cheryl, what do you see on your linux? Byte 0xc3 in position 1540

[issue32820] Add bits method to ipaddress

2018-02-12 Thread Eric Osborne
Eric Osborne added the comment: IPv6 is nasty no matter how you do it (cf. https://tools.ietf.org/html/rfc1924). And the ipaddr library already has hex (packed()). Binary's not about direct readabilty, but about ease of comparison. It's much easier to show the reader

[issue32830] tkinter documentation suggests "from tkinter import *", contradicting PEP8

2018-02-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think tkinter is a valid exception. It provides the enormous number of names (mostly constants like RIGHT or VERTICAL) which are convenient to use without prefix. PEP 8 is a style guide for the code of the stdlib. Its

[issue32830] tkinter documentation suggests "from tkinter import *", contradicting PEP8

2018-02-12 Thread Ned Deily
Ned Deily added the comment: PEP 8 also says: "In particular: do not break backwards compatibility just to comply with this PEP!" This is one of those cases. There is a ton of code out there that depends on importing tkinter this way for the reasons Serhiy cited. Thanks

[issue32818] multiprocessing segmentfault under Windows compatibility mode

2018-02-12 Thread Ma Lin
Ma Lin added the comment: segmentfault conditions: 64bit Windows + 32bit Python + Compatibility Mode enabled. some infomation: 1, 64bit Python doesn't segmentfault. 2, 3.7.0a3 is ok, 3.7.0a4 segmentfaults. 3, unrelated to Windows SDK, switch from 1709 SDK to 1703 SDK also

[issue32830] tkinter documentation suggests "from tkinter import *", contradicting PEP8

2018-02-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I want to add that the star import is more convenient when you experiment with Tkinter in REPL. You don't know what names will be needed when import Tkinter. The interpreter core has a special support of Tkinter. You don't need

[issue13319] IDLE: Menu accelerator conflict between Format and Options

2018-02-12 Thread Cheryl Sabella
Cheryl Sabella added the comment: Maybe a solution for this would be to change the name of the 'Format' menu to something like 'Source'? Interestingly, the Format menu is available on outwin, even though that is output-only, so I guess 'Source' would only make sense if

[issue32833] argparse doesn't recognise two option aliases as equal

2018-02-12 Thread Krzysztof Leszczyński
New submission from Krzysztof Leszczyński : Step to reproduce: import argparse ap=argparse.ArgumentParser() ap.add_argument("--a-b", "--ab") v1=ap.parse_args(["--ab", "xx"]) print(v1) # v1==Namespace(a_b='xx') v2=ap.parse_args(["--a", "xx"]) # v2 should be equal to v1 but

[issue32830] tkinter documentation suggests "from tkinter import *", contradicting PEP8

2018-02-12 Thread ChrisRands
ChrisRands added the comment: Ok thanks both for the clarification! -- ___ Python tracker ___

[issue32828] compress "True if bool(x) else False" expressions

2018-02-12 Thread R. David Murray
R. David Murray added the comment: Oops. I actually didn't intend to close this, but thinking about it I'm going to leave it closed. We generally don't do this kind of "tidy work" unless we are touching the code for other reasons. --

[issue32826] idle test fails at least on the 3.6 branch

2018-02-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +5439 stage: needs patch -> patch review ___ Python tracker ___

[issue32831] IDLE: Add docstrings and tests for codecontext

2018-02-12 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch pull_requests: +5438 stage: -> patch review ___ Python tracker ___

[issue32830] tkinter documentation suggests "from tkinter import *", contradicting PEP8

2018-02-12 Thread ChrisRands
ChrisRands added the comment: Thanks Serhiy, you might be right (I am not a tkinter user myself). I also forgot to say that in PEP 328 tkinter is mentioned in this context: https://www.python.org/dev/peps/pep-0328/#rationale-for-parentheses --

[issue32820] Add bits method to ipaddress

2018-02-12 Thread Eric Osborne via Python-bugs-list
Eric Osborne added the comment: It is often useful to have non-decimal representations of IP addresses. Hex shows up a lot in sniffer traces, which is why I wanted to provide __index__, but that's not going to happen. I use binary a lot when teaching subnet masking and address

[issue32831] IDLE: Add docstrings and tests for codecontext

2018-02-12 Thread Cheryl Sabella
New submission from Cheryl Sabella : Add docstrings and tests for codecontext.py. -- assignee: terry.reedy components: IDLE messages: 312046 nosy: csabella, terry.reedy priority: normal severity: normal status: open title: IDLE: Add docstrings and tests for

[issue32820] Add bits method to ipaddress

2018-02-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I wouldn't say that "0b00011101101110001101101000111000101000101110001101110111001100110100" is a very human readable. For more readability it is better to group digits

[issue32828] compress "True if bool(x) else False" expressions

2018-02-12 Thread R. David Murray
R. David Murray added the comment: The one in generator.py should not be changed, it is clearer as written. I don't have a strong opinion on the others. -- nosy: +r.david.murray resolution: -> rejected stage: -> resolved status: open -> closed

[issue32826] idle test fails at least on the 3.6 branch

2018-02-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The failure is reproduced on Posix locale. Files are open with bare open() which uses the locale encoding by default. Which is ASCII in this case. -- components: +Tests keywords: +easy nosy: +serhiy.storchaka

[issue32833] argparse doesn't recognise two option aliases as equal

2018-02-12 Thread Krzysztof Leszczyński
Change by Krzysztof Leszczyński : -- components: Library (Lib) nosy: Krzysztof Leszczyński priority: normal severity: normal status: open title: argparse doesn't recognise two option aliases as equal type: behavior versions: Python 3.5

[issue32221] Converting ipv6 address to string representation using getnameinfo() is wrong.

2018-02-12 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 7766b96ab80b04509bbac708ee5ecf3c1c5934fc by Yury Selivanov (Коренберг Марк) in branch 'master': bpo-32221: makeipaddr(): remove interface part + speedup (GH-5449) (#5449)

[issue32826] idle test fails at least on the 3.6 branch

2018-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: I reproduced the exact failure by temporarily replacing 'utf-8' with 'ascii' in my clone. So I don't need anyone else to verify the fix. -- ___ Python tracker

[issue32642] add support for path-like objects in sys.path

2018-02-12 Thread Jay Yin
Jay Yin added the comment: ok, so I found the PathFinder class you referenced, just making sure, this issue pertains to changing "self.path"'s usage and declaration to be a path-like object instead of the hard coded 'sys', 'path' returns? or is that part of it

[issue32221] Converting ipv6 address to string representation using getnameinfo() is wrong.

2018-02-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +5441 ___ Python tracker ___

[issue32826] idle test fails at least on the 3.6 branch

2018-02-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +5443 ___ Python tracker ___

[issue32826] idle test fails at least on the 3.6 branch

2018-02-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +5442 stage: commit review -> patch review ___ Python tracker ___

[issue32826] idle test fails at least on the 3.6 branch

2018-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset f34e03ec0ea6a4cef8d966087c77e616c4a5893b by Terry Jan Reedy in branch 'master': bpo-32826: Add "encoding=utf-8" to open() in idle_test/test_help_about. (GH-5639)

[issue32826] idle test fails at least on the 3.6 branch

2018-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: I just discovered that the default for me is some version of latin1, not ascii, so that utf-8 'ö' is read as 'ö'. Hence, no UnicodeDecodeError even if 'ö' is being read and decoded by the initial readline call. I presume the same is true

[issue32834] test_gdb fails with Posix locale in 3.7

2018-02-12 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : $ LC_ALL=C ./python -We -m test -vuall -m test_strings test_gdb ... == FAIL: test_strings (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of unicode

[issue32642] add support for path-like objects in sys.path

2018-02-12 Thread Jay Yin
Jay Yin added the comment: https://github.com/python/cpython/blob/3c34aad4e7a95913ec7db8e5e948a8fc69047bf7/Lib/importlib/_bootstrap_external.py#L1069-L1090 those are the particular class and lines I'm referring to -- ___

[issue29248] os.readlink fails on Windows

2018-02-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +5440 ___ Python tracker ___

[issue29248] os.readlink fails on Windows

2018-02-12 Thread Berker Peksag
Change by Berker Peksag : -- versions: -Python 3.5 ___ Python tracker ___ ___

[issue29248] os.readlink fails on Windows

2018-02-12 Thread Berker Peksag
Berker Peksag added the comment: New changeset 3c34aad4e7a95913ec7db8e5e948a8fc69047bf7 by Berker Peksag (SSE4) in branch 'master': bpo-29248: Fix os.readlink() on Windows (GH-5577) https://github.com/python/cpython/commit/3c34aad4e7a95913ec7db8e5e948a8fc69047bf7

[issue30109] make reindent failed.

2018-02-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue32826] idle test fails at least on the 3.6 branch

2018-02-12 Thread Cheryl Sabella
Cheryl Sabella added the comment: I've been able to run the IDLE test suite on Linux. As far as this issue, there's also a readline in test_textview that you may want to add the encoding to, even though it's only reading __file__. --

[issue29248] os.readlink fails on Windows

2018-02-12 Thread Berker Peksag
Berker Peksag added the comment: New changeset a1d33f742515dc70ae99bc3ea1c851729522afc3 by Berker Peksag (Miss Islington (bot)) in branch '3.6': bpo-29248: Fix os.readlink() on Windows (GH-5577)

[issue30109] make reindent failed.

2018-02-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 17cec70a38b297779b8fd3f081fb041d45ae1dff by Serhiy Storchaka in branch '2.7': bpo-30109: Fix reindent.py for non-ASCII files. (#5637)

[issue32731] getpass.getuser() raises an unspecified exceptions (ImportError, OSError, etc)

2018-02-12 Thread Fangyi Zhou
Fangyi Zhou added the comment: Hi. I've updated the docs. I'm wondering if the code needs to be patched as well. Essentially we should raise a unified Exception for unable to get the username I suppose? Please let me know if you have any comments/suggestions on

[issue29248] os.readlink fails on Windows

2018-02-12 Thread miss-islington
miss-islington added the comment: New changeset 74ebbaeb566dc10031756430ec5c896e56d0e491 by Miss Islington (bot) in branch '3.7': bpo-29248: Fix os.readlink() on Windows (GH-5577)

[issue32833] argparse doesn't recognise two option aliases as equal

2018-02-12 Thread paul j3
Change by paul j3 : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list

[issue32837] IDLE: require encoding argument for textview.view_file

2018-02-12 Thread Terry J. Reedy
New submission from Terry J. Reedy : Built-in open has an encoding parameter whose default value depends on the system: 'ascii' for some POSIX locales; 'latin1' or similar for most Windows sold in the USA or western Europe; and ???. In idlelib.textview, the signature for

[issue32837] IDLE: require encoding argument for textview.view_file

2018-02-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +5449 ___ Python tracker ___

[issue32837] IDLE: require encoding argument for textview.view_file

2018-02-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +5448 ___ Python tracker ___

[issue29248] os.readlink fails on Windows

2018-02-12 Thread Berker Peksag
Berker Peksag added the comment: Thank you, Craig and SSE4. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 ___ Python tracker

[issue32837] IDLE: require encoding argument for textview.view_file

2018-02-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +5447 stage: commit review -> patch review ___ Python tracker ___

[issue32826] idle test fails at least on the 3.6 branch

2018-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Serhiy, thanks for comment and review. Cheryl, #32837 expands upon your comment. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue32837] IDLE: require encoding argument for textview.view_file

2018-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 688722cedd6437910ff185ecf94fb3b749ad37f2 by Terry Jan Reedy in branch 'master': bpo-32837: IDLE - require encoding argument for textview.view_file. (GH-5646)

[issue32837] IDLE: require encoding argument for textview.view_file

2018-02-12 Thread miss-islington
miss-islington added the comment: New changeset 65c32bbe85862ab5eb52a0d4340e844e13d0f7ee by Miss Islington (bot) in branch '3.7': bpo-32837: IDLE - require encoding argument for textview.view_file. (GH-5646)

[issue24665] CJK support for textwrap

2018-02-12 Thread Julien Palard
Julien Palard added the comment: I reread issue6755, issue12485, issue12499, and issue12568 about the textwrap/char width topic, and went to those conclusions: - It's a hard topic [1][2], so we may not succeed in a single shot. - The work is already done by wcwidth in

[issue29248] os.readlink fails on Windows

2018-02-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +5445 ___ Python tracker ___

[issue32835] Add documention mentioning that Cygwin isn't fully compatible

2018-02-12 Thread Jay Yin
Jay Yin added the comment: ah I see, hence the *currently* incompatible, there must be some way of tracking areas in need of help without having to use the search, kind of like the way Github uses labels. -- type: enhancement ->

[issue32835] Add documention mentioning that Cygwin isn't fully compatible

2018-02-12 Thread Jay Yin
New submission from Jay Yin : I didn't find any documentation stating that Cygwin isn't currently compatible with building, I was wondering if it would be good to add documentation stating this and that it would be an area requiring help. -- assignee:

[issue32835] Add documention mentioning that Cygwin isn't fully compatible

2018-02-12 Thread R. David Murray
R. David Murray added the comment: We don't (can't) document everything we're *not* compatible with, we can only realisticly document what we support. I thought we did that, but all I can find at the moment is PEP 11, which you are correct, does not list cygwin as a

[issue32779] urljoining an empty query string doesn't clear query string

2018-02-12 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +5446 stage: -> patch review ___ Python tracker ___

[issue32756] argparse: parse_known_args: raising exception on unknown arg following known one

2018-02-12 Thread paul j3
Change by paul j3 : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list

[issue32221] Converting ipv6 address to string representation using getnameinfo() is wrong.

2018-02-12 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 0442599961f966a3dc7f3fe6a3c0d5765fcf2082 by Yury Selivanov (Miss Islington (bot)) in branch '3.7': bpo-32221: makeipaddr(): remove interface part + speedup (GH-5449) (GH-5449) (#5641)

[issue32221] Converting ipv6 address to string representation using getnameinfo() is wrong.

2018-02-12 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue32826] idle test fails at least on the 3.6 branch

2018-02-12 Thread miss-islington
miss-islington added the comment: New changeset 46daf39453023767eef3b6876d4a34996e124397 by Miss Islington (bot) in branch '3.6': bpo-32826: Add "encoding=utf-8" to open() in idle_test/test_help_about. (GH-5639)

[issue32826] idle test fails at least on the 3.6 branch

2018-02-12 Thread miss-islington
miss-islington added the comment: New changeset 38b4dd7f83fbdce6fe970088cd89b80f074a13f6 by Miss Islington (bot) in branch '3.7': bpo-32826: Add "encoding=utf-8" to open() in idle_test/test_help_about. (GH-5639)

[issue32835] Add documention mentioning that Cygwin isn't fully compatible

2018-02-12 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +easy stage: -> needs patch type: -> enhancement versions: -Python 3.4, Python 3.5 ___ Python tracker

[issue32836] Symbol table for comprehensions (list, dict, set) still includes temporary _[1] variable

2018-02-12 Thread Martijn Pieters
New submission from Martijn Pieters : In Python 2.6, a list comprehension was implemented in the current scope using a temporary _[1] variable to hold the list object: >>> import dis >>> dis.dis(compile('[x for x in y]', '?', 'exec')) 1 0 BUILD_LIST 0

[issue32798] mmap.flush() on Linux does not accept the "offset" and "size" args

2018-02-12 Thread Xiang Zhang
Xiang Zhang added the comment: One thing to note is the behaviour seems fit implementation detail. POSIX doesn't requires this for both mmap and msync, it's optional: The mmap( ) function may fail if: [EINVAL] The addr argument (if MAP_FIXED was specified) or off is not a

[issue32833] argparse doesn't recognise two option aliases as equal

2018-02-12 Thread paul j3
paul j3 added the comment: When I run your setup in ipython, I see a display of the newly added Action: Out[2]: _StoreAction(option_strings=['--a-b', '--ab'], dest='a_b', nargs=None, const=None, default=None, type=None, choices=None, help=None, metavar=None)

[issue20632] Define a new __key__ protocol

2018-02-12 Thread Josh Rosenberg
Josh Rosenberg added the comment: Do data classes let you define some fields as being excluded from the equality/ordering/hashing? I got the impression that if a field existed, it was part of the "key" no matter what, which isn't necessarily correct in the

[issue20632] Define a new __key__ protocol

2018-02-12 Thread Josh Rosenberg
Josh Rosenberg added the comment: Ah, never mind. Looks like dataclasses.InitVar fields seem to be the answer to excluding a field from the auto-generated methods. -- ___ Python tracker

[issue32837] IDLE: require encoding argument for textview.view_file

2018-02-12 Thread miss-islington
miss-islington added the comment: New changeset 9fad857444d90b9c6c36c31f5f07e57f390a70f2 by Miss Islington (bot) in branch '3.6': bpo-32837: IDLE - require encoding argument for textview.view_file. (GH-5646)

[issue24665] CJK support for textwrap

2018-02-12 Thread Julien Palard
Change by Julien Palard : -- pull_requests: +5450, 5451 stage: -> patch review ___ Python tracker ___

[issue24665] CJK support for textwrap

2018-02-12 Thread Julien Palard
Change by Julien Palard : -- pull_requests: +5450 stage: -> patch review ___ Python tracker ___

[issue32833] argparse doesn't recognise two option aliases as equal

2018-02-12 Thread Josh Rosenberg
Josh Rosenberg added the comment: To be clear, the specific error is: error: ambiguous option: --a could match --a-b, --ab which makes sense if they're separate switches, but doesn't make sense when both expansions are aliases of one another. -- nosy:

[issue20928] xml.etree.ElementInclude does not include nested xincludes

2018-02-12 Thread ruffsl
ruffsl added the comment: I see it's been a few years, but I would still like to see xml.etree.ElementInclude support nested xincludes, as lxml does. Additionally, I'd like to have the default_loader attempt to open the href with respect to the original xml file's

[issue32820] Add bits method to ipaddress

2018-02-12 Thread Nick Coghlan
Nick Coghlan added the comment: I think the aspect that makes this potentially worthy of a helper function is the need to dynamically adjust the field width based on whether you're printing an IPv4 address or an IPv6 one, whether you're printing it in binary or

[issue32827] Fix incorrect usage of _PyUnicodeWriter_Prepare()

2018-02-12 Thread Xiang Zhang
Xiang Zhang added the comment: Nice. The only question I have is this is a bugfix or enhancement? Current code seems won't cause any problem but just allocates more memory than needed. -- stage: patch review -> commit review ___

[issue32834] test_gdb fails with Posix locale in 3.7

2018-02-12 Thread Nick Coghlan
Nick Coghlan added the comment: I can reproduce this, but it looks to me like it's being triggered by UTF-8 mode rather than locale coercion (the "LC_ALL=C" setting will implicitly disable locale coercion entirely): ``` $ LANG=C PYTHONCOERCECLOCALE=warn ./python -We -m

[issue20632] Define a new __key__ protocol

2018-02-12 Thread Nick Coghlan
Nick Coghlan added the comment: For now, I'm going to close this as "out of date", with the guidance being "Define a data class instead" (since that gets rid of the historical boilerplate a different way: auto-generating suitable methods based on the field declarations).

[issue32833] argparse doesn't recognise two option aliases as equal

2018-02-12 Thread paul j3
paul j3 added the comment: Subparsers have aliases, argument option strings don't, at least not formally. Once an argument is added, its flags are entered in several lists. One list belongs to the Action itself, another belongs to the parser (it might actually be a

[issue32758] Stack overflow when parse long expression to AST

2018-02-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> docs@python components: +Documentation -Interpreter Core nosy: +docs@python stage: -> needs patch ___ Python tracker

[issue32720] Format mini-language integer definition is incorrect

2018-02-12 Thread miss-islington
miss-islington added the comment: New changeset 6708be744d032aeffab3e2cf0b064a41a719d8a1 by Miss Islington (bot) in branch '3.6': bpo-32720: Fixed the replacement field grammar documentation. (GH-5544) (GH-5547)

[issue32720] Format mini-language integer definition is incorrect

2018-02-12 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30579] Allow traceback objects to be instantiated/mutated/annotated

2018-02-12 Thread Nick Coghlan
Change by Nick Coghlan : -- pull_requests: +5455 ___ Python tracker ___ ___

[issue32827] Fix incorrect usage of _PyUnicodeWriter_Prepare()

2018-02-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 09819ef05a9a1b13321b56c09f48ca45b46e8656 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.7': bpo-32827: Fix usage of _PyUnicodeWriter_Prepare() in decoding errors handler. (GH-5636) (GH-5650)

[issue32827] Fix incorrect usage of _PyUnicodeWriter_Prepare()

2018-02-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +5452 stage: commit review -> patch review ___ Python tracker ___

[issue32827] Fix incorrect usage of _PyUnicodeWriter_Prepare()

2018-02-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +5453 ___ Python tracker ___

[issue32827] Fix incorrect usage of _PyUnicodeWriter_Prepare()

2018-02-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b7e2d67f7c035f09c921ca4e7a36529cd502ccf7 by Serhiy Storchaka in branch 'master': bpo-32827: Fix usage of _PyUnicodeWriter_Prepare() in decoding errors handler. (GH-5636)

[issue32837] IDLE: require encoding argument for textview.view_file

2018-02-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue32370] Wrong ANSI encoding used by subprocess for some locales

2018-02-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +5456 ___ Python tracker ___ ___

  1   2   >