[issue42648] subprocess: add a helper/parameter to catch exec() OSError exception

2020-12-15 Thread Eryk Sun
Eryk Sun added the comment: I suggesting changing the name to indicate that only OSError exceptions are suppressed, not SubprocessError exceptions. Maybe call it no_oserror. As to the status code to use, if you want a a common code that can't interfere, it has to be either a negative value t

[issue35930] Raising an exception raised in a "future" instance will create reference cycles

2020-12-15 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Even more reproductible case, now 100%: """ import gc import concurrent.futures executor = concurrent.futures.ThreadPoolExecutor(999) def a(): 1/0 future=executor.submit(a) future.result() # An exception is raised here. That is normal del future # Variabl

[issue35930] Raising an exception raised in a "future" instance will create reference cycles

2020-12-15 Thread Jesús Cea Avión
Change by Jesús Cea Avión : -- versions: +Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue42090] zipfile.Path.joinpath API inconsistent with pathlib.Path.joinpath

2020-12-15 Thread miss-islington
miss-islington added the comment: New changeset 928dbfc16c9c4715459c80fe551c74702480db8b by Jason R. Coombs in branch 'master': bpo-42090: zipfile.Path.joinpath now accepts multiple arguments (GH-22976) https://github.com/python/cpython/commit/928dbfc16c9c4715459c80fe551c74702480db8b --

[issue42179] Clarify chaining exceptions in tutorial/errors.rst

2020-12-15 Thread Carol Willing
Carol Willing added the comment: New changeset 3f9fe23c05280dc5736c07bb0e968cdaf8c503d0 by Vladimir in branch 'master': bpo-42179: Clarify exception chaining (GH-23160) https://github.com/python/cpython/commit/3f9fe23c05280dc5736c07bb0e968cdaf8c503d0 --

[issue42125] linecache cannot get source for the __main__ module with a custom loader

2020-12-15 Thread Eugene Toder
Change by Eugene Toder : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue39416] Document default numeric string formats

2020-12-15 Thread Éric Araujo
Éric Araujo added the comment: New changeset aedc94b8e9d0f7700c665d8d1ba9c93df33e63a8 by Miss Islington (bot) in branch '3.8': [3.8] bpo-39416: change word case to not imply ABC (GH-22867) (GH-22869) https://github.com/python/cpython/commit/aedc94b8e9d0f7700c665d8d1ba9c93df33e63a8 --

[issue42115] Caching infrastructure for the evaluation loop: specialised opcodes

2020-12-15 Thread Inada Naoki
Inada Naoki added the comment: $ ./python -m pyperf compare_to master.json load_method.json -G --min-speed=1 Slower (15): - unpack_sequence: 63.2 ns +- 0.8 ns -> 68.5 ns +- 14.8 ns: 1.08x slower (+8%) - pathlib: 23.1 ms +- 0.3 ms -> 24.4 ms +- 0.4 ms: 1.05x slower (+5%) - scimark_fft: 418 ms +-

[issue42646] Add function that supports "applying" methods

2020-12-15 Thread Josh Rosenberg
Josh Rosenberg added the comment: If you're annoyed by having to use two lines, one to copy, one to call the mutating method, you can use the walrus operator: (y := x.copy()).some_method() or: (y := deepcopy(x)).some_method() Does that cover your use case? For the list case, you'd normall

<    1   2