[issue37424] subprocess.run timeout does not function if shell=True and capture_output=True

2019-06-27 Thread haizaar
New submission from haizaar : Consider the following: subprocess.run('sleep 10', shell=True, timeout=.1, capture_output=True) It should raise after 0.1 seconds, but it does not - it waits 10 seconds till sleep finishes and only then raises "subprocess.TimeoutExpired: Command 'sleep 10' timed

[issue35389] Use gnu_get_libc_version() in platform.libc_ver()?

2019-06-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset a719c8f4bd3cc5b1d98700c15c4a818f4d5617a4 by Victor Stinner in branch 'master': bpo-35389: platform.platform() calls libc_ver() without executable (GH-14418) https://github.com/python/cpython/commit/a719c8f4bd3cc5b1d98700c15c4a818f4d5617a4

[issue37424] subprocess.run timeout does not function if shell=True and capture_output=True

2019-06-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: On mac this exits immediately with 0.1 seconds as timeout but reproducible on Ubuntu with master. -- nosy: +gregory.p.smith, xtreak ___ Python tracker ___

[issue37425] Using Pyinstaller with (Anaconda) Python 3.7.3 needs PyQt5 even if not imported in code

2019-06-27 Thread Sameer Bobade
New submission from Sameer Bobade : I am writing a test code with Python and tested that it works on both Python 3.7 and 3.7.3 The code uses tkinter, and does not use PyQT5 I use pyinstaller 3.4 I convert the python to exe. With the same code and and same dependencies (including version number

[issue37416] If threading is not imported from the main thread it sees the wrong thread as the main thread.

2019-06-27 Thread Pavel Minaev
Change by Pavel Minaev : -- nosy: +int19h ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue37415] Error build Python with Intel compiler

2019-06-27 Thread Borja
Borja added the comment: In pyconfig.h the variable HAVE_STD_ATOMIC appears like this: /* Has stdatomic.h with atomic_int */ #define HAVE_STD_ATOMIC 1 I searched at atomic_uintptr_t and found nothing. -- ___ Python tracker

[issue33926] test_gdb is skipped in builds since gdb is not installed as part of build script

2019-06-27 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- keywords: +patch pull_requests: +14233 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14395 ___ Python tracker ___ _

[issue32926] Add public TestCase method/property to get result of current test

2019-06-27 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- keywords: +patch pull_requests: +14234 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14395 ___ Python tracker ___ _

[issue36656] Please add race-free os.link and os.symlink wrapper / helper

2019-06-27 Thread Tal Einat
Change by Tal Einat : -- components: +Library (Lib) versions: +Python 3.9 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list ma

[issue32926] Add public TestCase method/property to get result of current test

2019-06-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: -14234 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32926] Add public TestCase method/property to get result of current test

2019-06-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +ezio.melotti, michael.foord, rbcollins stage: patch review -> versions: +Python 3.9 -Python 3.8 ___ Python tracker ___ _

[issue36656] Please add race-free os.link and os.symlink wrapper / helper

2019-06-27 Thread Tal Einat
Tal Einat added the comment: I think there is a general flaw with the suggested implementation approach. An infinite loop as currently suggested seems dangerous to me. For example, it could cause a program to stall indefinitely in some unforeseen edge-case. I don't think this would be acce

[issue37424] subprocess.run timeout does not function if shell=True and capture_output=True

2019-06-27 Thread Martin Panter
Martin Panter added the comment: Same thing going on as in Issue 30154. The shell is probably spawning the “sleep” command as a child process (grandchild of Python), and waiting for it to exit. When Python times out, it will kill the shell process, leaving the grandchild as an orphan. The “sl

[issue37366] Add an "onitem" callback parameter to shutil.rmtree()

2019-06-27 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I am not sure I understand the use case. Other than "unmounting a mount point" the other scenarios look unrealistic to me and also require a fd instead of a path. Also, if you want to unmount a path you can do so via *onerror* instead (unmount + delete).

[issue32926] Add public TestCase method/property to get result of current test

2019-06-27 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- pull_requests: +14235 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14395 ___ Python tracker ___ __

[issue32926] Add public TestCase method/property to get result of current test

2019-06-27 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- pull_requests: -14235 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue37416] If threading is not imported from the main thread it sees the wrong thread as the main thread.

2019-06-27 Thread Aldwin Pollefeyt
Aldwin Pollefeyt added the comment: The second import actually doesn't happen. You need to reload it. This can be tested by putting print('loading threading') in threading.py. Your first method-thread will still think it's main thread. So no idea if this is a bug or wrong use. 'import thread

[issue37426] getpass.getpass not working with on windows when ctrl+v is used to enter the string

2019-06-27 Thread Atul Bagga
New submission from Atul Bagga : Detailed issue filed here - https://github.com/microsoft/knack/issues/160 -- components: Library (Lib) messages: 346721 nosy: Atul Bagga priority: normal severity: normal status: open title: getpass.getpass not working with on windows when ctrl+v is use

[issue37427] sorted() and list.sort() don't accept non-boolean objects with __bool__() as `reverse` parameter

2019-06-27 Thread NODA, Kai
New submission from NODA, Kai : class X: def __bool__(self): return True x = [1, 2, 3] x.sort(reverse=X()) print(x) print(sorted([1, 2, 3], reverse=X())) TypeError: an integer is required (got type X) We can always still do x.sort(reverse=bool(X())) print(sorted([1, 2, 3], revers

[issue37416] If threading is not imported from the main thread it sees the wrong thread as the main thread.

2019-06-27 Thread Pavel Minaev
Pavel Minaev added the comment: This is a bit tricky to explain... There's no easy way to achieve this effect "normally". It manifests due to the way some Python debuggers (specifically, pydevd and ptvsd - as used by PyCharm, PyDev, and VSCode) implement non-cooperative attaching to a runnin

[issue37427] sorted() and list.sort() don't accept non-boolean objects with __bool__() as `reverse` parameter

2019-06-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue37416] If threading is not imported from the main thread it sees the wrong thread as the main thread.

2019-06-27 Thread Pavel Minaev
Pavel Minaev added the comment: It's also possible to hit if using some native code that starts a background thread without going via threading, and runs Python code on that background thread. In that case, if that Python code then does "import threading", and threading hasn't been imported

[issue37426] getpass.getpass not working with on windows when ctrl+v is used to enter the string

2019-06-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ __

[issue37428] SSLContext.post_handshake_auth implicitly enables cert validation

2019-06-27 Thread Christian Heimes
New submission from Christian Heimes : Enabling TLS 1.3 post handshake auth also enables cert chain validation. OpenSSL documents SSL_VERIFY_POST_HANDSHAKE as ignored for client side. However tls_process_server_certificate in the client state machine code does not ignore the flag and checks f

[issue37416] If threading is not imported from the main thread it sees the wrong thread as the main thread.

2019-06-27 Thread Aldwin Pollefeyt
Aldwin Pollefeyt added the comment: Understood. Thank you for the extra info. I'll read up on all the suggestions. -- ___ Python tracker ___ __

[issue37426] getpass.getpass not working with on windows when ctrl+v is used to enter the string

2019-06-27 Thread Eryk Sun
Eryk Sun added the comment: getpass() reads from the console via msvcrt.getwch(). This is a raw console read, so Ctrl+V is read as the SYN (0x16) control character. Only the following keys are handled specially by getpass: * Ctrl+C - raise KeyboardInterrupt * Ctrl+H (backspace) - delete the

[issue33926] test_gdb is skipped in builds since gdb is not installed as part of build script

2019-06-27 Thread Inada Naoki
Inada Naoki added the comment: New changeset 667eaffb4e5d03bf8129773f79649c3befaa5b1a by Inada Naoki (Jeroen Demeyer) in branch 'master': bpo-33926: enable GDB tests on Travis CI (GH-14395) https://github.com/python/cpython/commit/667eaffb4e5d03bf8129773f79649c3befaa5b1a -- nosy: +i

[issue33926] test_gdb is skipped in builds since gdb is not installed as part of build script

2019-06-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +14236 pull_request: https://github.com/python/cpython/pull/14420 ___ Python tracker ___ __

[issue37428] SSLContext.post_handshake_auth implicitly enables cert validation

2019-06-27 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +14237 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14421 ___ Python tracker ___

[issue36889] Merge StreamWriter and StreamReader into just asyncio.Stream

2019-06-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +14238 pull_request: https://github.com/python/cpython/pull/14422 ___ Python tracker ___ __

[issue33926] test_gdb is skipped in builds since gdb is not installed as part of build script

2019-06-27 Thread miss-islington
miss-islington added the comment: New changeset 7e9d706fd6e2f49d2bd829890c46868105767769 by Miss Islington (bot) in branch '3.8': bpo-33926: enable GDB tests on Travis CI (GH-14395) https://github.com/python/cpython/commit/7e9d706fd6e2f49d2bd829890c46868105767769 -- nosy: +miss-isli

[issue37427] sorted() and list.sort() don't accept non-boolean objects with __bool__() as `reverse` parameter

2019-06-27 Thread Mark Dickinson
Mark Dickinson added the comment: I haven't looked at the source yet, but from experimentation I'm finding it rather hard to guess what the rules are for what works and what doesn't: Python 3.7.3 (default, Mar 30 2019, 03:37:43) [Clang 10.0.0 (clang-1000.11.45.5)] on darwin Type "help", "cop

[issue37427] sorted() and list.sort() don't accept non-boolean objects with __bool__() as `reverse` parameter

2019-06-27 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue37427] sorted() and list.sort() don't accept non-boolean objects with __bool__() as `reverse` parameter

2019-06-27 Thread Mark Dickinson
Mark Dickinson added the comment: > I'm finding it rather hard to guess what the rules are for what works and > what doesn't So now that I've looked at the source: anything with an `__int__` method works, except that `float` instances are explicitly excluded. So this explains for example:

[issue37429] Python hangs on fork when a logger is in use in a background thread

2019-06-27 Thread Ryan Petrello
New submission from Ryan Petrello : It's possible to cause Python child processes to encountered a deadlock and hang on fork by: 1) Spawning one or more threads in a parent process 2) Have one of those threads emit log lines 3) Have the main thread use os.fork() 4) In the child, log immediatel

[issue37429] Python hangs on fork when a logger is in use in a background thread

2019-06-27 Thread Ryan Petrello
Ryan Petrello added the comment: This issue seems _very_ similar to https://bugs.python.org/issue6721, but I wasn't able to encounter the exact stack I've been seeing on my end. Specifically, when I run the reproducer script in this issue (hang.py) for a few minutes, hung child processes st

[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2019-06-27 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +14239 pull_request: https://github.com/python/cpython/pull/14423 ___ Python tracker ___ _

[issue37429] Python hangs on fork when a logger is in use in a background thread

2019-06-27 Thread Ryan Petrello
Ryan Petrello added the comment: Here's the stack of one the hung child processes under py2.7: (gdb) py-bt #4 Waiting for a lock (e.g. GIL) #5 Waiting for a lock (e.g. GIL) #7 Frame 0x7f346a925430, for file /usr/lib64/python2.7/Queue.py, line 118, in put (self=, maxsize=0, all_tasks_done=<_Co

[issue37424] subprocess.run timeout does not function if shell=True and capture_output=True

2019-06-27 Thread haizaar
haizaar added the comment: Thanks for looking at it. My original code had "tar" running, which is a child of the shell as well... I assume running exec in the shell may help somewhat, but not a cure obviously. I'm all for killing the process group. "Run something and get it's about" should

[issue26534] subprocess.check_output with shell=True ignores the timeout

2019-06-27 Thread haizaar
Change by haizaar : -- nosy: +haizaar ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue30154] subprocess.run with stderr connected to a pipe won't timeout when killing a never-ending shell commanad

2019-06-27 Thread haizaar
Change by haizaar : -- nosy: +haizaar ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue37429] Python hangs on fork when a logger is in use in a background thread

2019-06-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also https://bugs.python.org/issue36533 -- nosy: +vinay.sajip, xtreak ___ Python tracker ___ __

[issue5115] Extend subprocess.kill to be able to kill process groups

2019-06-27 Thread haizaar
Change by haizaar : -- nosy: +haizaar ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/

[issue37429] Python hangs on fork when a logger is in use in a background thread

2019-06-27 Thread Ryan Petrello
Ryan Petrello added the comment: Also, for what it's worth, I'm *not* able to reproduce this hang in Python 3.7.0. -- ___ Python tracker ___ _

[issue37429] Python hangs on fork when a logger is in use in a background thread

2019-06-27 Thread Ryan Petrello
Ryan Petrello added the comment: Actually, I think I *am* seeing this on 3.7: (gdb) bt #0 0x7f130d530adb in futex_abstimed_wait (cancel=true, private=, abstime=0x0, expected=0, futex=0x142c6d0) at ../nptl/sysdeps/unix/sysv/linux/sem_waitcommon.c:43 #1 do_futex_wait (sem=sem@entry=0x1

[issue37415] Error build Python with Intel compiler: doesn't provide atomic_uintptr_t

2019-06-27 Thread STINNER Victor
STINNER Victor added the comment: > I searched at atomic_uintptr_t and found nothing. That's not good. I expectd std to stand for standard. I expected that atomic_uintptr_t would always be available on . GCC defines the type as: typedef _Atomic __UINTPTR_TYPE__ atomic_uintptr_t; Maybe you

[issue36889] Merge StreamWriter and StreamReader into just asyncio.Stream

2019-06-27 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue33926] test_gdb is skipped in builds since gdb is not installed as part of build script

2019-06-27 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: Feel free to close... -- nosy: +jdemeyer ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33926] test_gdb is skipped in builds since gdb is not installed as part of build script

2019-06-27 Thread STINNER Victor
STINNER Victor added the comment: > Feel free to close... What about 2.7 and 3.7 branches? -- ___ Python tracker ___ ___ Python-bu

[issue37427] sorted() and list.sort() don't accept non-boolean objects with __bool__() as `reverse` parameter

2019-06-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue15999. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing

[issue37412] os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows

2019-06-27 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +14240 pull_request: https://github.com/python/cpython/pull/14424 ___ Python tracker ___ __

[issue37412] os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows

2019-06-27 Thread STINNER Victor
STINNER Victor added the comment: > This update breaks long-path support in Windows. Oops. This is the risk of not testing a feature :-) My PR added very basic tests for getcwd() and getcwdb(). I wrote PR 14424 to not only fix the integer overflow check, but also to add a new unit tests for

[issue37425] Using Pyinstaller with (Anaconda) Python 3.7.3 needs PyQt5 even if not imported in code

2019-06-27 Thread Steve Dower
Steve Dower added the comment: This looks like because you have Qt installed in one environment and not the other, so when matplotlib imports it pyinstaller decides to include it. You'll have to report this to pyinstaller. It's nothing to do with core Python. -- resolution: -> third

[issue37430] range is not a built-in function

2019-06-27 Thread bob gailer
New submission from bob gailer : In section 8.3 The for statement there is a reference to range as a built-in function. That was true in python 2. Now range is a built-in type. -- assignee: docs@python components: Documentation messages: 346745 nosy: bgailer, docs@python priority: norm

[issue37416] If threading is not imported from the main thread it sees the wrong thread as the main thread.

2019-06-27 Thread Eric Snow
Eric Snow added the comment: Note that in Python 3.7 we consolidated a bunch of the global runtime state. The "main_thread" static in ceval.c moved to the internal struct _PyRuntimestate and in 3.7 it is accessible as _Runtime.ceval.pending.main_thread (but only if you build with Py_BUILD_C

[issue37416] If threading is not imported from the main thread it sees the wrong thread as the main thread.

2019-06-27 Thread Eric Snow
Eric Snow added the comment: FWIW, this might also have implications for thread shutdown during runtime/interpreter finalization. -- nosy: +vstinner ___ Python tracker ___ __

[issue35121] Cookie domain check returns incorrect results

2019-06-27 Thread Riccardo Schirone
Riccardo Schirone added the comment: Did anybody request a CVE for this issue? I think it deserves one as it is a security issue and it may leak cookies to wrong domains. Does anybody have anything against assigning a CVE to this issue? If not, I would try to get one from MITRE. --

[issue35121] Cookie domain check returns incorrect results

2019-06-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I also reported it to secur...@python.org . Please check with them too to see if there is a CVE request already made. Thanks. -- ___ Python tracker __

[issue37416] If threading is not imported from the main thread it sees the wrong thread as the main thread.

2019-06-27 Thread Pavel Minaev
Pavel Minaev added the comment: Debuggers will have to work around this in past Python versions that they support (which still includes Python 2 for pretty much all of them), so this is solely about resolving the inconsistency for the future. No point rushing it for 3.8 specifically. (The m

[issue37420] os.sched_setaffinity does not handle errors during iteration.

2019-06-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +14241 pull_request: https://github.com/python/cpython/pull/14425 ___ Python tracker ___ __

[issue37420] os.sched_setaffinity does not handle errors during iteration.

2019-06-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 45a30af109f69a81576b87ea775863ba12d55316 by Benjamin Peterson (Brandt Bucher) in branch 'master': closes bpo-37420: Handle errors during iteration in os.sched_setaffinity. (GH-14414) https://github.com/python/cpython/commit/45a30af109f69a815

[issue37420] os.sched_setaffinity does not handle errors during iteration.

2019-06-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +14242 pull_request: https://github.com/python/cpython/pull/14426 ___ Python tracker ___ __

[issue37425] Using Pyinstaller with (Anaconda) Python 3.7.3 needs PyQt5 even if not imported in code

2019-06-27 Thread Sameer Bobade
Sameer Bobade added the comment: PyQt5 was installed when trying to make exe with Python 3.7.3 because without it pyinstaller will fail to produce output. Added log without PyQt5 & Python 3.7.3 which fails to produce output. Maybe this is issue of Matplotlib then? Not sure if versions are cha

[issue37430] range is not a built-in function

2019-06-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: I presume you are referring to 8.3 of the language reference https://docs.python.org/3/reference/compound_stmts.html#the-for-statement which has "the built-in function range()". Types/classes *are* functions, which is why dist, list, range, etc are listed in "

[issue37420] os.sched_setaffinity does not handle errors during iteration.

2019-06-27 Thread miss-islington
miss-islington added the comment: New changeset 65e187239a6feb09840ed9c2ebee51ed151e690d by Miss Islington (bot) in branch '3.7': closes bpo-37420: Handle errors during iteration in os.sched_setaffinity. (GH-14414) https://github.com/python/cpython/commit/65e187239a6feb09840ed9c2ebee51ed151e

[issue37422] Documentation on the change of __path__ in Python 3

2019-06-27 Thread Jim Li
Jim Li added the comment: Hi Eric, Sorry for the late reply. I think I did not accurately describe the issue at all. As a minimal example, set up two virtual environments, one from 2.7.x, one from 3.7.2. When you are in the virtual environment, do - pip install protobuf==3.3.0 - python (to

[issue37425] Using Pyinstaller with (Anaconda) Python 3.7.3 needs PyQt5 even if not imported in code

2019-06-27 Thread Steve Dower
Steve Dower added the comment: In any case, it's definitely pyinstaller and not CPython. Please report it on their issue tracker. -- status: open -> closed ___ Python tracker ___

[issue37420] os.sched_setaffinity does not handle errors during iteration.

2019-06-27 Thread miss-islington
miss-islington added the comment: New changeset 6fbed5350c786ab88868925d67f59e19d0ab841c by Miss Islington (bot) in branch '3.8': closes bpo-37420: Handle errors during iteration in os.sched_setaffinity. (GH-14414) https://github.com/python/cpython/commit/6fbed5350c786ab88868925d67f59e19d0ab

[issue37431] test_asyncio: test_start_tls_server_1() failed on ARMv7 Debian buster 3.7

2019-06-27 Thread STINNER Victor
New submission from STINNER Victor : The test failed but then passed when run again. See also bpo-35998 "test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29" and bpo-35031 "test_asyncio test_start_tls_server_1 fails in AMD64 FreeBSD CURRENT buildbots" https://buildbot.python.or

[issue37422] Documentation on the change of __path__ in Python 3

2019-06-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2019-06-27 Thread Inada Naoki
Inada Naoki added the comment: New changeset 21cfae107e410bf4b0ab3c142ca4449bc33290f5 by Inada Naoki in branch 'master': bpo-30345: travis: use -Og with --with-pydebug (GH-14423) https://github.com/python/cpython/commit/21cfae107e410bf4b0ab3c142ca4449bc33290f5 -- __

[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2019-06-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +14243 pull_request: https://github.com/python/cpython/pull/14427 ___ Python tracker ___ __

[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2019-06-27 Thread Inada Naoki
Inada Naoki added the comment: I think test_gdb is useful for 3.8 branch because some PEP 590 relating changes will be backported to it. But I don't know how test_gdb is useful for older branches. -- ___ Python tracker

[issue37369] Issue with pip in venv on Powershell in Windows

2019-06-27 Thread Steve Dower
Steve Dower added the comment: So I have a fix for 3.9 for this, I believe (involves making sys.base_executable configurable via PyConfig and overriding it and config->home when we know we're inside an app container). For 3.8 I can apply the same fix and make sys.base_executable public, or k

[issue37369] Issue with pip in venv on Powershell in Windows

2019-06-27 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +14244 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14428 ___ Python tracker ___

[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2019-06-27 Thread miss-islington
miss-islington added the comment: New changeset 60f24b23bf6ac485d195bb904635bdc3fe646b07 by Miss Islington (bot) in branch '3.8': bpo-30345: travis: use -Og with --with-pydebug (GH-14423) https://github.com/python/cpython/commit/60f24b23bf6ac485d195bb904635bdc3fe646b07 -- nosy: +mis

[issue37390] Generate table of audit events for docs

2019-06-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +14245 pull_request: https://github.com/python/cpython/pull/14429 ___ Python tracker ___ __

[issue37390] Generate table of audit events for docs

2019-06-27 Thread Steve Dower
Steve Dower added the comment: New changeset 44f91c388a6f4da9ed3300df32ca290b8aa104ea by Steve Dower in branch 'master': bpo-37390: Add audit event table to documentations (GH-14406) https://github.com/python/cpython/commit/44f91c388a6f4da9ed3300df32ca290b8aa104ea -- __

[issue37432] Fix a small param type allocation.rst

2019-06-27 Thread hai shi
Change by hai shi : -- assignee: docs@python components: Documentation nosy: docs@python, shihai1991 priority: normal severity: normal status: open title: Fix a small param type allocation.rst type: behavior ___ Python tracker

[issue37432] Fix a small param type in allocation.rst

2019-06-27 Thread hai shi
Change by hai shi : -- title: Fix a small param type allocation.rst -> Fix a small param type in allocation.rst ___ Python tracker ___

[issue37432] Fix a small param type in allocation.rst

2019-06-27 Thread SilentGhost
New submission from SilentGhost : Could you please elaborate on what exactly needs fixing? -- nosy: +SilentGhost ___ Python tracker ___

[issue37432] Fix a small param type in allocation.rst

2019-06-27 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +14246 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14430 ___ Python tracker ___

[issue37432] Fix a small param type in allocation.rst

2019-06-27 Thread hai shi
hai shi added the comment: Due to https://github.com/python/cpython/blob/master/Include/objimpl.h#L102, `void PyObject_Del(PyObject *op)` should be `void PyObject_Del(void *op)` -- ___ Python tracker ___

[issue37390] Generate table of audit events for docs

2019-06-27 Thread miss-islington
miss-islington added the comment: New changeset 4fee28aa42dbac7f08a6d2829546b7d8e848034d by Miss Islington (bot) in branch '3.8': bpo-37390: Add audit event table to documentations (GH-14406) https://github.com/python/cpython/commit/4fee28aa42dbac7f08a6d2829546b7d8e848034d -- nosy:

[issue37390] Generate table of audit events for docs

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

[issue37433] syntax error in f-string in multiline string produces ~40k spaces of output

2019-06-27 Thread Anthony Sottile
New submission from Anthony Sottile : For instance this file: foo = f"""{} foo""" $ python3.8 --version --version Python 3.8.0b1 (default, Jun 6 2019, 03:44:52) [GCC 7.4.0] $ python3.8 t.py | wc -c File "t.py", line 1 <> ^ SyntaxError: f-string: empty

[issue37434] Segfault in typeobject.c at _PyObject_GC_UNTRACK(type)

2019-06-27 Thread Tim Lusk
New submission from Tim Lusk : I'm working on porting an application from Python 3.6.8 to 3.7.3 and am running into this segfault. I'm not able to pin point exactly what Python code is causing this as it's a very large enterprise application and I can't seem to pinpoint exactly where this is c

[issue37433] syntax error in f-string in multiline string produces ~40k spaces of output

2019-06-27 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue37434] Segfault in typeobject.c at _PyObject_GC_UNTRACK(type)

2019-06-27 Thread Tim Lusk
Tim Lusk added the comment: Alright I was finally able to reproduce the issue with a small code snip and capture the stack in gdb. It looks like the issue has something to do with an exception thrown while importing a class (and possibly only when the class is a c_ext, but I haven't confirme

[issue37434] Segfault in typeobject.c at _PyObject_GC_UNTRACK(type)

2019-06-27 Thread Timothy Lusk
Timothy Lusk added the comment: I've realized this might not be Python 3.7 specific, the reason protobuf is throwing an exception during import in my above example (as well as in our application) is because it's throwing a deprecation warning that was only introduced in 3.7. Python 3.6 do

[issue37433] syntax error in f-string in multiline string produces ~40k spaces of output

2019-06-27 Thread Anthony Sottile
Anthony Sottile added the comment: I can also trigger this with: ``` 1+ """\q """ ``` And `python -Werror` so it seems not necessarily related to fstrings -- ___ Python tracker ___

[issue37435] builtin map iterator should provide __length_hint__

2019-06-27 Thread Nicholas Musolino
New submission from Nicholas Musolino : The builtin `map` function takes one or more user-supplied iterators, and returns an iterator. When all the user-supplied iterator arguments to `map` provide a valid length hint (according to the PEP 424 length hint protocol), the iterator returned by

[issue37433] syntax error in f-string in multiline string produces ~40k spaces of output

2019-06-27 Thread Anthony Sottile
Anthony Sottile added the comment: Debugging further, there's a token with a `multi_line_start` pointing at uninitialized memory -- let's see if I can't track down where that gets set and fix it :) -- ___ Python tracker

[issue36511] Add Windows ARM32 buildbot

2019-06-27 Thread Paul Monson
Change by Paul Monson : -- pull_requests: +14247 pull_request: https://github.com/python/cpython/pull/14431 ___ Python tracker ___ _

[issue37435] builtin map iterator should provide __length_hint__

2019-06-27 Thread Nicholas Musolino
Change by Nicholas Musolino : -- keywords: +patch pull_requests: +14248 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14432 ___ Python tracker __

[issue37435] builtin map iterator should provide __length_hint__

2019-06-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a duplicate of issue26828. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python

[issue37201] fix test_distutils failures for Windows ARM64

2019-06-27 Thread Paul Monson
Change by Paul Monson : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

[issue37236] fix test_complex for Windows arm64

2019-06-27 Thread Paul Monson
Change by Paul Monson : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

[issue36941] Windows build changes for Windows ARM64

2019-06-27 Thread Paul Monson
Change by Paul Monson : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

[issue36942] Windows code changes for Windows ARM64

2019-06-27 Thread Paul Monson
Change by Paul Monson : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

  1   2   >