[issue13487] inspect.getmodule fails when module imports change sys.modules

2020-03-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +18145 pull_request: https://github.com/python/cpython/pull/18788 ___ Python tracker ___ __

[issue13487] inspect.getmodule fails when module imports change sys.modules

2020-03-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 10.0 -> 11.0 pull_requests: +18144 pull_request: https://github.com/python/cpython/pull/18787 ___ Python tracker ___

[issue13487] inspect.getmodule fails when module imports change sys.modules

2020-03-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 85cf1d514b84dc9a4bcb40e20a12e1d82ff19f20 by Gregory P. Smith in branch 'master': bpo-13487: Use sys.modules.copy() in inspect.getmodule() for thread safety. (GH-18786) https://github.com/python/cpython/commit/85cf1d514b84dc9a4bcb40e20a12e1d82

[issue13487] inspect.getmodule fails when module imports change sys.modules

2020-03-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: Testing by changing list(sys.modules.items()) to sys.modules.copy().items() internally with a large integration test that was reliably flaky on this line before shows that the .copy().items() worked. The test is reliable again. So I've gone ahead and push

[issue13487] inspect.getmodule fails when module imports change sys.modules

2020-03-04 Thread miss-islington
miss-islington added the comment: New changeset a12381233a243ba7d5151ebf060feb57dd540bef by Miss Islington (bot) in branch '3.7': bpo-13487: Use sys.modules.copy() in inspect.getmodule() for thread safety. (GH-18786) https://github.com/python/cpython/commit/a12381233a243ba7d5151ebf060feb57dd

[issue13487] inspect.getmodule fails when module imports change sys.modules

2020-03-04 Thread miss-islington
miss-islington added the comment: New changeset 6b452ff97f70eca79ab956987cc04b6586feca00 by Miss Islington (bot) in branch '3.8': bpo-13487: Use sys.modules.copy() in inspect.getmodule() for thread safety. (GH-18786) https://github.com/python/cpython/commit/6b452ff97f70eca79ab956987cc04b6586

[issue13487] inspect.getmodule fails when module imports change sys.modules

2020-03-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: If anyone else has a way to reproduce this issue, please run your tests with a 3.7/3.8/3.9 interpreter with the fix I committed applied and report back if you still see this failure on that line. I believe this to be fixed based on my own testing so I am c

[issue3548] subprocess.pipe function

2020-03-04 Thread Mike Frysinger
Mike Frysinger added the comment: this would have been nice to have more than once in my personal projects, and in build/infra tooling for Chromium OS. our alternatives so far have been the obvious ones: use subprocess.run to capture & return the output, then manually feed that as the input

[issue39857] subprocess.run: add an extra_env kwarg to complement existing env kwarg

2020-03-04 Thread Mike Frysinger
New submission from Mike Frysinger : a common idiom i run into is wanting to add/set one or two env vars when running a command via subprocess. the only thing the API allows currently is inherting the current environment, or specifying the complete environment. this means a lot of copying &

[issue39762] PyLong_AS_LONG missing from longobject.h

2020-03-04 Thread Petr Viktorin
Petr Viktorin added the comment: No, in Python 2 the PyInt object (`int` in Python 2) always did fit into a C long -- that was the underlying storage. If it didn't fit, a PyLong object (`long` in Python 2) was used. Python 3 doesn't have PyInt, it only has PyLong (`int` in Python 3). --

[issue39844] IDLE 3.8.2 on MacOS 10.15.3 Launches to Black Windows

2020-03-04 Thread Jacin Ferreira
Jacin Ferreira added the comment: Screenshot showing results of turtle demo -- Added file: https://bugs.python.org/file48953/Screen Shot 2020-03-04 at 7.39.02 PM.png ___ Python tracker _

[issue39856] glob : some 'unix style' glob items are not supported

2020-03-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This seems to be similar to issue9584. Below are the results in my zsh and bash in Mac. bash bash-3.2$ cd /tmp/ bash-3.2$ ls *py hello_1.py hello_2.py hello_3.py bash-3.2$ ls hell*{1-2}.* ls: hell*{1-2}.*: No such file or directory bash-3.

[issue39858] bitfield layout wrong in ctypes

2020-03-04 Thread Sam Price
New submission from Sam Price : if 8 1 byte fields are included in a ctype field, it allows an extra byte to be included in the packing when there is no room left for the next field. If I put the bitfields in a child structure then I get expected results. In [35]: run ctypeSizeTest.py Size i

[issue39573] Make PyObject an opaque structure in the limited C API

2020-03-04 Thread Andy Lester
Change by Andy Lester : -- pull_requests: +18146 pull_request: https://github.com/python/cpython/pull/18789 ___ Python tracker ___ _

[issue39859] set_herror should not throw away constness of hstrerror

2020-03-04 Thread Andy Lester
New submission from Andy Lester : set_herror builds a string by calling hstrerror but downcasts its return value to char *. It should be const char *. -- components: Interpreter Core messages: 363418 nosy: petdance priority: normal severity: normal status: open title: set_herror shoul

[issue39859] set_herror should not throw away constness of hstrerror

2020-03-04 Thread Andy Lester
Change by Andy Lester : -- keywords: +patch pull_requests: +18147 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18790 ___ Python tracker ___

[issue39851] tarfile: Exception ignored in (... stdout ...) BrokenPipeError

2020-03-04 Thread Dong-hee Na
Dong-hee Na added the comment: I will take look at this issue :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

<    1   2