[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

Re: How does the super type present itself and do lookups?

2020-03-09 Thread Adam Preble
On Monday, March 9, 2020 at 9:31:45 PM UTC-5, Souvik Dutta wrote: > This should be what you are looking for. > https://python-reference.readthedocs.io/en/latest/docs/functions/super.html I'm not trying to figure out how the super() function works, but rather the anatomy of the object is returns.

[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

[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

[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 ___

[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

[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

[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

[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

[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:

Re: How does the super type present itself and do lookups?

2020-03-09 Thread Souvik Dutta
This should be what you are looking for. https://python-reference.readthedocs.io/en/latest/docs/functions/super.html On Tue, 10 Mar, 2020, 5:50 am Adam Preble, wrote: > On Wednesday, March 4, 2020 at 11:13:20 AM UTC-6, Adam Preble wrote: > > Stuff > > I'm speculating that the stuff I don't see

Re: Lock acquisition by the same thread - deadlock protection

2020-03-09 Thread Souvik Dutta
Sooyyy it was not meant to you On Tue, 10 Mar, 2020, 8:00 am Souvik Dutta, wrote: > This should be what you need. > https://python-reference.readthedocs.io/en/latest/docs/functions/super.html > > On Tue, 10 Mar, 2020, 7:02 am Yonatan Goldschmidt, < > yon.goldschm...@gmail.com> wrote: > >> I

Re: Lock acquisition by the same thread - deadlock protection

2020-03-09 Thread Souvik Dutta
This should be what you need. https://python-reference.readthedocs.io/en/latest/docs/functions/super.html On Tue, 10 Mar, 2020, 7:02 am Yonatan Goldschmidt, < yon.goldschm...@gmail.com> wrote: > I recently debugged a program hang, eventually finding out it's a deadlock > of a single thread, >

Lock acquisition by the same thread - deadlock protection

2020-03-09 Thread Yonatan Goldschmidt
I recently debugged a program hang, eventually finding out it's a deadlock of a single thread, resulting from my usage of 2 libraries. One of them - call it library A - is reentrant & runs code in GC finalizers, while the other - library B - is not reentrant at all. Library B held one of its

[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 ___

[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

[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 --

Re: How does the super type present itself and do lookups?

2020-03-09 Thread Adam Preble
On Wednesday, March 4, 2020 at 11:13:20 AM UTC-6, Adam Preble wrote: > Stuff I'm speculating that the stuff I don't see when poking are reserved slots. I figured out how much of a thing that is when I was digging around for how classes know how to construct themselves. I managed to figure out

[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 ___

[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 --

[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 --

[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:

[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

[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: > 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

[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

[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

[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

[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

[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

[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 ___

[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?

[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

[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 --

[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

[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 --

[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:

[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)

[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(

[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 --

[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)

[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 Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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

[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

[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 ___

[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 --

[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,

[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 ___

[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 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 --

[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

[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:

[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 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

[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:

[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

[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

[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__

[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

[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: +18241 pull_request: https://github.com/python/cpython/pull/18884 ___ 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 3225b9f9739cd4bcca372d0fa939cea1ae5c6402 by Victor Stinner in branch 'master': bpo-39877: Remove useless PyEval_InitThreads() calls (GH-18883) https://github.com/python/cpython/commit/3225b9f9739cd4bcca372d0fa939cea1ae5c6402 --

Re: Error while installing a python code

2020-03-09 Thread Barry Scott
> On 9 Mar 2020, at 14:18, Tim Ko wrote: > > Hello, > > I am trying to install a custom Python code but ran into an error. The error > presumably associated with cython. I tried a different compiler since Intel > compiler often crashes when using cython, but couldn't get it working. > >

[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: +18240 pull_request: https://github.com/python/cpython/pull/18883 ___ Python tracker ___

Re: Python download for windows

2020-03-09 Thread Terry Reedy
On 3/9/2020 6:16 AM, Mike Dewhirst wrote: Python isn't an ordinary program as understood by (most) Windows users. It needs a command-prompt in which to run interactively. Or, one can click the lower left Windows Start icon, find and click 'Python 3.8' (for instance) under 'P', and select

[issue39907] `pathlib.Path.iterdir()` wastes memory by using `os.listdir()` rather than `os.scandir()`

2020-03-09 Thread Barney Gale
Barney Gale added the comment: Thanks Rémi and Serhiy! Closing this ticket as the patch doesn't provide any sort of improvement. -- ___ Python tracker ___

[issue39907] `pathlib.Path.iterdir()` wastes memory by using `os.listdir()` rather than `os.scandir()`

2020-03-09 Thread Barney Gale
Change by Barney Gale : -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36184] test_gdb.test_threads() is specific to _POSIX_THREADS, fail on FreeBSD

2020-03-09 Thread STINNER Victor
Change by STINNER Victor : -- keywords: -easy resolution: -> fixed stage: patch review -> resolved status: open -> closed title: [EASY] test_gdb.test_threads() is specific to _POSIX_THREADS, fail on FreeBSD -> test_gdb.test_threads() is specific to _POSIX_THREADS, fail on FreeBSD

[issue36184] [EASY] test_gdb.test_threads() is specific to _POSIX_THREADS, fail on FreeBSD

2020-03-09 Thread miss-islington
miss-islington added the comment: New changeset 5854d451cb35ac38bc07b95afeb077e8a35d5c7d by Miss Islington (bot) in branch '3.8': bpo-36184: Port python-gdb.py to FreeBSD (GH-18873) https://github.com/python/cpython/commit/5854d451cb35ac38bc07b95afeb077e8a35d5c7d --

[issue36184] [EASY] test_gdb.test_threads() is specific to _POSIX_THREADS, fail on FreeBSD

2020-03-09 Thread miss-islington
miss-islington added the comment: New changeset 1695836123609a8ae97f2cfbe180a028dcd650a3 by Miss Islington (bot) in branch '3.7': bpo-36184: Port python-gdb.py to FreeBSD (GH-18873) https://github.com/python/cpython/commit/1695836123609a8ae97f2cfbe180a028dcd650a3 --

[issue38249] Optimize out Py_UNREACHABLE in the release mode

2020-03-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset eebaa9bfc593d5a46b293c1abd929fbfbfd28199 by Serhiy Storchaka in branch 'master': bpo-38249: Expand Py_UNREACHABLE() to __builtin_unreachable() in the release mode. (GH-16329)

Re: Error while installing a python code

2020-03-09 Thread Dieter Maurer
Tim Ko wrote at 2020-3-9 07:18 -0700: >I am trying to install a custom Python code but ran into an error. The error >presumably associated with cython. I tried a different compiler since Intel >compiler often crashes when using cython, but couldn't get it working. Almost surely, the compiler is

[issue38249] Optimize out Py_UNREACHABLE in the release mode

2020-03-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36184] [EASY] test_gdb.test_threads() is specific to _POSIX_THREADS, fail on FreeBSD

2020-03-09 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +18238 pull_request: https://github.com/python/cpython/pull/18881 ___ Python tracker

[issue36184] [EASY] test_gdb.test_threads() is specific to _POSIX_THREADS, fail on FreeBSD

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

[issue36184] [EASY] test_gdb.test_threads() is specific to _POSIX_THREADS, fail on FreeBSD

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6d0ee60740f2862a878f009671b1aaa75aeb0c2a by Victor Stinner in branch 'master': bpo-36184: Port python-gdb.py to FreeBSD (GH-18873) https://github.com/python/cpython/commit/6d0ee60740f2862a878f009671b1aaa75aeb0c2a --

[issue39904] Move handling of one-argument call of type() from type.__new__() to type.__call__()

2020-03-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

Re: Please solve this problem

2020-03-09 Thread Grant Edwards
On 2020-03-09, David Raymond wrote: >> It was a problem and it was solved. >> Check the second or third e-mail in the thread. >> >> Thank you. > > The first email was blank, > > The second email was from the same person and just said "Rply if solved" > > The third was a sarcastic reply to the

[issue38643] Assertion failures when calling PyNumber_ToBase() with an invalid base

2020-03-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e5ccc94bbb153431698b2391df625e8d47a93276 by Serhiy Storchaka in branch 'master': bpo-38643: Raise SystemError instead of crashing when PyNumber_ToBase is called with invalid base. (GH-18863)

Re: Please solve this problem

2020-03-09 Thread Igor Korot
Hi, On Mon, Mar 9, 2020 at 11:56 AM David Raymond wrote: > > > It was a problem and it was solved. > > Check the second or third e-mail in the thread. > > > > Thank you. > > The first email was blank, > > The second email was from the same person and just said "Rply if solved" > > The third was

[issue39904] Move handling of one-argument call of type() from type.__new__() to type.__call__()

2020-03-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 413f01352a8268fb62bb47bde965462d7b82a06a by Serhiy Storchaka in branch 'master': bpo-39904: Move handling of one-argument call of type() from type.__new__() to type.__call__(). (GH-18852)

[issue34822] Simplify AST for slices

2020-03-09 Thread Guido van Rossum
Guido van Rossum added the comment: I'm going to review the actual code next. Regarding the omission of parentheses in various contexts, I am all for that, but I consider it a separate issue (as it only pertains to ast.unparse()). The fix in https://github.com/python/cpython/pull/17892

[issue39915] AsyncMock doesn't work with asyncio.gather

2020-03-09 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +lisroach, xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list

Re: Error while installing a python code

2020-03-09 Thread Dieter Maurer
Tim Ko wrote at 2020-3-9 07:18 -0700: >I am trying to install a custom Python code but ran into an error. The error >presumably associated with cython. I tried a different compiler since Intel >compiler often crashes when using cython, but couldn't get it working. Almost surely, the compiler is

[issue12782] Multiple context expressions do not support parentheses for continuation across lines

2020-03-09 Thread Guido van Rossum
Guido van Rossum added the comment: If we introduce a PEG-based parser, we can do this without hacking the tokenizer. See https://github.com/gvanrossum/pegen/issues/229 I'd propose to aim for Python 3.10 (if the PEG parser happens). -- nosy: +gvanrossum

[issue12782] Multiple context expressions do not support parentheses for continuation across lines

2020-03-09 Thread Guido van Rossum
Change by Guido van Rossum : -- versions: -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: > AttributeError: 'str' object has no attribute 'decode' Oops, it should now be fixed by my second commit. Please retry PR 18872. -- ___ Python tracker

[issue39907] `pathlib.Path.iterdir()` wastes memory by using `os.listdir()` rather than `os.scandir()`

2020-03-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Less reliable how? See issue39916. > so it looks like scandir as a small overhead when accumulating all results > and not using the extra info it returns. Try with larger directories. The difference may be not so small. $ python3 -m timeit -s 'from os

[issue39911] "AMD64 Windows7 SP1 3.x" buildbot doesn't build anymore

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: Ah, "x86 Windows7 3.x" worker has the same issue: https://buildbot.python.org/all/#/builders/150/builds/434 -- ___ Python tracker ___

[issue39911] "AMD64 Windows7 SP1 3.x" buildbot doesn't build anymore

2020-03-09 Thread Jeremy Kloth
Jeremy Kloth added the comment: Well, it only doesn't build on 3.9+ (master) due to not being supported going forward. The *buildmaster* needs to be fixed to stop submitting those jobs to unsupported platforms. We need to continue testing 3.7 and 3.8 on Win7 until they go EOL to ensure

[issue39916] More reliable use of scandir in Path.glob()

2020-03-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +18237 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18880 ___ Python tracker

[issue39916] More reliable use of scandir in Path.glob()

2020-03-09 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Path.glob() uses os.scandir() in the following code. entries = list(scandir(parent_path)) It properly closes the internal file descriptor opened by scandir() if success because it is automatically closed closed when the iterator is exhausted. But

RE: Please solve this problem

2020-03-09 Thread David Raymond
> It was a problem and it was solved. > Check the second or third e-mail in the thread. > > Thank you. The first email was blank, The second email was from the same person and just said "Rply if solved" The third was a sarcastic reply to the blank emails with just: "Solved, answer is:" The

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

2020-03-09 Thread Michael Felt
Michael Felt added the comment: Almost. The command is run, but not enough of the bootstrap is finished - it seems. File "/data/prj/python/git/python3-3.9/Lib/_aix_support.py", line 54, in _aix_bosmp64 out = out.decode("utf-8").strip().split(":") # type: ignore AttributeError: 'str'

Re: [Python-ideas] Re: Possible Addition to Python Language: Marked Sub-condition

2020-03-09 Thread David Mertz
This isn't a terrible use of the walrus operator either. if blue_20 := (color==BLUE and count==20) or red_5 := (color==RED and count%5==0) rotate_the_wheel() # Common to the two sub-conditions if blue_20: # First sub-condition set_signal() if red_5: # Second sub-condition

RE: Python download for windows

2020-03-09 Thread Mike Dewhirst
HilaryPython isn't an ordinary program as understood by (most) Windows users.It needs a command-prompt in which to run interactively. In other words, after successful installation, open a command prompt (aka DOS prompt) and type "python". It should open, announce itself and display its

[issue39915] AsyncMock doesn't work with asyncio.gather

2020-03-09 Thread Mads Sejersen
New submission from Mads Sejersen : When calling asyncio.gather the await_args_list is not correct. In the attached minimal example it contains only the latest call and not each of the three actual calls. Expected output: [call(0), call(1), call(2)] [call(1), call(2), call(3)] # or any

Re: Error while installing a python code

2020-03-09 Thread Souvik Dutta
I dont know if this will work. But still something is better than nothing. https://stackoverflow.com/questions/11094718/error-command-gcc-failed-with-exit-status-1-while-installing-eventlet I am not a "spoofer" in case you get any warning. On Mon, Mar 9, 2020, 7:54 PM Tim Ko wrote: > Hello, >

[issue39829] __len__ called twice in the list() constructor

2020-03-09 Thread Eric Snow
Eric Snow added the comment: I'm not opposed. :) I just don't want to impose on your time. -- assignee: -> pablogsal resolution: not a bug -> stage: resolved -> status: closed -> open ___ Python tracker

  1   2   >