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

2018-02-11 Thread Christian Heigele
Christian Heigele added the comment: Confirmed. On my private machine I just got the 1709 update and also don't have the error. Any further ideas what I can do? -- ___ Python tracker

[issue32758] Stack overflow when parse long expression to AST

2018-02-11 Thread Brett Cannon
Brett Cannon added the comment: On Sun, Feb 11, 2018, 16:26 Serhiy Storchaka, wrote: > > Serhiy Storchaka added the comment: > > > The other option is to simply not worry about it and acknowledge you can > > crash the

[issue31562] snakebite.net is not available

2018-02-11 Thread Zachary Ware
Zachary Ware added the comment: Trent, any word on this? -- nosy: +zach.ware ___ Python tracker ___

[issue32824] Docs: Using Python on a Macintosh has bad info per Apple site

2018-02-11 Thread Ned Deily
Ned Deily added the comment: Thanks for the reminder. Yes, the whole "Using Python on a Macintosh" section is very much out-of-date and needs a complete rewrite. It has been on my To Do list for a long time; I'll see what I can do to expedite it. -- assignee:

[issue32813] SSL shared_ciphers implementation wrong - returns configured but not shared ciphers

2018-02-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think at the time I was writing a Python version of the "openssl" tool. "openssl s_client" prints out what it says are the "Shared ciphers". So, yes, I agree the usecase is mostly debugging. --

[issue32820] Add bits method to ipaddress

2018-02-11 Thread Eric Osborne
Eric Osborne added the comment: Faster, too. My way: In [7]: %timeit bits(a) 1.67 µs ± 7.31 ns per loop (mean ± std. dev. of 7 runs, 100 loops each) Your way: In [11]: %timeit b2(a) 1.2 µs ± 5.93 ns per loop (mean ± std. dev. of 7 runs, 100 loops each) I was a little

[issue20285] Improve object.__doc__ and help(object) output

2018-02-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Reponses on the pydev thread, which include 3 other coredevs: "a base for all classes." object entry in lib ref, function "the ultimate base class of all other classes." Martin Panter object is neither a base or superclass of itself, so the

[issue32801] Lib/_strptime.py: utilize all()

2018-02-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't know such reason. I would not combine f-strings and regular expressions. Curly braces are syntactically meaningful in regular expressions, and regular expression which uses them for substituting look strange.

[issue32824] Docs: Using Python on a Macintosh has bad info per Apple site

2018-02-11 Thread Frank Griswold
New submission from Frank Griswold : This chunk of docs has bad info in both Python2 and Python3 docs: 4.1.3. Configuration Python on OS X honors all standard Unix environment variables such as PYTHONPATH, but setting these variables for programs started from the

[issue32801] Lib/_strptime.py: utilize all()

2018-02-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: For me, on Windows, the tests for time, datetime, and _strptime have failures on the master branch, so I don't want to submit a PR just now. -- ___ Python tracker

[issue32823] Regression in test -j behavior and time in 3.7.0b1

2018-02-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: For me, on Windows, the tests for time, datetime, and _strptime have failures on the master branch, so I don't want to submit a PR just now. -- ___ Python tracker

[issue32823] Regression in test -j behavior and time in 3.7.0b1

2018-02-11 Thread Terry J. Reedy
Change by Terry J. Reedy : -- Removed message: https://bugs.python.org/msg312021 ___ Python tracker ___

[issue32823] Regression in test -j behavior and time in 3.7.0b1

2018-02-11 Thread Terry J. Reedy
New submission from Terry J. Reedy : For me, on Windows, recent changes, since 3.7.0a4, have greatly reduced the benefit of j0 (= j14 on my system). For 3.6.4 (installed), the times are around 13:30 and 2:20. The times for 3.7.0a4 (installed) are about the same parallel and

[issue32820] Add bits method to ipaddress

2018-02-11 Thread Eric V. Smith
Eric V. Smith added the comment: Without commenting on how useful or desirable this would be, I'll point out the string can be computed as: return f'{int(self):#0{IPV4LENGTH+2}b}' -- nosy: +eric.smith ___ Python tracker

[issue32815] Document text parameter to subprocess.Popen

2018-02-11 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker

[issue32815] Document text parameter to subprocess.Popen

2018-02-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset ba4f218657efcba856d00eb320418355cce8309a by Gregory P. Smith (Miss Islington (bot)) in branch '3.7': bpo-32815: Improve docs on the subprocess API *text* parameter (GH-5622) (GH-5631)

[issue32822] finally block doesn't re-raise exception if return statement exists inside

2018-02-11 Thread David Rebbe
David Rebbe added the comment: Oops I didn't realize I referenced the tutorial documentation. Maybe it would be better to mention this behavior in the tutorial documentation also. I've always assumed exception raises take priority over any return/break/continues.

[issue32801] Lib/_strptime.py: utilize all()

2018-02-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Serhiy, Is there any reason to not combine last two lines in one? -regex = '(?P<%s>%s' % (directive, regex) -return '%s)' % regex +return '(?P<%s>%s)' % (directive, regex) or to use f-string to then get +

[issue32822] finally block doesn't re-raise exception if return statement exists inside

2018-02-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is intended and documented behavior. https://docs.python.org/3/reference/compound_stmts.html#the-try-statement -- nosy: +serhiy.storchaka ___ Python tracker

[issue32822] finally block doesn't re-raise exception if return statement exists inside

2018-02-11 Thread David Rebbe
New submission from David Rebbe : According to the docs: "When an exception has occurred in the try clause and has not been handled by an except clause (or it has occurred in an except or else clause), it is re-raised after the finally clause has been executed."

[issue32815] Document text parameter to subprocess.Popen

2018-02-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset e14c01037877768a3fe766e50d14993bd5d8a67e by Gregory P. Smith (Pablo Galindo) in branch 'master': bpo-32815: Improve docs on the subprocess API *text* parameter (GH-5622)

[issue32815] Document text parameter to subprocess.Popen

2018-02-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +5435 ___ Python tracker ___

[issue32806] locally imported modules are unaccessible in lambdas in pdb

2018-02-11 Thread Nitish
Nitish added the comment: Sorry. I didn't finish my last message. Is the behaviour described in that message a bug? If yes, that would explain the original behaviour. If no, why not? -- ___ Python tracker

[issue30109] make reindent failed.

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

[issue11015] Bring test.support docs up to date

2018-02-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since Nick already merged and backported, at least a new PR is needed. Since this is an old issue with a long discussion and several inactives on the nosy list, I suggest a new issue starting from the merge result as a base: "More

[issue32806] locally imported modules are unaccessible in lambdas in pdb

2018-02-11 Thread Nitish
Nitish added the comment: This can be traced back to the following issue: >>> c = compile("(lambda: re.findall('a', 'aaa'))()", "", "single") >>> import re as rea >>> exec(c, None, {'re': rea}) NameError: name 're' is not defined. Seeing disassembly of the compiled

[issue32758] Stack overflow when parse long expression to AST

2018-02-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: If ast_parse returns, a correct tree (A) rather than a buggy tree is a hard requirement. If ast_parse does not return, an exception (B) rather than a crash is strongly desired. We should not risk A to get B. I presume that Serhiy is

[issue30109] make reindent failed.

2018-02-11 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: make reindent is still failing on 2.7 branch, but I haven't had chance to look into the fix. Not really sure if we want to bother? Anyways, I've unassigned myself so if someone else want to look into it, they can. Not sure if it's

[issue32545] Unable to install Python 3.7.0a4 on Windows 10 - Error 0x80070643: Failed to install MSI package.

2018-02-11 Thread Matt Ripley
Matt Ripley added the comment: Hi Steve, Finally sorted this out. I tried all the workarounds that I could find on the web for similar issues. In the end I needed to re-image windows 10. This was the only thinkg that sorted it out. So looked like the windows had

[issue21060] Better error message for setup.py upload command without sdist/bdist

2018-02-11 Thread Jeff Ramnani
Jeff Ramnani added the comment: I think the error message you suggested is better than the one in the current patch. I've added a new patch with your improved message. I haven't submitted or updated a patch since the migration to GitHub. I can open a PR over on GitHub

[issue32820] Add bits method to ipaddress

2018-02-11 Thread Eric Osborne
Change by Eric Osborne : -- keywords: +patch pull_requests: +5434 stage: -> patch review ___ Python tracker ___

[issue32820] Add bits method to ipaddress

2018-02-11 Thread Eric Osborne
Eric Osborne added the comment: redoing with a bits() property method to return a string, a la: def bits(self): fstr = '0' + str(IPV4LENGTH) + 'b' return '0b' + format(int(self), fstr) Works thusly: import ipaddress as ip a = ip.IPv4Address('0.0.0.42')

[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-02-11 Thread Zachary Ware
Zachary Ware added the comment: New changeset fe61e8d8c7cd1f6fb0ce7e9b8f0460b47b5f29a5 by Zachary Ware (Miss Islington (bot)) in branch '3.7': bpo-32604: Make _xxsubinterpreters build on Windows (GH-5624)

[issue32821] Add snippet on how to configure a "split" stream for console

2018-02-11 Thread Mario Corchero
Change by Mario Corchero : -- keywords: +patch pull_requests: +5433 stage: -> patch review ___ Python tracker ___

[issue32821] Add snippet on how to configure a "split" stream for console

2018-02-11 Thread Mario Corchero
New submission from Mario Corchero : As discussed in python-ideas, it would be good to have a recipe on how to configure the logging stack to be able to log ``ERROR`` and above to stderr and ``INFO`` and below to stdout. It was proposed to add it into the cookbook rather

[issue11015] Bring test.support docs up to date

2018-02-11 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thanks Nick for merging. Should I open a new PR to address Serhiy's review or fix them on the original PR? -- ___ Python tracker

[issue5978] cProfile and profile don't work with pygtk/pyqt and sys.exit(0)

2018-02-11 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +easy stage: -> needs patch type: behavior -> enhancement versions: +Python 3.8 -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker

[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-02-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +5432 ___ Python tracker ___

[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-02-11 Thread Zachary Ware
Zachary Ware added the comment: New changeset 310b05289b5d9550040f469e60b5e8e77f1022b6 by Zachary Ware in branch 'master': bpo-32604: Make _xxsubinterpreters build on Windows (GH-5516) https://github.com/python/cpython/commit/310b05289b5d9550040f469e60b5e8e77f1022b6

[issue11015] Bring test.support docs up to date

2018-02-11 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset a0b998df314370f00502efe7ad84206f5bb782ff by Nick Coghlan (Miss Islington (bot)) in branch '3.7': bpo-11015: Update test.support documentation (GH-5619)

[issue11015] Bring test.support docs up to date

2018-02-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have left comments to PR. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue32820] Add binary methods to ipaddress

2018-02-11 Thread Eric Osborne
Eric Osborne added the comment: test_not_an_index_issue15559() disallows __index__, so nevermind. Will resubmit without __index__ to get the full binary string, though. -- resolution: -> rejected ___ Python tracker

[issue32820] Add binary methods to ipaddress

2018-02-11 Thread Eric Osborne
New submission from Eric Osborne : This issue adds two things to the ipaddress lib: * an __index__ method to allow bin(), oct(), hex() to work * a property method to get the fully padded (32-bit or 128-bit) address as a string -- components: Library (Lib) messages:

[issue32815] Document text parameter to subprocess.Popen

2018-02-11 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +5431 stage: -> patch review ___ Python tracker ___

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

2018-02-11 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +5430 stage: -> patch review ___ Python tracker ___

[issue32819] match_hostname() error reporting bug

2018-02-11 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +5429 stage: -> patch review ___ Python tracker ___

[issue32819] match_hostname() error reporting bug

2018-02-11 Thread Christian Heimes
New submission from Christian Heimes : Since bpo #23033, ssl.match_hostname() no longer supports partial wildcard matching, e.g. "www*.example.org". In case of a partial match, _dnsname_match() fails with a confusing/wrong error message: >>> import ssl >>>

[issue11015] Bring test.support docs up to date

2018-02-11 Thread Nick Coghlan
Nick Coghlan added the comment: I merged Cheryl's PR to the dev branch, and triggered the backport to 3.7. If nobody beats me to it, I'll merge the latter tomorrow :) -- assignee: docs@python -> ncoghlan resolution: -> fixed stage: patch review -> backport needed

[issue11015] Bring test.support docs up to date

2018-02-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +5428 ___ Python tracker ___

[issue11015] Bring test.support docs up to date

2018-02-11 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 988fb28431d3a3fc5dc6eb657c8a4baacc04d9ce by Nick Coghlan (Cheryl Sabella) in branch 'master': bpo-11015: Update test.support documentation (GH-5610)

[issue32758] Stack overflow when parse long expression to AST

2018-02-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > The other option is to simply not worry about it and acknowledge you can > crash the compiler with a crazy-sized expression. Agreed, this is the most practical option. Do you want to write such acknowledgement? --

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

2018-02-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.6 ___ Python tracker ___

[issue32616] Significant performance problems with Python 2.7 built with clang 3.x or 4.x

2018-02-11 Thread Antoine Pitrou
Change by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list

[issue32616] Significant performance problems with Python 2.7 built with clang 3.x or 4.x

2018-02-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: This should remain everyone that backporting performance improvements is not a no-brainer. -- nosy: +pitrou ___ Python tracker

[issue32813] SSL shared_ciphers implementation wrong - returns configured but not shared ciphers

2018-02-11 Thread Christian Heimes
Christian Heimes added the comment: I don't see the issue as critical. For me, the method is just a debugging tool. Benjamin, for which purpose did you add the method? -- ___ Python tracker

[issue32397] textwrap output may change if you wrap a paragraph twice

2018-02-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka type: -> behavior versions: +Python 3.6, Python 3.8 ___ Python tracker

[issue32792] ChainMap should preserve order of underlying mappings

2018-02-11 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue32792] ChainMap should preserve order of underlying mappings

2018-02-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I referred to msg311969, not msg311822. -- ___ Python tracker ___

[issue32792] ChainMap should preserve order of underlying mappings

2018-02-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: > The code in msg311969 doesn't reuse hash values. That doesn't make sense. The dict.update() method reuses the hashes of the input mappings when possible. >>> from collections import ChainMap >>> class Int(int):

[issue32792] ChainMap should preserve order of underlying mappings

2018-02-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 170b3f79506480f78275a801822c9ff1283e16f2 by Raymond Hettinger (Miss Islington (bot)) in branch '3.7': bpo-32792: Preserve mapping order in ChainMap() (GH-5586) (#GH-5617)

[issue32792] ChainMap should preserve order of underlying mappings

2018-02-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The code in msg311969 doesn't reuse hash values. The following implementations do this: return iter({**m for m in reversed(self.maps)}) or, without keeping reverences to values: return iter(list({**m for m in

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

2018-02-11 Thread Jay Yin
Jay Yin added the comment: Thanks for the reply -- ___ Python tracker ___ ___

[issue32792] ChainMap should preserve order of underlying mappings

2018-02-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: On PR 5586 we discussed reverting the order of the iteration by mappings. There are reasons of doing this. But this adds a subtle behavior change. Currently list(ChainMap({1: int}, {1.0: float})) returns [1]. With reversed() it

[issue32792] ChainMap should preserve order of underlying mappings

2018-02-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +5427 ___ Python tracker ___

[issue32792] ChainMap should preserve order of underlying mappings

2018-02-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 3793f95f98c3112ce447288a5bf9899eb9e35423 by Raymond Hettinger in branch 'master': bpo-32792: Preserve mapping order in ChainMap() (GH-5586)