[issue39917] new_compiler() called 2nd time causes error

2020-03-09 Thread Todd Levi
New submission from Todd Levi : Action: Run the following command in py36, py37, and py3 for package uvloop python setup.py build_ext --inline bdist_wheel Expected behavior: The package is built and bundled as a wheel. Observed behavior: The build fails at the bdist_wheel stage with the fol

[issue39918] random.Random(False) weird error

2020-03-09 Thread Jerry James
New submission from Jerry James : Python 3.8: >>> import random >>> r = random.Random(False) >>> r Python 3.9 alpha 4: >>> import random >>> r = random.Random(False) Traceback (most recent call last): File "", line 1, in File "/usr/lib64/python3.9/random.py", line 100, in __init__ s

[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 111e4ee52a1739e7c7221adde2fc364ef4954af2 by Victor Stinner in branch 'master': bpo-39877: Py_Initialize() pass tstate to PyEval_InitThreads() (GH-18884) https://github.com/python/cpython/commit/111e4ee52a1739e7c7221adde2fc364ef4954af2

[issue38870] Expose ast.unparse in the ast module

2020-03-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset e7cab7f780ac253999512ee86374fc3454342811 by Batuhan Taşkaya in branch 'master': bpo-38870: Simplify sequence interleaves in ast.unparse (GH-17892) https://github.com/python/cpython/commit/e7cab7f780ac253999512ee86374fc3454342811

[issue39917] new_compiler() called 2nd time causes error

2020-03-09 Thread Jeremy Kloth
Change by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue39918] random.Random(False) weird error

2020-03-09 Thread Miro Hrončok
Miro Hrončok added the comment: Possibly related to https://bugs.python.org/issue32554 https://github.com/python/cpython/pull/15382 Deprecate hashing arbitrary types in random.seed() -- nosy: +hroncok, vstinner ___ Python tracker

[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18242 pull_request: https://github.com/python/cpython/pull/18885 ___ Python tracker ___ __

[issue39918] random.Random(False) weird error

2020-03-09 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue39852] IDLE: Goto should remove selection and update the status bar

2020-03-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: https://github.com/python/devguide/issues/577 -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue27115] IDLE goto should use query.Query subclass

2020-03-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 363fab83b8a0e6d924c7a7c577feec6a2812bb8c by Terry Jan Reedy in branch 'master': bpo-27115: Use Query subclass for IDLE editor Goto (GH-18871) https://github.com/python/cpython/commit/363fab83b8a0e6d924c7a7c577feec6a2812bb8c -- ___

[issue27115] IDLE goto should use query.Query subclass

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

[issue27115] IDLE goto should use query.Query subclass

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

[issue39918] random.Random(False) weird error

2020-03-09 Thread Mark Dickinson
Mark Dickinson added the comment: The lines here look odd to me: https://github.com/python/cpython/blob/363fab83b8a0e6d924c7a7c577feec6a2812bb8c/Modules/_randommodule.c#L290-L291 args[0] = arg; n = PyObject_Vectorcall(_randomstate_global->Long___abs__, args, 0,

[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 85f5a69ae1541271286bb0f0e0303aabf792dd5c by Victor Stinner in branch 'master': bpo-39877: Refactor take_gil() function (GH-18885) https://github.com/python/cpython/commit/85f5a69ae1541271286bb0f0e0303aabf792dd5c -- ___

[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18245 pull_request: https://github.com/python/cpython/pull/1 ___ Python tracker ___ __

[issue39869] Improve Instance Objects tutorial documentation

2020-03-09 Thread Antoine Wecxsteen
Change by Antoine Wecxsteen : -- keywords: +patch nosy: +awecx nosy_count: 2.0 -> 3.0 pull_requests: +18246 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/18889 ___ Python tracker

[issue36287] Make ast.dump() not output optional default fields

2020-03-09 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue39832] Modules with decomposable characters in module name not found on macOS

2020-03-09 Thread Brett Cannon
Brett Cannon added the comment: The import system makes no attempt at normalizing Unicode strings for path comparisons. One would have to probably update FileFinder (https://github.com/python/cpython/blob/master/Lib/importlib/_bootstrap_external.py#L1392) somehow (assuming the appropriate co

[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18247 pull_request: https://github.com/python/cpython/pull/18890 ___ Python tracker ___ __

[issue36287] Make ast.dump() not output optional default fields

2020-03-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b7e9525f9c7ef02a1d2ad8253afdeb733b0951d4 by Serhiy Storchaka in branch 'master': bpo-36287: Make ast.dump() not output optional fields and attributes with default values. (GH-18843) https://github.com/python/cpython/commit/b7e9525f9c7ef02a1d2

[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9229105f19705f72e553cf066751ac47c7b7 by Victor Stinner in branch 'master': bpo-39877: take_gil() checks tstate_must_exit() twice (GH-18890) https://github.com/python/cpython/commit/9229105f19705f72e553cf066751ac47c7b7 -- _

[issue39199] Improve the AST documentation

2020-03-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: As you worked much with ast.dump(), what multi-line formatting do you prefer, the current Module( body=[ If( test=Name(id='x', ctx=Load()), body=[ Expr(

[issue28577] ipaddress.ip_network(...).hosts() returns nothing for an IPv4 /32

2020-03-09 Thread Ethan Furman
Ethan Furman added the comment: New changeset 8e9c47a947954c997d4b725f4551d50a1d896722 by Pete Wicken in branch 'master': bpo-28577: Special case added to IP v4 and v6 hosts for /32 and /128 networks (GH-18757) https://github.com/python/cpython/commit/8e9c47a947954c997d4b725f4551d50a1d896722

[issue28577] ipaddress.ip_network(...).hosts() returns nothing for an IPv4 /32

2020-03-09 Thread Ethan Furman
Change by Ethan Furman : -- versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue19466] Clear state of threads earlier in Python shutdown

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9ad58acbe8b90b4d0f2d2e139e38bb5aa32b7fb6 by Victor Stinner in branch 'master': bpo-19466: Py_Finalize() clears daemon threads earlier (GH-18848) https://github.com/python/cpython/commit/9ad58acbe8b90b4d0f2d2e139e38bb5aa32b7fb6 --

[issue19466] Clear state of threads earlier in Python shutdown

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: I merged more changes in bpo-39877 which made possible to finally fix this issue. -- components: +Interpreter Core resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 -Python 3.4

[issue39763] distutils.spawn should use subprocess (hang in parallel builds on QNX)

2020-03-09 Thread Michael Felt
Michael Felt added the comment: Comes further. The build finishes, but socket and asyncio are missing... At least a build will proceed, and I can look into this new, perhaps unrelated issue re: socket later. *** WARNING: renaming "_asyncio" since importing it failed: No module named '_socke

[issue39763] distutils.spawn should use subprocess (hang in parallel builds on QNX)

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset add946855ad59c8f5c698aa0891d7e44f018 by Victor Stinner in branch 'master': bpo-39763: Add _bootsubprocess to build Python on AIX (GH-18872) https://github.com/python/cpython/commit/add946855ad59c8f5c698aa0891d7e44f018 -- _

[issue39199] Improve the AST documentation

2020-03-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The first one looks on first inspection "cleaner" but then I tried to look at a random closed bracket/parenthesis like the ones in value=Constant(value=Ellipsis))])])], and trying to guess where that closes an

[issue39763] distutils.spawn should use subprocess (hang in parallel builds on QNX)

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: > At least a build will proceed, and I can look into this new, perhaps > unrelated issue re: socket later. > *** WARNING: renaming "_asyncio" since importing it failed: No module named > '_socket' Do you see any error when the _socket module is built? Please

[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18248 pull_request: https://github.com/python/cpython/pull/18891 ___ Python tracker ___ __

[issue39919] C extension code reliant on static flags/behavior with PY_DEBUG (Py_SAFE_DOWNCAST, method flags) could potentially leverage _Static_assert

2020-03-09 Thread Enji Cooper
New submission from Enji Cooper : Looking at Py_SAFE_DOWNCAST, it seems that the code could (in theory) leverage _Static_assert on C11 capable compilers [1]. Looking at some other code APIs, like module initialization with METH_VARARGS, etc, there are ways to determine whether or not the valu

[issue37776] Test Py_Finalize() from a subinterpreter

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-38865. -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue24415] SIGINT always reset to SIG_DFL by Py_Finalize()

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: I mark this issue as a duplicate of bpo-30654. If it's not the case, please add a comment/reopen the issue. -- nosy: +vstinner resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker

[issue30654] signal module always overwrites SIGINT on interpreter shutdown

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-24415 as duplicate of this issue. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue36818] Add PyInterpreterState.runtime.

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: I added PyInterpreterState.runtime in bpo-36710: commit 01b1cc12e7c6a3d6a3d27ba7c731687d57aae92a Author: Victor Stinner Date: Wed Nov 20 02:27:56 2019 +0100 bpo-36710: Add PyInterpreterState.runtime field (GH-17270) Add PyInterpreterState.runt

[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: > The problem is that Python already freed the memory of all PyThreadState > structures, whereas PyEval_RestoreThread(tstate) dereferences tstate to get > the _PyRuntimeState structure: Funny/not funny, bpo-36818 added a similar bug with commit 396e0a8d9dc6

[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: I tested (run multiple times) daemon_threads_exit.py with slow_exit.patch: no crash. I also tested (run multiple times) stress.py + sleep_at_exit.patch of bpo-37135: no crash. And I tested asyncio_gc.py of bpo-19466: no crash neither. Python finalization

[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 175a704abfcb3400aaeb66d4f098d92ca7e30892 by Victor Stinner in branch 'master': bpo-39877: PyGILState_Ensure() don't call PyEval_InitThreads() (GH-18891) https://github.com/python/cpython/commit/175a704abfcb3400aaeb66d4f098d92ca7e30892

[issue37127] Handling pending calls during runtime finalization may cause problems.

2020-03-09 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue27115] IDLE goto should use query.Query subclass

2020-03-09 Thread miss-islington
miss-islington added the comment: New changeset cadfe52a006abb46ea0948c6ae2e006064b4a091 by Miss Islington (bot) in branch '3.8': bpo-27115: Use Query subclass for IDLE editor Goto (GH-18871) https://github.com/python/cpython/commit/cadfe52a006abb46ea0948c6ae2e006064b4a091 -- _

[issue27115] IDLE goto should use query.Query subclass

2020-03-09 Thread miss-islington
miss-islington added the comment: New changeset f8345358bcdd276eb470778daf05d343da9f1290 by Miss Islington (bot) in branch '3.7': bpo-27115: Use Query subclass for IDLE editor Goto (GH-18871) https://github.com/python/cpython/commit/f8345358bcdd276eb470778daf05d343da9f1290 -- _

[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18249 pull_request: https://github.com/python/cpython/pull/18892 ___ Python tracker ___ __

[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset b4698ecfdb526e0a9f5fa6ef0f8e1d8cca500203 by Victor Stinner in branch 'master': bpo-39877: Deprecate PyEval_InitThreads() (GH-18892) https://github.com/python/cpython/commit/b4698ecfdb526e0a9f5fa6ef0f8e1d8cca500203 -- _

[issue39920] Pathlib path methods do not work with Window Dos devices

2020-03-09 Thread Charles Machalow
New submission from Charles Machalow : I ran the following as admin in the Python interpreter (on Windows): >>> d = pathlib.Path(r'\\.\PHYSICALDRIVE0') >>> print(d) \\.\PHYSICALDRIVE0\ >>> d.exists() Traceback (most recent call last): File "", line 1, in File "C:\Python37\lib\pathlib.py",

[issue27115] IDLE goto should use query.Query subclass

2020-03-09 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue39921] json module install error i was use windows 10 pro 64 bit, pls give solutions to rectify this issue

2020-03-09 Thread Mageshkumar
New submission from Mageshkumar : C:\WINDOWS\system32>pip install jsonlib Collecting jsonlib Using cached jsonlib-1.6.1.tar.gz (43 kB) Installing collected packages: jsonlib Running setup.py install for jsonlib ... error ERROR: Command errored out with exit status 1: command: 'c:

[issue39921] json module install error i was use windows 10 pro 64 bit, pls give solutions to rectify this issue

2020-03-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The tracker is for issues related to CPython. It seems like this is a problem with jsonlib. I would suggest following up on their tracker or other forums. -- nosy: +xtreak ___ Python tracker

[issue39922] Remove unused args in Python/compile.c

2020-03-09 Thread Andy Lester
New submission from Andy Lester : These functions have unnecessary args that can be removed: * binop * compiler_add_o * compiler_next_instr * inplace_binop -- components: Interpreter Core messages: 363799 nosy: petdance priority: normal severity: normal status: open title: Remove unuse

[issue39896] Const args and remove unused args in Python/compile.c

2020-03-09 Thread Andy Lester
Andy Lester added the comment: Replaced by https://bugs.python.org/issue39922 -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39921] json module install error i was use windows 10 pro 64 bit, pls give solutions to rectify this issue

2020-03-09 Thread Mageshkumar
Mageshkumar added the comment: what i do now *Thanks & Regards* *M.Mageshkumar* On Tue, Mar 10, 2020 at 8:37 AM Karthikeyan Singaravelan < rep...@bugs.python.org> wrote: > > Karthikeyan Singaravelan added the comment: > > The tracker is for issues related to CPython. It seems like this is

[issue39922] Remove unused args in Python/compile.c

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

[issue39923] Command errored out with exit status 1: while jsonlib

2020-03-09 Thread Mageshkumar
New submission from Mageshkumar : hi i have detail issue of while i was install jsonlib, pls kindly provide the solutions *Thanks & Regards* *M.Mageshkumar* -- files: json error.txt messages: 363802 nosy: magesh priority: normal severity: normal status: open title: Command errored out w

[issue39923] Command errored out with exit status 1: while jsonlib

2020-03-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Please stop creating duplicate issues. You have already reported it at https://bugs.python.org/issue39921. There is also a stack overflow question on this https://stackoverflow.com/questions/60610913/json-module-install-error-i-was-use-windows-10-p

[issue39832] Modules with decomposable characters in module name not found on macOS

2020-03-09 Thread Norbert
Norbert added the comment: Yes, if the Python runtime caches file names and determines based on the cache whether a file exists, then it needs to normalize both the file names in the cache and the name of the file it’s looking for. As far as I know, both HFS and APFS do this themselves when a

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

2020-03-09 Thread Mike Frysinger
Mike Frysinger added the comment: personally i still like having the extra_env setting explicitly broken out, but i agree that those operators help ease the majority of the pain. i hadn't come across them before as they aren't in Python 2. i wouldn't be upset if people declined the FR consi

[issue39923] Command errored out with exit status 1: while jsonlib

2020-03-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> json module install error i was use windows 10 pro 64 bit, pls give solutions to rectify this issue ___ Python tracker

[issue39921] json module install error i was use windows 10 pro 64 bit, pls give solutions to rectify this issue

2020-03-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Py

<    1   2