[issue37544] Test hang causes --enable-optimizations build to hang

2019-07-23 Thread Jarek Zgoda
Jarek Zgoda added the comment: Thank you for the information. The build system is standard Ubuntu 18.04.2 and openssl is system provided. I will try to build Python against other openssl versions, as well against libressl. -- ___ Python tracker

[issue33610] IDLE: Make multiple improvements to CodeContext

2019-07-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +14690 pull_request: https://github.com/python/cpython/pull/14914 ___ Python tracker ___

[issue33610] IDLE: Make multiple improvements to CodeContext

2019-07-23 Thread Tal Einat
Tal Einat added the comment: New changeset 1ebee37dde5c2aabc8e2d2c7bbe2a69b293133bb by Tal Einat in branch 'master': bpo-33610: validate non-negative integer inputs in IDLE's config (GH-14822) https://github.com/python/cpython/commit/1ebee37dde5c2aabc8e2d2c7bbe2a69b293133bb --

[issue33610] IDLE: Make multiple improvements to CodeContext

2019-07-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +14689 pull_request: https://github.com/python/cpython/pull/14913 ___ Python tracker ___

[issue33610] IDLE: Make multiple improvements to CodeContext

2019-07-23 Thread miss-islington
miss-islington added the comment: New changeset 28815e0e2c904644660d29995cdfbb65f67e4a1d by Miss Islington (bot) in branch '3.7': bpo-33610: validate non-negative integer inputs in IDLE's config (GH-14822) https://github.com/python/cpython/commit/28815e0e2c904644660d29995cdfbb65f67e4a1d

[issue33610] IDLE: Make multiple improvements to CodeContext

2019-07-23 Thread miss-islington
miss-islington added the comment: New changeset 5dab5e7d24c790d54b8d1eca0568e798bfda2c68 by Miss Islington (bot) in branch '3.8': bpo-33610: validate non-negative integer inputs in IDLE's config (GH-14822) https://github.com/python/cpython/commit/5dab5e7d24c790d54b8d1eca0568e798bfda2c68

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2019-07-23 Thread Mickaël Schoentgen
Change by Mickaël Schoentgen : -- nosy: +Tiger-222 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36974] Implement PEP 590

2019-07-23 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset bf8e82f976b37856c7d35cdf88a238cb6f57fe65 by Łukasz Langa (Jeroen Demeyer) in branch '3.8': [3.8] bpo-36974: separate vectorcall functions for each calling convention (GH-13781) (#14782)

[issue37658] In some cases asyncio.wait_for can lead to socket leak.

2019-07-23 Thread Nikita Ilyasov
New submission from Nikita Ilyasov : In some cases `asyncio.wait_for` can lead to socket leak. Condensed example: ```python async def _create_connection(timeout=60, ssl_obj): loop = asyncio.get_event_loop() connector = loop.create_connection(MyEchoClientProtocol, '127.0.0.1', 5000,

[issue37658] In some cases asyncio.wait_for can lead to socket leak.

2019-07-23 Thread Nikita Ilyasov
Nikita Ilyasov added the comment: server example: https://gist.github.com/hexrain/bc92aa70eebc229365f0ce4bcccf7fc4 -- ___ Python tracker ___

[issue37639] What happened to StreamReaderProtocol?

2019-07-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: Hi. StreamReaderProtocol was leaked implementation detail, not a public reusable class. The protocol has too many "gray zones" where its implementation is not well defined or even wrong. This situation prevents us from stream API improvements which require

[issue17535] IDLE editor line numbers

2019-07-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +14691 pull_request: https://github.com/python/cpython/pull/14916 ___ Python tracker ___

[issue17535] IDLE editor line numbers

2019-07-23 Thread Tal Einat
Tal Einat added the comment: New changeset 7123ea009b0b004062d91f69859bddf422c34ab4 by Tal Einat in branch 'master': bpo-17535: IDLE editor line numbers (GH-14030) https://github.com/python/cpython/commit/7123ea009b0b004062d91f69859bddf422c34ab4 --

[issue17535] IDLE editor line numbers

2019-07-23 Thread miss-islington
miss-islington added the comment: New changeset 1da6a313ddaa269dddce303cb03ca95fe57d0c85 by Miss Islington (bot) in branch '3.8': bpo-17535: IDLE editor line numbers (GH-14030) https://github.com/python/cpython/commit/1da6a313ddaa269dddce303cb03ca95fe57d0c85 -- nosy:

[issue17535] IDLE editor line numbers

2019-07-23 Thread Tal Einat
Change by Tal Einat : -- pull_requests: +14692 pull_request: https://github.com/python/cpython/pull/14917 ___ Python tracker ___

[issue17535] IDLE editor line numbers

2019-07-23 Thread Tal Einat
Tal Einat added the comment: New changeset e9ec1663d8fa0b3829add14e784107482af8dacb by Tal Einat in branch '3.7': [3.7] bpo-17535: IDLE editor line numbers (GH-14030) https://github.com/python/cpython/commit/e9ec1663d8fa0b3829add14e784107482af8dacb --

[issue37657] ERROR: grip 4.5.2 requires docopt>=0.4.0, which is not installed.

2019-07-23 Thread Ned Deily
Ned Deily added the comment: Sorry, I have no idea why you saw those messages. Neither grip nor docopt are used directly by the python.org macOS installer and, after a quick glance, I didn't see anywhere where the certifi package used them. Did you have an earlier alpha or beta version of

[issue37653] make install fails

2019-07-23 Thread Ned Deily
Ned Deily added the comment: New changeset 387c3c5a04bc62cfa7c9dabe206ba2c582a71c05 by Ned Deily (Erlend Egeberg Aasland) in branch 'master': bpo-37653: Fix libinstall target in Makefile (GH-14911) https://github.com/python/cpython/commit/387c3c5a04bc62cfa7c9dabe206ba2c582a71c05 --

[issue30237] Access violation due to CancelSynchronousIo of console read

2019-07-23 Thread Steve Dower
Steve Dower added the comment: Yep, thanks for the ping! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37653] make install fails

2019-07-23 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- components: +macOS nosy: +ned.deily, ronaldoussoren ___ Python tracker ___ ___

[issue17535] IDLE editor line numbers

2019-07-23 Thread Tal Einat
Tal Einat added the comment: PR Merged! This will be in 3.8.0 and 3.7.5. Thanks to everyone who worked on this and took part in the discussion! Special thanks to Saimadhav for preparing a patch and iterating on it several times; I picked up the work from where he left off, and it was a

[issue37653] make install fails

2019-07-23 Thread Ned Deily
Ned Deily added the comment: Thanks for the PR! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue31546] PyOS_InputHook is not called when waiting for input() in Windows

2019-07-23 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue37468] Don't install wininst*.exe on non-Windows platforms

2019-07-23 Thread Ned Deily
Ned Deily added the comment: The merged PR broke "make libinstall" and, hence, "make install" with at least some versions of make. See Issue37653. -- nosy: +ned.deily ___ Python tracker

[issue37587] JSON loads performance improvement for long strings

2019-07-23 Thread Steve Dower
Steve Dower added the comment: Marco has a newer patch with better performance that we came up with at the sprints, but apparently it hasn't been pushed yet. Hopefully he'll get that up soon and we can review it instead - the current PR wasn't as reliably good as initial testing suggested.

[issue37660] Drop support for Aspen magic directories in venv's activate scripts

2019-07-23 Thread Brett Cannon
Brett Cannon added the comment: And this code and comment exists outside of just the bash activation script: https://github.com/python/cpython/blob/master/Lib/venv/scripts/posix/activate.fish#L62 -- title: Drop support for Aspen magic directories in venv's activate script -> Drop

[issue29446] Improve tkinter 'import *' situation

2019-07-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset aee260f1c4d32bf67edec209d949294d4dc403c1 by Terry Jan Reedy (Miss Islington (bot)) in branch '3.7': bpo-29446: IDLE -- add explicit imports (GH-14919) (#14921) https://github.com/python/cpython/commit/aee260f1c4d32bf67edec209d949294d4dc403c1

[issue37663] Making venv activation script prompts consistent

2019-07-23 Thread Brett Cannon
New submission from Brett Cannon : There are five activation scripts and they are all do things differently when it comes to prompt manipulation. Standardizing on one set of semantics would probably be good for consistency and so people know what to expect regardless of their shell.

[issue37663] Making venv activation script prompts consistent

2019-07-23 Thread Brett Cannon
Change by Brett Cannon : -- priority: normal -> low ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37663] Making venv activation script prompts consistent

2019-07-23 Thread Brett Cannon
Change by Brett Cannon : -- dependencies: +Drop support for Aspen magic directories in venv's activate scripts, venv activation scripts erroneously check if __VENV_PROMPT__ is defined ___ Python tracker

[issue37666] urllib.requests.urlopen doesn't support cadata=

2019-07-23 Thread Gregory P. Smith
New submission from Gregory P. Smith : The underlying https://docs.python.org/3/library/ssl.html#ssl.SSLContext.load_verify_locations API supports cafile, capath and cadata. urlopen() only offers up cafile and capath. It should also support cadata for completeness. This matters for

[issue17535] IDLE editor line numbers

2019-07-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: A note on the first 3 comments in msg223086 of 2014-07-15. 1. Canvas versus Text: The prototype posted by Brian Oakley on SO had to use a Canvas because it was meant to work even with texts with multiple fonts and in-line widgets. IDLE's editor, intended

[issue37664] Update bundled pip and setuptools

2019-07-23 Thread Steve Dower
New submission from Steve Dower : Can we have a newer bundled version of pip for 3.8/3.9? In particular, I'd really like to be able to use the new location for a pip.ini inside of sys.prefix, as it will fix the problems with "python3 -m pip" on Windows when obtained from the Store (and we

[issue32912] Raise non-silent warning for invalid escape sequences

2019-07-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Raymond, are you in agreement that these warnings should > at some point eventually become syntax errors? I used to think so, but after experiencing the incessant warnings, I question the value. In inactive sessions (either with the regular REPL or

[issue37665] threading.TIMEOUT_MAX integer overflow on 32-bit builds with threading.Thread.join

2019-07-23 Thread Arun Sharma
New submission from Arun Sharma : threading's TIMEOUT_MAX constant causes overflows when used as the timeout for threading.Thread.join on a 32-bit platform, like a Raspberry PI running Raspbian (2019-07-10-raspbian-buster). The underlying code uses sem_timedwait. The timespec on this

[issue32912] Raise non-silent warning for invalid escape sequences

2019-07-23 Thread Aaron Meurer
Aaron Meurer added the comment: Well paradoxically, the bugs that this prevents are the ones it doesn't warn about. If someone writes '\tan(x)' thinking it is a string representing a LaTeX formula for the tangent of x, they won't realize that they actually created a string with a tab plus

[issue30755] locale.normalize() and getdefaultlocale() convert C.UTF-8 to en_US.UTF-8

2019-07-23 Thread Gordon Messmer
Change by Gordon Messmer : -- keywords: +patch pull_requests: +14696 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14925 ___ Python tracker ___

[issue36044] PROFILE_TASK for PGO build is not a good workload

2019-07-23 Thread Zackery Spytz
Zackery Spytz added the comment: Travis only runs 40 tests after this change (https://travis-ci.org/python/cpython/jobs/562362678). -- nosy: +ZackerySpytz ___ Python tracker

[issue35771] IDLE: Fix tooltip Hovertiptest failure

2019-07-23 Thread Zackery Spytz
Zackery Spytz added the comment: For what it's worth, I see this failure often when running the test suite. I have created a pull request to increase the delay. -- nosy: +ZackerySpytz versions: +Python 3.9 ___ Python tracker

[issue37667] test.regrtest is now only running 40 tests

2019-07-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +14699 pull_request: https://github.com/python/cpython/pull/14928 ___ Python tracker ___

[issue37667] test.regrtest is now only running 40 tests

2019-07-23 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +14700 stage: commit review -> patch review pull_request: https://github.com/python/cpython/pull/14929 ___ Python tracker ___

[issue35771] IDLE: Fix tooltip Hovertiptest failure

2019-07-23 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +14697 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/14926 ___ Python tracker

[issue30755] locale.normalize() and getdefaultlocale() convert C.UTF-8 to en_US.UTF-8

2019-07-23 Thread Gordon Messmer
Gordon Messmer added the comment: As an example, let's consider dnf's i18n setup: try: dnf.pycomp.setlocale(locale.LC_ALL, '') except locale.Error: # default to C.UTF-8 or C locale if we got a failure. try: dnf.pycomp.setlocale(locale.LC_ALL,

[issue37667] test.regrtest is now only running 40 tests

2019-07-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: fixed, but not marking closed until the 3.8 automerge happens. -- resolution: -> fixed stage: patch review -> commit review versions: -Python 3.9 ___ Python tracker

[issue37667] test.regrtest is now only running 40 tests

2019-07-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset e95ac20103437d8099fb91cd4468ab030852f3b7 by Gregory P. Smith in branch 'master': bpo-37667: Add regression test for regrtest. (GH-14929) https://github.com/python/cpython/commit/e95ac20103437d8099fb91cd4468ab030852f3b7 --

[issue37667] test.regrtest is now only running 40 tests

2019-07-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +14701 pull_request: https://github.com/python/cpython/pull/14930 ___ Python tracker ___

[issue37666] urllib.requests.urlopen doesn't support cadata=

2019-07-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: Probably nevermind on implementing this: ssl_context = ssl.create_default_context(cadata=...) urllib.request.urlopen(..., context=ssl_context) Works fine. It might be worth a note in the urlopen() docs if anything. --

[issue37667] test.regrtest is now only running 40 tests

2019-07-23 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +14698 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/14927 ___ Python tracker

[issue37667] test.regrtest is now only running 40 tests

2019-07-23 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37667] test.regrtest is now only running 40 tests

2019-07-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: A regression test for this type of situation is in the works in the open PR. -- stage: patch review -> commit review status: open -> closed versions: +Python 3.9 ___ Python tracker

[issue37665] threading.TIMEOUT_MAX integer overflow on 32-bit builds with threading.Thread.join

2019-07-23 Thread Zackery Spytz
Zackery Spytz added the comment: See also bpo-33632. -- nosy: +ZackerySpytz ___ Python tracker ___ ___ Python-bugs-list mailing

[issue36044] PROFILE_TASK for PGO build is not a good workload

2019-07-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: tracking that as a release blocker in https://bugs.python.org/issue37667 -- ___ Python tracker ___

[issue37667] test.regrtest is now only running 40 tests

2019-07-23 Thread Gregory P. Smith
New submission from Gregory P. Smith : After the PR for https://bugs.python.org/issue36044 when in, see the comment in the issue. test.regrtest is now only running 40 tests. that means all of our CI is failing to run most of the test suites. -- components: Tests messages: 348365

[issue37656] Can't pip install because of bisect_left

2019-07-23 Thread Brett Cannon
Brett Cannon added the comment: I'm going to close this as this is more likely an Anaconda or path problem than a CPython problem. But as Raymond said, chances are you have some other file named bisect on your sys.path. -- nosy: +brett.cannon resolution: -> third party stage: ->

[issue37659] subprocess.list2cmdline() should not escape wrapping single/double quotes

2019-07-23 Thread Eryk Sun
Eryk Sun added the comment: The behavior of list2cmdline with double quotes is intentional. It supports passing literal quote characters in the command line for applications that use VC++ argv parsing, WINAPI CommandLineToArgvW, or in general any application that adheres to these rules when

[issue37661] venv activation scripts erroneously check if __VENV_PROMPT__ is defined

2019-07-23 Thread Brett Cannon
New submission from Brett Cannon : If you look at https://github.com/python/cpython/blob/master/Lib/venv/__init__.py#L112-L113 you will see that the prompt context for a virtual environment is always set. Then if you look at the string substitutions for the activation scripts you will also

[issue37660] Drop support for Aspen magic directories in venv's activate scripts

2019-07-23 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32912] Raise non-silent warning for invalid escape sequences

2019-07-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm starting to see this error even for plain text strings in existing code: >>> dunder_methods = ''' d[k] d.__getitem__(k) -> value \--> d.__missing__(k) -> value \---> raise KeyError(k) d[k] = v

[issue32912] Raise non-silent warning for invalid escape sequences

2019-07-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: AFAICT, I'm currently one of the only people in the world using the 3.8 beta for my work on a daily basis. I've encountered these warnings multiple times in multiple contexts. If we think other people won't experience this recurring annoyance, we're in

[issue37639] What happened to StreamReaderProtocol?

2019-07-23 Thread Aymeric Augustin
Change by Aymeric Augustin : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37660] Drop support for Aspen magic directories in venv's activate script

2019-07-23 Thread Brett Cannon
New submission from Brett Cannon : Or at least update the comment as the URL at https://github.com/python/cpython/blob/master/Lib/venv/scripts/common/activate#L62 is a 404 and the domain seems to be a news site in Asia now (http://www.zetadev.com/). -- components: Library (Lib)

[issue32912] Raise non-silent warning for invalid escape sequences

2019-07-23 Thread Aaron Meurer
Aaron Meurer added the comment: Raymond, are you in agreement that these warnings should at some point eventually become syntax errors? -- ___ Python tracker ___

[issue29446] Improve tkinter 'import *' situation

2019-07-23 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +14693 pull_request: https://github.com/python/cpython/pull/14919 ___ Python tracker ___

[issue29446] Improve tkinter 'import *' situation

2019-07-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +14695 pull_request: https://github.com/python/cpython/pull/14921 ___ Python tracker ___

[issue29446] Improve tkinter 'import *' situation

2019-07-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset c6fd6c83b70df76421d05a7628367e64a2f83589 by Terry Jan Reedy in branch 'master': bpo-29446: IDLE -- add explicit imports (GH-14919) https://github.com/python/cpython/commit/c6fd6c83b70df76421d05a7628367e64a2f83589 --

[issue29446] Improve tkinter 'import *' situation

2019-07-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +14694 pull_request: https://github.com/python/cpython/pull/14920 ___ Python tracker ___

[issue37659] subprocess.list2cmdline() should not escape wrapping single/double quotes

2019-07-23 Thread James Xu
New submission from James Xu : While working on our project, we have noticed that for `subprocess.Popen(command, ...)`, when `command` is a string that contains escaped double quote, for example, `command = '"path to executable" --flag arg'`, this works fine. However, when command is changed

[issue29446] Improve tkinter 'import *' situation

2019-07-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset fc63d5a361f7d20282019cad84336a242c124267 by Terry Jan Reedy (Miss Islington (bot)) in branch '3.8': bpo-29446: IDLE -- add explicit imports (GH-14919) (GH-14920) https://github.com/python/cpython/commit/fc63d5a361f7d20282019cad84336a242c124267

[issue37662] Document venv.EnvBuilder.upgrade_dependencies()

2019-07-23 Thread Brett Cannon
New submission from Brett Cannon : The upgrade_deps parameter to EnvBuilder exists and venv.EnvBuilder.create() calls self.upgrade_dependencies(), but that method isn't documented anywhere. -- messages: 348352 nosy: brett.cannon, vinay.sajip priority: normal severity: normal status: