[issue40526] documentation bad on asyncio

2020-05-05 Thread Kyle Stanley


Kyle Stanley  added the comment:

I presume this is referring to the following example on the first page of the 
docs:

```
import asyncio

async def main():
print('Hello ...')
await asyncio.sleep(1)
print('... World!')

# Python 3.7+
asyncio.run(main())
```

If so, the main purpose of that example is just to demonstrate basic 
async/await syntax, and show asyncio.run() for a trivial case to clearly show 
how it's used at a fundamental level; it's intentional that the more involved 
examples that demonstrate asynchronous programming are contained in 
https://docs.python.org/3/library/asyncio-task.html#coroutine. Also, the 
example is simple and condensed enough that it requires zero additional 
explanation or context, as should be the case for a simple "hello world" 
example. Consider the perspective of someone who found the page without having 
previously seen async/await syntax used.

FYI, in the future, I would highly recommend focusing more on the constructive 
parts when opening issues. Particularly the title "documentation bad on 
asyncio", provides zero context or usefulness. It also comes across as rather 
rude and unappreciative of the significant voluntary efforts that went into 
writing the documentation in the first place. Instead, something like "Improve 
example on front page of asyncio docs" is much more helpful.

--
nosy: +aeros

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40517] Syntax highlighting for ASDL

2020-05-05 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

I really like this idea but it needs different styling.  Attaching a screen 
shot will significant readability and beauty issues.

Suggest:
* Boldfacethe class names (Module, Interactive, etc)
* Unboldface the fields names (body, types_ignores, argtypes, etc)
* The tinted grape color does not work well on the green background.
* Perhaps have a graphic designer take a look.

--
Added file: https://bugs.python.org/file49129/Screen Shot 2020-05-05 at 
10.17.15 PM.png

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40509] In argparse, allow REMAINDER(...) arguments in a mutually exclusive group

2020-05-05 Thread Shani Armon


Shani Armon  added the comment:

Why is REMAINDER any more complicated than ZERO_OR_MORE? I need to make a 
subcommand system (think jupyter style) and -- isn't an intuitive interface. 
Jupyter just doesn't use argparse in the subcommand case. I prever to in order 
to support options given before the subcommand, outside the mutually exclusive 
group (like -C for git)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40517] Syntax highlighting for ASDL

2020-05-05 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset eff870b618ca6f6b7a60a271f15af7e54b8a1b97 by Raymond Hettinger in 
branch 'master':
Revert "bpo-40517: Implement syntax highlighting support for ASDL (#19928)" 
(#19950)
https://github.com/python/cpython/commit/eff870b618ca6f6b7a60a271f15af7e54b8a1b97


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40517] Syntax highlighting for ASDL

2020-05-05 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset d60040ba226bd2e3b6f58d074015aa2499dc1cb8 by Batuhan Taskaya in 
branch 'master':
bpo-40517: Implement syntax highlighting support for ASDL (#19928)
https://github.com/python/cpython/commit/d60040ba226bd2e3b6f58d074015aa2499dc1cb8


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40517] Syntax highlighting for ASDL

2020-05-05 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
pull_requests: +19265
pull_request: https://github.com/python/cpython/pull/19950

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40512] Meta issue: per-interpreter GIL

2020-05-05 Thread hai shi


Change by hai shi :


--
nosy: +shihai1991

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40357] asyncio: will shutdown_default_executor work in single step (stop, run_forever) mode?

2020-05-05 Thread Kyle Stanley


Kyle Stanley  added the comment:

> Is the new asyncio.loop.shutdown_default_executor() suitable for event loops 
> that are run in single-step mode?

I honestly can't say for certain; the primary intended use case for 
shutdown_default_executor() was to provide a means of properly finalizing the 
resources associated with the default executor without blocking the event loop, 
notably the threads in the ThreadPoolExecutor (which were intermittently left 
dangling).  So, when working on the implementation w/ Yury and Andrew, I did 
not strongly consider single-step event loops. I was more concerned with how it 
fit in with asyncio.run() and safe finalization of executor resources. See 
https://bugs.python.org/issue34037 for context.

If you have a recommendation for a change to the current version 
shutdown_default_executor() that would help provide compatibility with 
single-step event loops without hindering the primary goals, I'm sure it would 
be considered.

> Also, what happens to pending executor futures?

When using `loop.shutdown_default_executor()`, it calls 
executor.shutdown(wait=True), which waits for submitted futures to the executor 
to complete before joining the executor's workers (regardless of whether 
they're threads or processes). So, the executor should not be terminated prior 
to the pending futures being completed.

>From a glance at the example code posted above, it seems like it would be 
>incompatible with asyncio.run(), which is a requirement for 
>shutdown_default_executor(). See 
>https://github.com/python/cpython/blob/b9c46a2c2d7fc68457bff641f78932d66f5e5f59/Lib/asyncio/runners.py#L8.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40526] documentation bad on asyncio

2020-05-05 Thread Chris Drake


New submission from Chris Drake :

> The sample on this page is not demonstrating anything asynchronous:
> https://docs.python.org/3/library/asyncio.html

Put something that is relevant please.  e.g.

import asyncio
import time

async def say_after(delay, what):
await asyncio.sleep(delay)
print(what)

async def main():
print(f"started at {time.strftime('%X')}")
await say_after(2, 'world')
await say_after(1, 'hello')
print(f"finished at {time.strftime('%X')}")

asyncio.run(main())

--
components: asyncio
messages: 368223
nosy: asvetlov, cnd, yselivanov
priority: normal
severity: normal
status: open
title: documentation bad on asyncio
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40480] "fnmatch" exponential execution time

2020-05-05 Thread Tim Peters


Change by Tim Peters :


--
assignee:  -> tim.peters
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40480] "fnmatch" exponential execution time

2020-05-05 Thread Tim Peters


Tim Peters  added the comment:


New changeset b9c46a2c2d7fc68457bff641f78932d66f5e5f59 by Tim Peters in branch 
'master':
bpo-40480 "fnmatch" exponential execution time (GH-19908)
https://github.com/python/cpython/commit/b9c46a2c2d7fc68457bff641f78932d66f5e5f59


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40516] GCC 9 compiler warnings on MacOS Catalina

2020-05-05 Thread Ned Deily


Change by Ned Deily :


--
components: +Build

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40379] multiprocessing's default start method of fork()-without-exec() is broken

2020-05-05 Thread Ned Deily


Change by Ned Deily :


--
nosy: +davin, pitrou

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40516] GCC 9 compiler warnings on MacOS Catalina

2020-05-05 Thread Ned Deily


Ned Deily  added the comment:

See proposed PR 19925 for further discussion.

--
components: +macOS -Build
nosy: +ned.deily, ronaldoussoren
versions: +Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40501] Deprecate and remove ctypes usage in uuid

2020-05-05 Thread Ned Deily


Ned Deily  added the comment:

> (A) Ensure that _uuid works on macOS, FreeBSD and Linux, especially in the 
> macOS installer of python.org.

FWIW, a spot check shows that _uuid builds and test_uuid passes both sets of 
its tests, e.g. TestUUIDWithExtModule and TestUUIDWithoutExtModule, with 
current python.org macOS installers on macOS releases of interest.  So, AFAICT, 
we have no need for the ctypes fallback on at least macOS 10.6 or later and we 
don't actively support anything older than that.

--
nosy: +ned.deily

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40417] PyImport_ReloadModule emits deprecation warning

2020-05-05 Thread Robert Rouhani


Robert Rouhani  added the comment:

No problem! Happy to contribute where I can :)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40417] PyImport_ReloadModule emits deprecation warning

2020-05-05 Thread Brett Cannon


Brett Cannon  added the comment:

Thanks for all your hard work, Robert!

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40417] PyImport_ReloadModule emits deprecation warning

2020-05-05 Thread miss-islington


miss-islington  added the comment:


New changeset d64fd617e02346ecbcba9559f227936e08e89602 by Robert Rouhani in 
branch '3.7':
[3.7] bpo-40417: Fix deprecation warning in PyImport_ReloadModule (GH-19750) 
(GH-19935)
https://github.com/python/cpython/commit/d64fd617e02346ecbcba9559f227936e08e89602


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40417] PyImport_ReloadModule emits deprecation warning

2020-05-05 Thread miss-islington


miss-islington  added the comment:


New changeset a32587a60da5939a3932bb30432d2bdd3d6203d4 by Robert Rouhani in 
branch '3.8':
[3.8] bpo-40417: Fix deprecation warning in PyImport_ReloadModule (GH-19750) 
(GH-19934)
https://github.com/python/cpython/commit/a32587a60da5939a3932bb30432d2bdd3d6203d4


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18857] urlencode of a None value uses the string 'None'

2020-05-05 Thread James Addison


Change by James Addison :


--
pull_requests: +19264
pull_request: https://github.com/python/cpython/pull/19949

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40420] argparse choices formatter

2020-05-05 Thread paul j3


paul j3  added the comment:

Related topic re. long usage with choices : https://bugs.python.org/issue16418

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40518] ValueError when using resource.setrlimit on macOS Catalina

2020-05-05 Thread Ned Deily


Ned Deily  added the comment:

See the long discussion in Issue34602 for more details. The investigation there 
showed that there are now conditions when running in newer versions of macOS 
(apparently as of 10.14.4) where trying to increase the stack limit at run time 
using resource.RLIMIT_STACK fails.  If you do need to increase the stack limit, 
to handle deeper recusions etc, one solution is to rebuild Python for macOS 
with a larger stack size as shown in PR 14546 rather than trying to change it 
at runtime.

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> python3 resource.setrlimit strange behaviour under macOS

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40509] In argparse, allow REMAINDER(...) arguments in a mutually exclusive group

2020-05-05 Thread paul j3


paul j3  added the comment:

Handling the positional with '?' and '*' in a mutually_exclusive_group is 
tricky enough!

I believe your user can use the '--' to get the same effect.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40509] In argparse, allow REMAINDER(...) arguments in a mutually exclusive group

2020-05-05 Thread paul j3


Change by paul j3 :


--
nosy: +paul.j3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40501] Deprecate and remove ctypes usage in uuid

2020-05-05 Thread Steve Dower


Change by Steve Dower :


--
keywords: +patch
pull_requests: +19263
stage: test needed -> patch review
pull_request: https://github.com/python/cpython/pull/19948

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40525] zipapps execute symlinks as if they are code

2020-05-05 Thread Anthony Sottile


New submission from Anthony Sottile :

```console
$ ln -s 'import os; os.system("echo hi")' __main__.py
$ ls -al
total 8
drwxr-xr-x 2 asottile asottile 4096 May  5 15:55 .
drwxr-xr-x 3 asottile asottile 4096 May  5 14:50 ..
lrwxrwxrwx 1 asottile asottile   31 May  5 15:55 __main__.py -> 'import os; 
os.system("echo hi")'
$ zip --symlinks out.zip __main__.py 
  adding: __main__.py (stored 0%)
$ python3 out.zip
hi
```

I expect the output to be similar to running `__main__.py`:

```
$ python3 __main__.py 
python3: can't open file '__main__.py': [Errno 2] No such file or directory
```

(real usecase, I wanted `__main__.py` to be a symlink but got a very strange 
NameError and traced it down to executing the symlink target  name instead of 
the symlink destination)

--
components: Interpreter Core
messages: 368212
nosy: Anthony Sottile
priority: normal
severity: normal
status: open
title: zipapps execute symlinks as if they are code
type: behavior
versions: Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40523] Weakref proxy missing pass throughs for hash() and reversed()

2020-05-05 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40523] Weakref proxy missing pass throughs for hash() and reversed()

2020-05-05 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 96074de573f82fc66a2bd73c36905141a3f1d5c1 by Pablo Galindo in 
branch 'master':
bpo-40523: Add pass-throughs for hash() and reversed() to weakref.proxy objects 
(GH-19946)
https://github.com/python/cpython/commit/96074de573f82fc66a2bd73c36905141a3f1d5c1


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40512] Meta issue: per-interpreter GIL

2020-05-05 Thread STINNER Victor


Change by STINNER Victor :


Added file: https://bugs.python.org/file49128/demo-pyperf.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40512] Meta issue: per-interpreter GIL

2020-05-05 Thread STINNER Victor


STINNER Victor  added the comment:

I updated demo-pyperf.py to also benchmark multiprocessing.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40512] Meta issue: per-interpreter GIL

2020-05-05 Thread STINNER Victor


Change by STINNER Victor :


Removed file: https://bugs.python.org/file49126/demo.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40512] Meta issue: per-interpreter GIL

2020-05-05 Thread STINNER Victor


Change by STINNER Victor :


Removed file: https://bugs.python.org/file49127/demo-pyperf.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40517] Syntax highlighting for ASDL

2020-05-05 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

+1

--
nosy: +rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40504] Restore weakref support for lru_cache wrappers

2020-05-05 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset 1253c3ef70ea5632d32ae19579a14152db0d45c1 by Dennis Sweeney in 
branch 'master':
bpo-40504: Allow weakrefs to lru_cache objects (GH-19938)
https://github.com/python/cpython/commit/1253c3ef70ea5632d32ae19579a14152db0d45c1


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40504] Restore weakref support for lru_cache wrappers

2020-05-05 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

Thanks for the PE :-)

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40512] Meta issue: per-interpreter GIL

2020-05-05 Thread STINNER Victor


STINNER Victor  added the comment:

Hum, demo.py is not reliable for threads: the standard deviation is quite 
large. I rewrote it using pyperf to compute the average and the standard 
deviation.

--
Added file: https://bugs.python.org/file49127/demo-pyperf.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40511] IDLE yellow hint frame blinks when entering () in strings in functions/classes

2020-05-05 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

1. What OS and for Windows/Mac, version?
2. What Python release and from where and how installed?
   If not latest release of x.y, where x.y >= 3.7, consider upgrading.
3. Tcl/tk version (see Help => About IDLE?
4. How start IDLE?
5. What is a the minimum action needed to exhibit the behavior.  Copy and paste 
minimum code.
6. Describe behavior with more detail.  What you wrote is nothing like anything 
that should happen (which is why you report it), so it is hard to imagine.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40474] Code coverage report not entirely accurate

2020-05-05 Thread Lewis Ball


Lewis Ball  added the comment:

I've updated the travis.yml now to fix this issue and global statements are now 
showing as covered in the coverage report.  This means an extra 4k lines show 
as covered which weren't previously showing. See the report for the PR here 
(https://codecov.io/gh/python/cpython/tree/64d521b5d34c25b83d0472608d1eab3a6334bf59/Lib).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40512] Meta issue: per-interpreter GIL

2020-05-05 Thread STINNER Victor


Change by STINNER Victor :


Removed file: https://bugs.python.org/file49124/demo.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40512] Meta issue: per-interpreter GIL

2020-05-05 Thread STINNER Victor


STINNER Victor  added the comment:

(oops, there was a typo in my script: threads and subinterpreters was the same 
benchmark)

--
Added file: https://bugs.python.org/file49126/demo.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40355] The ast module fails to reject certain malformed nodes

2020-05-05 Thread miss-islington


miss-islington  added the comment:


New changeset 2a3b876b0286b22a9058510d9e51dc4d60eeb89a by Miss Islington (bot) 
in branch '3.8':
bpo-40355: Improve error messages in ast.literal_eval with malformed Dict nodes 
(GH-19868)
https://github.com/python/cpython/commit/2a3b876b0286b22a9058510d9e51dc4d60eeb89a


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37860] Add deploy preview for docs

2020-05-05 Thread Batuhan Taskaya


Batuhan Taskaya  added the comment:

> Personally, I feel that it most largely benefits more significant 
> documentation changes that involve modification of existing markup or the 
> addition of new markup, rather than all documentation PRs. So a manually 
> added label to trigger it makes the most sense to me. This would be very 
> similar to the recently added "test-with-buildbots" label.

+1, It would be so much useful in cases like GH 19928.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40355] The ast module fails to reject certain malformed nodes

2020-05-05 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset c21c51235aa8061da6b0593d6f857f42fd92fd8b by Curtis Bucher in 
branch 'master':
bpo-40355: Improve error messages in ast.literal_eval with malformed Dict nodes 
(GH-19868)
https://github.com/python/cpython/commit/c21c51235aa8061da6b0593d6f857f42fd92fd8b


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40355] The ast module fails to reject certain malformed nodes

2020-05-05 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 5.0 -> 6.0
pull_requests: +19262
pull_request: https://github.com/python/cpython/pull/19947

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40523] Weakref proxy missing pass throughs for hash() and reversed()

2020-05-05 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
keywords: +patch
nosy: +pablogsal
nosy_count: 1.0 -> 2.0
pull_requests: +19261
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/19946

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18857] urlencode of a None value uses the string 'None'

2020-05-05 Thread James Addison


Change by James Addison :


--
pull_requests: +19259
pull_request: https://github.com/python/cpython/pull/19945

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29211] assertRaises with exceptions re-raised from a generator kills generator

2020-05-05 Thread epiphyte


Change by epiphyte :


--
nosy: +epiphyte

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40524] Print() issue

2020-05-05 Thread Eric V. Smith


Eric V. Smith  added the comment:

This is not the place to ask for help programming with python. What you're 
seeing is that your attribute_set or attribute_names mapping are missing 
whatever data you think should be present.

I suggest you ask for help on the python-list or python-tutor mailing lists:

https://mail.python.org/mailman/listinfo/python-list
https://mail.python.org/mailman/listinfo/tutor

--
components:  -Regular Expressions
nosy: +eric.smith
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40524] Print() issue

2020-05-05 Thread Code436


New submission from Code436 :

When I tried to print some stuff I get a KeyError:0

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40524] Print() issue

2020-05-05 Thread Code436


Change by Code436 :


--
components: Regular Expressions
files: Python bug.png
nosy: Coder436, ezio.melotti, mrabarnett
priority: normal
severity: normal
status: open
title: Print() issue
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file49125/Python bug.png

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40523] Weakref proxy missing pass throughs for hash() and reversed()

2020-05-05 Thread Raymond Hettinger


New submission from Raymond Hettinger :

from weakref import proxy

class Alpha:
def __len__(self):
return 3
def __reversed__(self):
return iter('cba')
def __hash__(self):
return hash('abc')

a = Alpha()

# Direct use of the instance works
print(len(a))
print(list(reversed(a)))
print(hash(a))

# Proxies can use the dunder methods directly
r = proxy(a)
print(r.__len__())
print(list(r.__reversed__()))
print(r.__hash__())

# Proxy fails for __reversed__ and __hash__
print(len(r), 'This succeeds')
try:
print(list(reversed(r)))
except TypeError:
print('reverse(r) failed')
try:
print(hash(r))
except TypeError:
print('hash(r) failed')

--
components: Library (Lib)
messages: 368197
nosy: rhettinger
priority: normal
severity: normal
status: open
title: Weakref proxy missing pass throughs for hash() and reversed()
type: behavior
versions: Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40512] Meta issue: per-interpreter GIL

2020-05-05 Thread STINNER Victor


STINNER Victor  added the comment:

Attached demo.py: benchmark to compare performance of sequential execution, 
threads and subinterpreters.

--
Added file: https://bugs.python.org/file49124/demo.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40513] Move _PyRuntimeState.ceval to PyInterpreterState

2020-05-05 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset fb2c7c4afbab0514352ab0246b0c0cc85d1bba53 by Victor Stinner in 
branch 'master':
bpo-40513: _xxsubinterpreters.run_string() releases the GIL (GH-19944)
https://github.com/python/cpython/commit/fb2c7c4afbab0514352ab0246b0c0cc85d1bba53


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18857] urlencode of a None value uses the string 'None'

2020-05-05 Thread James Addison


James Addison  added the comment:

Chiming in here to add that I'd appreciate the ability to render 'standalone' 
(i.e. no '=') query-string keys in order to distinguish between 
absence-of-value and empty-string situations.

The backwards-compatibility concerns in here are genuine, so perhaps this could 
be introduced as an argument to urlencode with a disabled default value, 
allowing developers to opt-in.

>> Unless someone can point to a "real" web server that does something 
>> different with "" than with "=", there is no reason to make a change 
>> to Python.

There's a popular nodejs library that makes this serialization distinction 
explicit: https://github.com/sindresorhus/query-string#falsy-values

I've developed a Python 3.7-based set of commits[1] to address this issue.  I 
haven't yet opened this as a pull request since I see that Python 3.7 is in 
maintenance/bugfix mode[2].

In case a new urlencode flag would fall under the category of feature, I'll aim 
to develop a subsequent set of commits against the master development branch 
soon.

[1] - https://github.com/jayaddison/cpython/compare/3.7..9555467

[2] - https://devguide.python.org/#status-of-python-branches

--
nosy: +jayaddison

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40513] Move _PyRuntimeState.ceval to PyInterpreterState

2020-05-05 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 7be4e350aadf93c4be5c97b7291d0db2b6bc1dc4 by Victor Stinner in 
branch 'master':
bpo-40513: Per-interpreter GIL (GH-19943)
https://github.com/python/cpython/commit/7be4e350aadf93c4be5c97b7291d0db2b6bc1dc4


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17254] add thai encoding aliases to encodings.aliases

2020-05-05 Thread Benjamin Wood


Benjamin Wood  added the comment:

This is an easy alias to a valid codepage. I supplied proof that they are the 
same.

I don't understand why this has been allowed to languish for 9 months.

Did I miss something? Is there more work I need to do?

Thanks

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40246] Different error messages for same error - invalid string prefixes

2020-05-05 Thread Lysandros Nikolaou


Lysandros Nikolaou  added the comment:

Ok, I'm closing this, after consulting with Guido.

--
resolution:  -> wont fix
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40513] Move _PyRuntimeState.ceval to PyInterpreterState

2020-05-05 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 0dd5e7a718997da2026ed64fe054dc36cae4fee7 by Victor Stinner in 
branch 'master':
bpo-40513: new_interpreter() init GIL earlier (GH-19942)
https://github.com/python/cpython/commit/0dd5e7a718997da2026ed64fe054dc36cae4fee7


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40513] Move _PyRuntimeState.ceval to PyInterpreterState

2020-05-05 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +19258
pull_request: https://github.com/python/cpython/pull/19944

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40458] test_bad_getattr crashes on APPX test

2020-05-05 Thread miss-islington


miss-islington  added the comment:


New changeset a6a116c1b964b3d1fdff0f533861ed2a2227de1f by Miss Islington (bot) 
in branch '3.8':
bpo-40458: Increase reserved stack space to prevent overflow crash on Windows 
(GH-19845)
https://github.com/python/cpython/commit/a6a116c1b964b3d1fdff0f533861ed2a2227de1f


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40513] Move _PyRuntimeState.ceval to PyInterpreterState

2020-05-05 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +19257
pull_request: https://github.com/python/cpython/pull/19943

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40522] Subinterpreters: get the current Python interpreter state from Thread Local Storage (autoTSSkey)

2020-05-05 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset e838a9324c1719bb917ca81ede8d766b5cb551f4 by Victor Stinner in 
branch 'master':
bpo-40522: _PyThreadState_Swap() sets autoTSSkey (GH-19939)
https://github.com/python/cpython/commit/e838a9324c1719bb917ca81ede8d766b5cb551f4


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40521] Make tuple, dict, frame free lists, unicode interned strings, unicode latin1 singletons per-interpreter

2020-05-05 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset b4b53868d7d6cd13505321d3802fd00865b25e05 by Victor Stinner in 
branch 'master':
bpo-40521: Disable free lists in subinterpreters (GH-19937)
https://github.com/python/cpython/commit/b4b53868d7d6cd13505321d3802fd00865b25e05


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40513] Move _PyRuntimeState.ceval to PyInterpreterState

2020-05-05 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +19256
pull_request: https://github.com/python/cpython/pull/19942

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40458] test_bad_getattr crashes on APPX test

2020-05-05 Thread Steve Dower

Steve Dower  added the comment:

Merged without the improved diagnostics. I might add that later if I get time.

Ɓukasz - this is a fairly trivial crash fix that'd be nice (and safe) to pull 
into 3.8.3, but not critical. Your call.

--
assignee:  -> steve.dower
nosy: +lukasz.langa
stage: patch review -> commit review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40458] test_bad_getattr crashes on APPX test

2020-05-05 Thread Steve Dower


Steve Dower  added the comment:


New changeset ac4bf424119d1300f57929120968e216a85d3a25 by Steve Dower in branch 
'master':
bpo-40458: Increase reserved stack space to prevent overflow crash on Windows 
(GH-19845)
https://github.com/python/cpython/commit/ac4bf424119d1300f57929120968e216a85d3a25


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40458] test_bad_getattr crashes on APPX test

2020-05-05 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 5.0 -> 6.0
pull_requests: +19255
pull_request: https://github.com/python/cpython/pull/19941

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40512] Meta issue: per-interpreter GIL

2020-05-05 Thread STINNER Victor


STINNER Victor  added the comment:

I created bpo-40522: "Subinterpreters: get the current Python interpreter state 
from Thread Local Storage (autoTSSkey)".

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2020-05-05 Thread Kyle Stanley


Kyle Stanley  added the comment:

I have also explored a few different solutions and was unable to find a fix for 
this issue. If it's still causing intermittent hangs after Andrew's patch, we 
may want to consider skipping `test_close_kill_running` for `MultiLoopWatcher` 
until we can find one. This clearly seems to be a complex issue without an easy 
solution, and I don't think we want it to potentially mask other issues in the 
meantime.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40522] Subinterpreters: get the current Python interpreter state from Thread Local Storage (autoTSSkey)

2020-05-05 Thread STINNER Victor


Change by STINNER Victor :


--
keywords: +patch
pull_requests: +19254
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/19939

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40522] Subinterpreters: get the current Python interpreter state from Thread Local Storage (autoTSSkey)

2020-05-05 Thread STINNER Victor


New submission from STINNER Victor :

_PyThreadState_GET() gets the current Python thread state from 
_PyRuntime.gilstate.tstate_current atomic variable.

When I experimented per-interpreter GIL (bpo-40512), I got issues with 
_PyThreadState_GET() which didn't return the expected Python thread state.

I propose to modify _PyThreadState_GET() in the exprimental isolated 
subinterpreters mode to get and set the current Python thread state using a 
Thread Local Storage: autoTSSkey.

--
components: Interpreter Core
messages: 368182
nosy: vstinner
priority: normal
severity: normal
status: open
title: Subinterpreters: get the current Python interpreter state from Thread 
Local Storage (autoTSSkey)
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40512] Meta issue: per-interpreter GIL

2020-05-05 Thread Kyle Stanley


Change by Kyle Stanley :


--
nosy: +aeros

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36284] importlib.import_module() not thread safe if Exception is raised (3.4, 3.5)

2020-05-05 Thread Patrick Thizy


Patrick Thizy  added the comment:

I use Apache + mod_wsgi on Windows
When I update from Django 2.2.4 to Django 2.2.5, this fix has been apply
With this fix my application is not running
The navigator is lock and waiting 

Can you help me ?

--
nosy: +Patrick Thizy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40504] Restore weakref support for lru_cache wrappers

2020-05-05 Thread Dennis Sweeney


Change by Dennis Sweeney :


--
keywords: +patch
pull_requests: +19253
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/19938

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38787] PEP 573: Module State Access from C Extension Methods

2020-05-05 Thread STINNER Victor


STINNER Victor  added the comment:

See also bpo-40137: TODO list when PEP 573 "Module State Access from C 
Extension Methods" will be implemented.

--
nosy: +vstinner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40513] Move _PyRuntimeState.ceval to PyInterpreterState

2020-05-05 Thread STINNER Victor


STINNER Victor  added the comment:

> From a user perspective, does it make sense to have a different 
> recursion_limit per interpreter?

Yes, I think so. Someone might use a lower limit to run a template rendering 
engine or "unsafe" code. Well, it's not hard to find random usage for 
interpreters with a configuration different than the main interpreter.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40513] Move _PyRuntimeState.ceval to PyInterpreterState

2020-05-05 Thread STINNER Victor


STINNER Victor  added the comment:

> FWIW, I think it would make sense to keep "signals_pending" under 
> _PyRuntimeState rather than moving it to PyInterpreterState.

Oh right. I forgot about the details. I reverted my change, but this time I 
added a comment to prevent me to write the same change in 6 months :-)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40521] Make tuple, dict, frame free lists, unicode interned strings, unicode latin1 singletons per-interpreter

2020-05-05 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 607b1027fec7b4a1602aab7df57795fbcec1c51b by Victor Stinner in 
branch 'master':
bpo-40521: Disable Unicode caches in isolated subinterpreters (GH-19933)
https://github.com/python/cpython/commit/607b1027fec7b4a1602aab7df57795fbcec1c51b


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40521] Make tuple, dict, frame free lists, unicode interned strings, unicode latin1 singletons per-interpreter

2020-05-05 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +19252
pull_request: https://github.com/python/cpython/pull/19937

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38787] PEP 573: Module State Access from C Extension Methods

2020-05-05 Thread Petr Viktorin


Change by Petr Viktorin :


--
pull_requests: +19251
pull_request: https://github.com/python/cpython/pull/19936

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40417] PyImport_ReloadModule emits deprecation warning

2020-05-05 Thread Robert Rouhani


Change by Robert Rouhani :


--
pull_requests: +19250
pull_request: https://github.com/python/cpython/pull/19935

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40417] PyImport_ReloadModule emits deprecation warning

2020-05-05 Thread Robert Rouhani


Change by Robert Rouhani :


--
pull_requests: +19249
pull_request: https://github.com/python/cpython/pull/19934

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40521] Make tuple, dict, frame free lists, unicode interned strings, unicode latin1 singletons per-interpreter

2020-05-05 Thread STINNER Victor


Change by STINNER Victor :


--
keywords: +patch
pull_requests: +19248
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/19933

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40515] test_ssl.py hangs with SSL 1.1 built with no threads

2020-05-05 Thread Christian Heimes


Christian Heimes  added the comment:

It not about what I wish or wish not to do.

Python requires thread-safe libraries. A library without proper locking and 
thread safety is no longer safe to use without great effort and careful locking 
in the glue code. A non-threaded OpenSSL build will lead to memory corruption 
and eventually crash the interpreter.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40521] Make tuple, dict, frame free lists, unicode interned strings, unicode latin1 singletons per-interpreter

2020-05-05 Thread STINNER Victor


New submission from STINNER Victor :

tuple, dict and frame use free lists to optimize the creation of objects.

Unicode uses "interned" strings to reduce the Python memory footprint and 
speedup dictionary lookups.

Unicode also uses singletons for single letter Latin1 characters ([U+; 
U+00FF] range).

All these optimizations are incompatible with isolated subinterpreters, since 
caches are currently shared by all inteprepreters. These caches should be made 
per-intepreter. See bpo-40512 "Meta issue: per-interpreter GIL" for the 
rationale.

I already made small integer singletons per interpreter in bpo-38858:

* commit 5dcc06f6e0d7b5d6589085692b86c63e35e2325e
* commit 630c8df5cf126594f8c1c4579c1888ca80a29d59.

--
components: Interpreter Core
messages: 368175
nosy: vstinner
priority: normal
severity: normal
status: open
title: Make tuple, dict, frame free lists, unicode interned strings, unicode 
latin1 singletons per-interpreter
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40513] Move _PyRuntimeState.ceval to PyInterpreterState

2020-05-05 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 299b8c61e9d1a42b929b8deb1b05067876e191e6 by Victor Stinner in 
branch 'master':
Revert "bpo-40513: Per-interpreter signals pending (GH-19924)" (GH-19932)
https://github.com/python/cpython/commit/299b8c61e9d1a42b929b8deb1b05067876e191e6


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40379] multiprocessing's default start method of fork()-without-exec() is broken

2020-05-05 Thread Itamar Turner-Trauring


Itamar Turner-Trauring  added the comment:

Just got an email from someone for whom switching to "spawn" fixed a problem. 
Earlier this week someone tweeted about this fixing things. This keeps hitting 
people in the real world.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40514] Add --experimental-isolated-subinterpreters build option

2020-05-05 Thread Eric Snow


Eric Snow  added the comment:

It would probably make sense to remove the build option in the 3.9 release.  We 
can leave it in master, but remove it in the 3.9 branch once it has been 
created.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40520] Remove redundant comment in pydebug.h

2020-05-05 Thread hai shi


hai shi  added the comment:

Thanks, Dong-hee Na ;)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40010] Inefficient signal handling in multithreaded applications

2020-05-05 Thread Eric Snow


Eric Snow  added the comment:

Good catch on this, Victor.  Thanks for doing it.

--
nosy: +eric.snow

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40513] Move _PyRuntimeState.ceval to PyInterpreterState

2020-05-05 Thread Eric Snow


Eric Snow  added the comment:

If this issue covers the GIL (which it seems to) then I'd expect 
_PyRuntimeState.gilstate to be handled here too.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40513] Move _PyRuntimeState.ceval to PyInterpreterState

2020-05-05 Thread Eric Snow


Eric Snow  added the comment:

>From a user perspective, does it make sense to have a different 
>recursion_limit per interpreter?  I don't see a problem with it.  However, 
>does it make sense to also keep a global value that we default to when a 
>per-interpreter value is not set?  I think it might.

I suppose a bigger question is what users will expect the recursion limit (AKA 
"sys.getrecursionlimit()") to be for a newly created subinterpreter.  Will it 
be some global default?  Will it be the value from the parent interpreter?  I'd 
go with a global default, which would imply that the default value should be 
stored under _PyRuntimeState like we had it (but still keep the actual 
per-interpreter field for the actual value).

FWIW, the existing docs don't really block either approach.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40512] Meta issue: per-interpreter GIL

2020-05-05 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40520] Remove redundant comment in pydebug.h

2020-05-05 Thread Dong-hee Na


Dong-hee Na  added the comment:

Thanks hai shi :)

--
nosy: +corona10
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40520] Remove redundant comment in pydebug.h

2020-05-05 Thread Dong-hee Na


Change by Dong-hee Na :


--
title: port the declartions in pydebug.h to initconfig.h -> Remove redundant 
comment in pydebug.h

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40520] port the declartions in pydebug.h to initconfig.h

2020-05-05 Thread miss-islington


miss-islington  added the comment:


New changeset 6351d9e4400a77fe1fcbe4f03e5fb6620cca236d by Hai Shi in branch 
'master':
bpo-40520: Remove redundant comment in pydebug.h (GH-19931)
https://github.com/python/cpython/commit/6351d9e4400a77fe1fcbe4f03e5fb6620cca236d


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40512] Meta issue: per-interpreter GIL

2020-05-05 Thread STINNER Victor


Change by STINNER Victor :


--
nosy: +eric.snow

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40514] Add --experimental-isolated-subinterpreters build option

2020-05-05 Thread STINNER Victor


Change by STINNER Victor :


--
nosy: +eric.snow

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40513] Move _PyRuntimeState.ceval to PyInterpreterState

2020-05-05 Thread Eric Snow


Eric Snow  added the comment:

FWIW, I think it would make sense to keep "signals_pending" under 
_PyRuntimeState rather than moving it to PyInterpreterState.

Signals are only handled by the main interpreter (in its main thread).  Even 
though "signals_pending" is useful to only one interpreter in the runtime, 
making it per-interpreter sends the wrong message that it is significant at 
that level.  This may be confusing to readers of the code.

At the very least there should be a clear comment with the field in 
Include/internal/pycore_interp.h explaining how it is only used by the main 
interpreter and why we made it per-interpreter anyway.

--
nosy: +eric.snow

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-05-05 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset b0be6b3b94fbdf31b796adc19dc86a04a52b03e1 by Victor Stinner in 
branch 'master':
bpo-29587: _PyErr_ChainExceptions() checks exception (GH-19902)
https://github.com/python/cpython/commit/b0be6b3b94fbdf31b796adc19dc86a04a52b03e1


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >