[issue40411] frozen collection.Counter

2020-05-14 Thread paul rubin


paul rubin  added the comment:

Note: PEP 603 may essentially take care of this, if it is accepted.

--

___
Python tracker 

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



[issue40237] Test code coverage (C) job of Travis CI fails on test_distutils which creates _configtest.gcno file

2020-05-14 Thread hai shi


hai shi  added the comment:

> It seems like there is coverage on both C and Python code.

Great, MAYBE we can use this coverage result to improve our testcases.

--

___
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-14 Thread Guido van Rossum


Guido van Rossum  added the comment:

We should run the tests with the old parser in at least one build.

--

___
Python tracker 

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



[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-14 Thread miss-islington


miss-islington  added the comment:


New changeset 6ad51a1fd6715d8266a43a4a89d496cf0615aace by Miss Islington (bot) 
in branch '3.7':
[3.8] bpo-40548: GitHub Action workflow: skip jobs on doc only PRs (GH-20100)
https://github.com/python/cpython/commit/6ad51a1fd6715d8266a43a4a89d496cf0615aace


--

___
Python tracker 

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



[issue40630] tracemalloc: allow resetting peak memory metric without touching other traces

2020-05-14 Thread Huon Wilson


Change by Huon Wilson :


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

___
Python tracker 

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



[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-14 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 2.0 -> 3.0
pull_requests: +19408
pull_request: https://github.com/python/cpython/pull/20101

___
Python tracker 

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



[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-14 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 07bd5cf3d9551ae84100e6400836163fcd507f07 by Victor Stinner in 
branch '3.8':
[3.8] bpo-40548: GitHub Action workflow: skip jobs on doc only PRs (GH-20100)
https://github.com/python/cpython/commit/07bd5cf3d9551ae84100e6400836163fcd507f07


--

___
Python tracker 

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



[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +19407
pull_request: https://github.com/python/cpython/pull/20100

___
Python tracker 

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



[issue40192] time.thread_time isn't outputting in nanoseconds in AIX

2020-05-14 Thread STINNER Victor


STINNER Victor  added the comment:

Which implementation is currently used on AIX? What's the output of the 
following command?

$ ./python
Python 3.9.0a6+ (heads/master:4a12d12186, May 15 2020, 04:55:17) 
>>> import time; time.get_clock_info('thread_time')
namespace(adjustable=False, 
implementation='clock_gettime(CLOCK_THREAD_CPUTIME_ID)', monotonic=True, 
resolution=1e-09)

--
nosy: +vstinner

___
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-14 Thread STINNER Victor


STINNER Victor  added the comment:

The following change broke test_fstring when using the old parser. I reopen the 
issue.

commit 846d8b28ab9bb6197ee81372820311c0abe509c0 (refs/bisect/bad)
Author: Lysandros Nikolaou 
Date:   Mon May 4 14:32:18 2020 +0300

bpo-40246: Revert reporting of invalid string prefixes (GH-19888)

Due to backwards compatibility concerns regarding keywords immediately 
followed by a string without whitespace between them (like in `bg="#d00" if 
clear else"#fca"`) will fail to parse,
commit 41d5b94af44e34ac05d4cd57460ed104ccf96628 has to be reverted.


$ ./python -X oldparser -m test -v test_fstring 
(...)
==
FAIL: test_invalid_string_prefixes (test.test_fstring.TestCase) (str='BF""')
--
  File "", line 1
BF""
  ^
SyntaxError: invalid syntax

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/vstinner/python/master/Lib/test/test_fstring.py", line 29, in 
assertAllRaise
eval(str)
AssertionError: "unexpected EOF while parsing" does not match "invalid syntax 
(, line 1)"
(...)

--
resolution: wont fix -> 
status: closed -> open

___
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-14 Thread STINNER Victor


STINNER Victor  added the comment:

The error can be seen on the new cool AMD64 Arch Linux VintageParser 3.x, 
vintage is the new cool:
https://buildbot.python.org/all/#builders/648/builds/185

--

___
Python tracker 

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



[issue40492] -m cProfile -o f.pstats with a script that does chdir() writes to the changed directory and not `.`

2020-05-14 Thread Anthony Sottile


Anthony Sottile  added the comment:

@serhiy: this was pretty straightfowrard to fix as you suspected -- would you 
be able to review it?

--

___
Python tracker 

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



[issue40612] Make traceback module's formatting of SyntaxError more similar to system formatting

2020-05-14 Thread miss-islington


miss-islington  added the comment:


New changeset 15bc9ab301d73f20bff47a12ef05326feb40f797 by Guido van Rossum in 
branch 'master':
bpo-40612: Fix SyntaxError edge cases in traceback formatting (GH-20072)
https://github.com/python/cpython/commit/15bc9ab301d73f20bff47a12ef05326feb40f797


--
nosy: +miss-islington

___
Python tracker 

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



[issue40630] tracemalloc: allow resetting peak memory metric without touching other traces

2020-05-14 Thread Huon Wilson


New submission from Huon Wilson :

Per 
https://mail.python.org/archives/list/python-id...@python.org/thread/QDWI37A4TJXOYUKULGPY2GKD7IG2JNDC/
 , it would be helpful to have a function that resets the peak memory usage of 
the tracemalloc module, without changing all the traces.

This allows for recording the peak memory usage of a specific region of code, 
rather than only the peak since the last tracemalloc.start() or 
tracemalloc.clear_traces() call.

--
components: Library (Lib)
messages: 368916
nosy: huonw, vstinner
priority: normal
severity: normal
status: open
title: tracemalloc: allow resetting peak memory metric without touching other 
traces
type: enhancement
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



[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-14 Thread STINNER Victor

STINNER Victor  added the comment:


New changeset 6a78589b6b22878491a4b042bb8b3161e1d120f6 by Filipe Laíns in 
branch 'master':
bpo-40548: github actions: pass the changes check on no source changes 
(GH-20097)
https://github.com/python/cpython/commit/6a78589b6b22878491a4b042bb8b3161e1d120f6


--

___
Python tracker 

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



[issue40512] [subinterpreters] Meta issue: per-interpreter GIL

2020-05-14 Thread STINNER Victor


STINNER Victor  added the comment:

I created a new "Subinterpreters" component in the bug tracker. It may help to 
better track all issues related to subinterpreters.

--

___
Python tracker 

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



[issue40601] [C API] Hide static types from the limited C API

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters

___
Python tracker 

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



[issue33607] [subinterpreters] Explicitly track object ownership (and allocator).

2020-05-14 Thread STINNER Victor


STINNER Victor  added the comment:

I see two options:

* Add a field to PyObject, but only in a special debug mode. Maybe not even in 
Py_DEBUG (since I managed to make Py_DEBUG ABI-compatible with the release 
mode!)

* Add an hash table mapping an object to its interpreter. The hash table would 
only be used in debug mode. It may even be turned on at runtime depending on a 
command line option or something else.

See also bpo-40514: [subinterpreters] Add 
--experimental-isolated-subinterpreters build option.


Antoine: "Can I ask why you're considering this?  I thought you didn't want to 
transfer ownership between interpreters."

I guess that the purpose is to ensure that: detect when an object is shared 
between two interpreters.

Currently, tons of objects are still shared between interpreters. Starting with 
static types: see bpo-40601 "[C API] Hide static types from the limited C API".

--

___
Python tracker 

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



[issue36876] [subinterpreters] Global C variables are a problem

2020-05-14 Thread David Bolen


Change by David Bolen :


--
nosy:  -db3l

___
Python tracker 

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



[issue40234] [subinterpreters] Disallow daemon threads in subinterpreters optionally

2020-05-14 Thread STINNER Victor


STINNER Victor  added the comment:

Issue title: "[subinterpreters] Disallow daemon threads in subinterpreters 
optionally"

This issue is basically addressed by bpo-40453: daemon threads continue to be 
allowed by default when using Py_NewInterpreter(), but it's possible to opt-in 
for "isolated" subinterpreters where threads are denied.

--

___
Python tracker 

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



[issue38872] Document exec symbol for codeop.compile_command

2020-05-14 Thread Joannah Nanjekye


Joannah Nanjekye  added the comment:


New changeset eb5ce324f724a59c51d7a76d1dd49b550cdf386b by Miss Islington (bot) 
in branch '3.8':
bpo-38872: Document exec symbol for codeop.compile_command (GH-20047) (GH-20098)
https://github.com/python/cpython/commit/eb5ce324f724a59c51d7a76d1dd49b550cdf386b


--

___
Python tracker 

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



[issue36876] [subinterpreters] Global C variables are a problem

2020-05-14 Thread STINNER Victor


STINNER Victor  added the comment:

More and more C extensions are converted to multiphase initialization API (PEP 
489) and their global variables are moved into a new module state.

bpo-39465 will make _Py_IDENTIFIER compatible with subinterpreters.

See also bpo-40521 for caches like free lists and Unicode interned strings.

--

___
Python tracker 

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



[issue40513] [subinterpreters] Move _PyRuntimeState.ceval to PyInterpreterState

2020-05-14 Thread STINNER Victor


STINNER Victor  added the comment:

Well, the remaining field which should be moved is the GIL lock itself. It will 
likely be the last thing to do in bpo-40512. I consider that the work is done 
in this issue and so I close it.

--
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] [subinterpreters] Meta issue: per-interpreter GIL

2020-05-14 Thread STINNER Victor


STINNER Victor  added the comment:

I marked bpo-36877 "[subinterpreters][meta] Move fields from _PyRuntimeState to 
PyInterpreterState" as a duplicate of this issue.

--

___
Python tracker 

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



[issue36877] [subinterpreters][meta] Move fields from _PyRuntimeState to PyInterpreterState.

2020-05-14 Thread STINNER Victor


STINNER Victor  added the comment:

I mark this issue as a duplicate of bpo-40512.

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> [subinterpreters] Meta issue: per-interpreter GIL

___
Python tracker 

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



[issue4202] [subinterpreters] Multiple interpreters and readline module hook functions.

2020-05-14 Thread STINNER Victor


STINNER Victor  added the comment:

See also bpo-15751: [subinterpreters] Make the PyGILState API compatible with 
subinterpreters.

--
nosy: +vstinner

___
Python tracker 

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



[issue15751] [subinterpreters] Make the PyGILState API compatible with subinterpreters

2020-05-14 Thread STINNER Victor


STINNER Victor  added the comment:

See also bpo-4202: [subinterpreters] Multiple interpreters and readline module 
hook functions.

--

___
Python tracker 

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



[issue15751] [subinterpreters] Make the PyGILState API compatible with subinterpreters

2020-05-14 Thread STINNER Victor


STINNER Victor  added the comment:

I marked bpo-10915 as a duplicate of this issue.

See also bpo-1021318: "PyThreadState_Next not thread safe".

--
components: +C API
title: [subinterpreters] Support subinterpreters in the GIL state API -> 
[subinterpreters] Make the PyGILState API compatible with subinterpreters
versions:  -Python 3.8

___
Python tracker 

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



[issue10915] [subinterpreters] Make the PyGILState API compatible with multiple interpreters

2020-05-14 Thread STINNER Victor


STINNER Victor  added the comment:

I marked this issue as a duplicate of bpo-15751.

--
resolution:  -> duplicate
stage: needs patch -> resolved
status: open -> closed
superseder:  -> [subinterpreters] Support subinterpreters in the GIL state API

___
Python tracker 

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



[issue32604] [subinterpreters] PEP 554 implementation: add interpreters module

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
title: [subinterpreters] Expose the subinterpreters C-API in Python for testing 
use. -> [subinterpreters] PEP 554 implementation: add interpreters module

___
Python tracker 

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



[issue32604] [subinterpreters] Expose the subinterpreters C-API in Python for testing use.

2020-05-14 Thread STINNER Victor


STINNER Victor  added the comment:

I marked bpo-39881 as a duplicate of this issue. It has two open PRs:

* PR 18817
* PR 19985

I changed their title to use bpo-32604.

--

___
Python tracker 

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



[issue32604] [subinterpreters] Expose the subinterpreters C-API in Python for testing use.

2020-05-14 Thread Joannah Nanjekye


Change by Joannah Nanjekye :


--
pull_requests: +19406
pull_request: https://github.com/python/cpython/pull/19985

___
Python tracker 

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



[issue32604] [subinterpreters] Expose the subinterpreters C-API in Python for testing use.

2020-05-14 Thread Joannah Nanjekye


Change by Joannah Nanjekye :


--
nosy: +nanjekyejoannah
nosy_count: 12.0 -> 13.0
pull_requests: +19405
pull_request: https://github.com/python/cpython/pull/18817

___
Python tracker 

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



[issue39881] [subinterpreters] Multiple Interpreters in the Stdlib (PEP 554) - High-level Implementation

2020-05-14 Thread STINNER Victor


STINNER Victor  added the comment:

I mark this issue as a duplicate of bpo-32604.

Please change the bpo number of your PRs: use bpo-32604.

--
resolution:  -> duplicate
stage: patch review -> resolved
status: open -> closed
superseder:  -> [subinterpreters] Expose the subinterpreters C-API in Python 
for testing use.

___
Python tracker 

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



[issue38872] Document exec symbol for codeop.compile_command

2020-05-14 Thread Joannah Nanjekye


Joannah Nanjekye  added the comment:


New changeset c1203b75ffe429b28cb2e2480deb0d0b8d3a941c by Miss Islington (bot) 
in branch '3.7':
bpo-38872: Document exec symbol for codeop.compile_command (GH-20047) (#20099)
https://github.com/python/cpython/commit/c1203b75ffe429b28cb2e2480deb0d0b8d3a941c


--

___
Python tracker 

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



[issue32604] [subinterpreters] Expose the subinterpreters C-API in Python for testing use.

2020-05-14 Thread STINNER Victor


STINNER Victor  added the comment:

I marked bpo-30439 and bpo-31375 as duplicates of this issue.

--

___
Python tracker 

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



[issue31375] [subinterpreters] Add the interpreters module to stdlib (PEP 554).

2020-05-14 Thread STINNER Victor


STINNER Victor  added the comment:

I mark this issue as a duplicate of bpo-32604.

--
nosy: +vstinner
resolution:  -> duplicate
stage: needs patch -> resolved
status: open -> closed
superseder:  -> [subinterpreters] Expose the subinterpreters C-API in Python 
for testing use.

___
Python tracker 

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



[issue30439] [subinterpreters] Expose the subinterpreters C-API in the stdlib

2020-05-14 Thread STINNER Victor


STINNER Victor  added the comment:

I mark this issue as a duplicate of bpo-32604.

--
nosy: +vstinner
resolution:  -> duplicate
stage: patch review -> resolved
status: open -> closed
superseder:  -> [subinterpreters] Expose the subinterpreters C-API in Python 
for testing use.

___
Python tracker 

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



[issue24554] [subinterpreters] GC should happen when a subinterpreter is destroyed

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters -Interpreter Core
title: GC should happen when a subinterpreter is destroyed -> [subinterpreters] 
GC should happen when a subinterpreter is destroyed

___
Python tracker 

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



[issue6531] [subinterpreters] atexit_callfuncs() crashing within Py_Finalize() when using multiple interpreters.

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters -Interpreter Core
title: atexit_callfuncs() crashing within Py_Finalize() when using multiple 
interpreters. -> [subinterpreters] atexit_callfuncs() crashing within 
Py_Finalize() when using multiple interpreters.

___
Python tracker 

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



[issue24228] Interpreter triggers segmentation fault at the starting

2020-05-14 Thread STINNER Victor


STINNER Victor  added the comment:

No activity since 2015, it was a bug in Python 3.4. Please retry with Python 
3.8.3. I close the issue.

--
nosy: +vstinner
resolution: third party -> out of date
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



[issue38872] Document exec symbol for codeop.compile_command

2020-05-14 Thread Joannah Nanjekye


Change by Joannah Nanjekye :


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



[issue4202] [subinterpreters] Multiple interpreters and readline module hook functions.

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters -Interpreter Core
title: Multiple interpreters and readline module hook functions. -> 
[subinterpreters] Multiple interpreters and readline module hook functions.

___
Python tracker 

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



[issue26461] PyInterpreterState_Head(), PyThreadState_Next() etc can't be sanely used

2020-05-14 Thread STINNER Victor


STINNER Victor  added the comment:

Duplicate of bpo-1021318.

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> PyThreadState_Next not thread safe

___
Python tracker 

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



[issue1021318] PyThreadState_Next not thread safe

2020-05-14 Thread STINNER Victor


STINNER Victor  added the comment:

I marked bpo-26461 as a duplicate of this issue.

--

___
Python tracker 

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



[issue31375] [subinterpreters] Add the interpreters module to stdlib (PEP 554).

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters
title: Add the interpreters module to stdlib (PEP 554). -> [subinterpreters] 
Add the interpreters module to stdlib (PEP 554).

___
Python tracker 

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



[issue34346] dir() hangs interpreter

2020-05-14 Thread STINNER Victor


STINNER Victor  added the comment:

> Only present with 2.7 new-style classes. Old-style 2.7 did not exhibit this 
> behavior nor did 3.x.

Python 2 is no longer supported, I close the issue as out of date.

--
nosy: +vstinner
resolution:  -> out of date
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



[issue40334] PEP 617: new PEG-based parser

2020-05-14 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 16ab07063cb564c1937714bd39d6915172f005b5 by Pablo Galindo in 
branch 'master':
bpo-40334: Correctly identify invalid target in assignment errors (GH-20076)
https://github.com/python/cpython/commit/16ab07063cb564c1937714bd39d6915172f005b5


--

___
Python tracker 

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



[issue34821] Crash after run Python interpreter from removed directory

2020-05-14 Thread STINNER Victor


STINNER Victor  added the comment:

I understood that the bug was fixed in Python 3.5.

Python 3.4 and older are no longer supported, I close the issue.

--
nosy: +vstinner
resolution:  -> fixed
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



[issue28411] [subinterpreters] Eliminate PyInterpreterState.modules.

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters -Interpreter Core
title: Eliminate PyInterpreterState.modules. -> [subinterpreters] Eliminate 
PyInterpreterState.modules.

___
Python tracker 

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



[issue35969] Interpreter crashes with "can't initialize init_sys_streams" when abc fails to import

2020-05-14 Thread STINNER Victor


STINNER Victor  added the comment:

> I agree with @p-ganssle, If exist some problem on initialize Python 
> interpreter it would be great if it return a non-zero status and avoid an 
> abort()

Since Python 3.8 (PEP 587), Python no longer call abort() on initialization 
error.

$ echo bug > abc.py

$ PYTHONPATH=$PWD python3.8 -c pass
Fatal Python error: init_sys_streams: can't initialize sys standard streams
Python runtime state: core initialized
Traceback (most recent call last):
  File "/usr/lib64/python3.8/io.py", line 52, in 
  File "/home/vstinner/abc.py", line 1, in 
NameError: name 'bug' is not defined

I don't think that it's worth it to change Python 3.7.

The initial issue was that abort() was called in this case. It's no longer the 
case, so I close the issue.

If someone cares abou the more general issue with the current directory being 
added to sys.path, please open a separated issue (or look for existing issues).

--
components: +Interpreter Core
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
versions: +Python 3.9 -Python 3.5, Python 3.6, Python 3.7

___
Python tracker 

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



[issue38872] Document exec symbol for codeop.compile_command

2020-05-14 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue38872] Document exec symbol for codeop.compile_command

2020-05-14 Thread miss-islington


Change by miss-islington :


--
pull_requests: +19404
pull_request: https://github.com/python/cpython/pull/20099

___
Python tracker 

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



[issue16826] Don't check for PYTHONCASEOK if interpreter started with -E

2020-05-14 Thread STINNER Victor


STINNER Victor  added the comment:

Issue fixed in bpo-38691:

commit fc72ab6913f2b5337ae7fda711f2de846d38f479
Author: idomic 
Date:   Mon Mar 9 07:57:53 2020 -0400

bpo-38691: importlib ignores PYTHONCASEOK if -E is used (GH-18627)

The importlib module now ignores the PYTHONCASEOK
environment variable when the -E or -I command line
options are being used.

--
nosy: +vstinner
resolution:  -> duplicate
stage: needs patch -> resolved
status: open -> closed
superseder:  -> importlib: PYTHONCASEOK should be ignored when using python3 -E

___
Python tracker 

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



[issue38872] Document exec symbol for codeop.compile_command

2020-05-14 Thread Joannah Nanjekye


Joannah Nanjekye  added the comment:


New changeset 7ba1f75f3f02b4b50ac6d7e17d15e467afa36aac by Joannah Nanjekye in 
branch 'master':
bpo-38872: Document exec symbol for codeop.compile_command (GH-20047)
https://github.com/python/cpython/commit/7ba1f75f3f02b4b50ac6d7e17d15e467afa36aac


--

___
Python tracker 

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



[issue37888] [subinterpreters] Confusing docs about state after calling Py_NewInterpreter()

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters
title: Sub-interpreters : Confusing docs about state after calling 
Py_NewInterpreter() -> [subinterpreters] Confusing docs about state after 
calling Py_NewInterpreter()

___
Python tracker 

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



[issue38160] [subinterpreters] Add a "PyInterpreterState *" field to PyTypeObject.

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters -Interpreter Core
title: Add a "PyInterpreterState *" field to PyTypeObject. -> [subinterpreters] 
Add a "PyInterpreterState *" field to PyTypeObject.

___
Python tracker 

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



[issue40028] Math module method to find prime factors for non-negative int n

2020-05-14 Thread paul rubin


paul rubin  added the comment:

I don't think the interface needs much bikeshedding, as long as the implementer 
chooses something reasonable.  E.g. factor(30) gives the list [2,3,5].  
Implementation is harder if you want to handle numbers of non-trivial size.  
Neal Koblitz's book "A Course in Number Theory and Cryptogoraphy" has good 
coverage of factoring algorithms.  To factor numbers up to 2**64, Pollard's rho 
method is simple to code and has always worked for me, but I don't know if 
there are specific numbers in that range that could give it trouble.  For 
bigger numbers you need fancier algorithms and eventually fancy hardware and 
long computing runs.  Part of a design discussion would include trying to 
decide the scope of such a module.

--

___
Python tracker 

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



[issue1332869] Fatal Python error: Interpreter not initialized

2020-05-14 Thread STINNER Victor


STINNER Victor  added the comment:

No activity since 2006, I close the issue as out of date.

--
nosy: +vstinner
resolution:  -> out of date
stage: test needed -> 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



[issue39958] Deadlock in _PyInterpreterState_DeleteExceptMain with HEAD_LOCK(runtime)

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters

___
Python tracker 

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



[issue10915] [subinterpreters] Make the PyGILState API compatible with multiple interpreters

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters -Interpreter Core
title: Make the PyGILState API compatible with multiple interpreters -> 
[subinterpreters] Make the PyGILState API compatible with multiple interpreters

___
Python tracker 

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



[issue36877] [subinterpreters][meta] Move fields from _PyRuntimeState to PyInterpreterState.

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters -Interpreter Core
title: [meta] Move fields from _PyRuntimeState to PyInterpreterState. -> 
[subinterpreters][meta] Move fields from _PyRuntimeState to PyInterpreterState.

___
Python tracker 

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



[issue38865] [subinterpreters] Can Py_Finalize() be called if the current interpreter is not the main interpreter?

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters -Interpreter Core
title: Can Py_Finalize() be called if the current interpreter is not the main 
interpreter? -> [subinterpreters] Can Py_Finalize() be called if the current 
interpreter is not the main interpreter?

___
Python tracker 

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



[issue36479] [subinterpreters] Exit threads when interpreter is finalizing rather than runtime.

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters
title: Exit threads when interpreter is finalizing rather than runtime. -> 
[subinterpreters] Exit threads when interpreter is finalizing rather than 
runtime.

___
Python tracker 

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



[issue39881] [subinterpreters] Multiple Interpreters in the Stdlib (PEP 554) - High-level Implementation

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters -Interpreter Core
title: Multiple Interpreters in the Stdlib (PEP 554) - High-level 
Implementation -> [subinterpreters] Multiple Interpreters in the Stdlib (PEP 
554) - High-level Implementation

___
Python tracker 

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



[issue40572] [subinterpreters] Support basic asynchronous cross-interpreter operations.

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters
title: Support basic asynchronous cross-interpreter operations. -> 
[subinterpreters] Support basic asynchronous cross-interpreter operations.

___
Python tracker 

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



[issue40412] [subinterpreters] inittab_copy not set to NULL after free, can lead to crashes when running multiple interpreters in a single process

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters
title: inittab_copy not set to NULL after free, can lead to crashes when 
running multiple interpreters in a single process -> [subinterpreters] 
inittab_copy not set to NULL after free, can lead to crashes when running 
multiple interpreters in a single process

___
Python tracker 

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



[issue40288] [subinterpreters] atexit module should not be loaded more than once per interpreter

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters -Library (Lib)
title: atexit module should not be loaded more than once per interpreter -> 
[subinterpreters] atexit module should not be loaded more than once per 
interpreter

___
Python tracker 

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



[issue33607] [subinterpreters] Explicitly track object ownership (and allocator).

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters

___
Python tracker 

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



[issue39511] [subinterpreters] Per-interpreter singletons (None, True, False, etc.)

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters -Interpreter Core

___
Python tracker 

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



[issue15751] [subinterpreters] Support subinterpreters in the GIL state API

2020-05-14 Thread STINNER Victor


STINNER Victor  added the comment:

See also bpo-40512: [subinterpreters] Meta issue: per-interpreter GIL.

--

___
Python tracker 

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



[issue30439] [subinterpreters] Expose the subinterpreters C-API in the stdlib

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters -Library (Lib)
title: Expose the subinterpreters C-API in the stdlib. -> [subinterpreters] 
Expose the subinterpreters C-API in the stdlib

___
Python tracker 

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



[issue24553] [subinterpreters] Improve test coverage for subinterpreters

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters
title: improve test coverage for subinterpreters -> [subinterpreters] Improve 
test coverage for subinterpreters

___
Python tracker 

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



[issue36225] [subinterpreters] Lingering subinterpreters should be implicitly cleared on shutdown

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters
title: Lingering subinterpreters should be implicitly cleared on shutdown -> 
[subinterpreters] Lingering subinterpreters should be implicitly cleared on 
shutdown

___
Python tracker 

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



[issue15751] [subinterpreters] Support subinterpreters in the GIL state API

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters
title: Support subinterpreters in the GIL state API -> [subinterpreters] 
Support subinterpreters in the GIL state API

___
Python tracker 

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



[issue37776] [subinterpreters] Test Py_Finalize() from a subinterpreter

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters
title: Test Py_Finalize() from a subinterpreter -> [subinterpreters] Test 
Py_Finalize() from a subinterpreter

___
Python tracker 

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



[issue37292] [subinterpreters] _xxsubinterpreters: Can't unpickle objects defined in __main__

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters
title: _xxsubinterpreters: Can't unpickle objects defined in __main__ -> 
[subinterpreters] _xxsubinterpreters: Can't unpickle objects defined in __main__

___
Python tracker 

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



[issue40390] [subinterpreters] Implement _xxsubinterpreters.channel_send_wait()

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters -Library (Lib)
title: Implement _xxsubinterpreters.channel_send_wait(). -> [subinterpreters] 
Implement _xxsubinterpreters.channel_send_wait()

___
Python tracker 

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



[issue40231] [subinterpreters] Fix pending calls in subinterpreters

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters -Interpreter Core
title: Fix pending calls in subinterpreters -> [subinterpreters] Fix pending 
calls in subinterpreters

___
Python tracker 

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



[issue40234] [subinterpreters] Disallow daemon threads in subinterpreters optionally

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters -Interpreter Core
title: Disallow daemon threads in subinterpreters optionally. -> 
[subinterpreters] Disallow daemon threads in subinterpreters optionally

___
Python tracker 

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



[issue40453] [subinterpreters] Add PyConfig._isolated_interpreter: isolated subinterpreters

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters -Interpreter Core
title: Add PyConfig._isolated_interpreter: isolated subinterpreters -> 
[subinterpreters] Add PyConfig._isolated_interpreter: isolated subinterpreters

___
Python tracker 

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



[issue37224] [subinterpreters] test__xxsubinterpreters fails randomly

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters
title: test__xxsubinterpreters fails randomly -> [subinterpreters] 
test__xxsubinterpreters fails randomly

___
Python tracker 

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



[issue32604] [subinterpreters] Expose the subinterpreters C-API in Python for testing use.

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters
title: Expose the subinterpreters C-API in Python for testing use. -> 
[subinterpreters] Expose the subinterpreters C-API in Python for testing use.

___
Python tracker 

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



[issue39465] [subinterpreters] Design a subinterpreter friendly alternative to _Py_IDENTIFIER

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters
title: Design a subinterpreter friendly alternative to _Py_IDENTIFIER -> 
[subinterpreters] Design a subinterpreter friendly alternative to _Py_IDENTIFIER

___
Python tracker 

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



[issue36854] GC operates out of global runtime state.

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters -Interpreter Core

___
Python tracker 

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



[issue38858] new_interpreter() should reuse more Py_InitializeFromConfig() code

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters

___
Python tracker 

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



[issue36876] [subinterpreters] Global C variables are a problem

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters -Interpreter Core
title: Global C variables are a problem. -> [subinterpreters] Global C 
variables are a problem

___
Python tracker 

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



[issue39984] Move pending calls from _PyRuntime to PyInterpreterState

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters -Interpreter Core

___
Python tracker 

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



[issue36737] Warnings operate out of global runtime state.

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters -Interpreter Core

___
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-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters -Interpreter Core
title: Subinterpreters: get the current Python interpreter state from Thread 
Local Storage (autoTSSkey) -> [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



[issue40533] [subinterpreters] Don't share Python objects between interpreters

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters -Interpreter Core
title: Subinterpreters: don't share Python objects between interpreters -> 
[subinterpreters] Don't share Python objects between interpreters

___
Python tracker 

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



[issue40513] [subinterpreters] Move _PyRuntimeState.ceval to PyInterpreterState

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters -Interpreter Core
title: Move _PyRuntimeState.ceval to PyInterpreterState -> [subinterpreters] 
Move _PyRuntimeState.ceval to PyInterpreterState

___
Python tracker 

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



[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters -Interpreter Core
title: Make tuple, dict, frame free lists, unicode interned strings, unicode 
latin1 singletons per-interpreter -> [subinterpreters] Make free lists and 
unicode caches per-interpreter

___
Python tracker 

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



[issue40512] [subinterpreters] Meta issue: per-interpreter GIL

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters -Interpreter Core
title: Meta issue: per-interpreter GIL -> [subinterpreters] Meta issue: 
per-interpreter GIL

___
Python tracker 

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



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

2020-05-14 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters
title: Add --experimental-isolated-subinterpreters build option -> 
[subinterpreters] Add --experimental-isolated-subinterpreters build option

___
Python tracker 

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



[issue40028] Math module method to find prime factors for non-negative int n

2020-05-14 Thread STINNER Victor


STINNER Victor  added the comment:

I suggest to implement this idea on PyPI first and only later propose it for 
inclusion in the stdlib (as a new module, or into an existing module). 
Bikeshedding on names, debate on the appropriate trade-off between correctness 
and speed, how many functions?, which functions?, etc. can be discussed outside 
Python bug tracker first. So far, the proposition is quite vague: "Math module 
method to find prime factors for non-negative int n". Comments on this issue 
gives an idea of the questions which should be answered first. See also 
bpo-37132 which proposes another bunch of functions.

Because such module is easy to write and prototype, bikeshedding on details are 
more likely :-)

An actual implementation may help to drive the discussion, and a dedicated 
project may help to organize discussions (ex: dedicated bug tracker to discuss 
each function independently).

--
nosy: +vstinner

___
Python tracker 

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



[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-14 Thread Filipe Laíns

Change by Filipe Laíns :


--
pull_requests: +19402
pull_request: https://github.com/python/cpython/pull/20097

___
Python tracker 

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



[issue25920] PyOS_AfterFork should reset socketmodule's lock

2020-05-14 Thread STINNER Victor


STINNER Victor  added the comment:

> (I wrote some more details here: 
> https://emptysqua.re/blog/getaddrinfo-deadlock/ )

On macOS, Python is only affected if "MAC_OS_X_VERSION_MIN_REQUIRED < 
MAC_OS_X_VERSION_10_5". Is it still the case in 2020?

Copy/paste of socketmodule.c:

/* On systems on which getaddrinfo() is believed to not be thread-safe,
   (this includes the getaddrinfo emulation) protect access with a lock.

   getaddrinfo is thread-safe on Mac OS X 10.5 and later. Originally it was
   a mix of code including an unsafe implementation from an old BSD's
   libresolv. In 10.5 Apple reimplemented it as a safe IPC call to the
   mDNSResponder process. 10.5 is the first be UNIX '03 certified, which
   includes the requirement that getaddrinfo be thread-safe. See issue #25924.

   It's thread-safe in OpenBSD starting with 5.4, released Nov 2013:
   http://www.openbsd.org/plus54.html

   It's thread-safe in NetBSD starting with 4.0, released Dec 2007:

http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/net/getaddrinfo.c.diff?r1=1.82=1.83
 */
#if ((defined(__APPLE__) && \
MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5) || \
(defined(__FreeBSD__) && __FreeBSD_version+0 < 503000) || \
(defined(__OpenBSD__) && OpenBSD+0 < 201311) || \
(defined(__NetBSD__) && __NetBSD_Version__+0 < 4) || \
!defined(HAVE_GETADDRINFO))
#define USE_GETADDRINFO_LOCK
#endif

--

___
Python tracker 

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



[issue6721] Locks in the standard library should be sanitized on fork

2020-05-14 Thread STINNER Victor


STINNER Victor  added the comment:

See also bpo-25920: PyOS_AfterFork should reset socketmodule's lock.

--

___
Python tracker 

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



[issue25920] PyOS_AfterFork should reset socketmodule's lock

2020-05-14 Thread STINNER Victor


STINNER Victor  added the comment:

> Maybe instead of releasing the lock in the forked child process, we should 
> try to acquire the lock in the os.fork() implementation, and then release it?

In bpo-40089, I added _PyThread_at_fork_reinit() for this purpose: reinitialize 
a lock after a fork to unlocked state. Internally, it leaks memory on purpose 
and then create a new lock, since there is no portable way to reset a lock 
after fork.

The problem is how to register netdb_lock of Modules/socketmodule.c into a list 
of locks which should be reinitialized at fork, or maybe how to register a C 
callback called at fork. There is a *Python* API to register a callback after a 
fork: os.register_at_fork().

See also the meta-issue bpo-6721: "Locks in the standard library should be 
sanitized on fork".

--

___
Python tracker 

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



  1   2   >