[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

Re: [ANN] Python Brain Teasers Book is Out

2020-05-05 Thread Abdur-Rahmaan Janhangeer
Thanks a lot! The list is very dormant and we have begun working to make the list beneficial for the community. It is supposed to be a resource place for Python literature advice, from blog posts to books writing. I have also removed your moderate flag so that your future messages won't be held.

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

[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

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

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

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

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

[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

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

Re: [ANN] Python Brain Teasers Book is Out

2020-05-05 Thread Miki Tebeka
Hi, > Would be grateful if you could post it to python-authors also: > https://mail.python.org/mailman/listinfo/python-authors Done. Though list seems very dormant. Thanks, Miki -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Installation Problem

2020-05-05 Thread Souvik Dutta
What is the error can you copy and paste? Because this list does not support attachment. Souvik flutter dev On Wed, May 6, 2020, 7:49 AM Adolf Yoshua Marbun wrote: > Yes, I did. I did this before the installation began, checked the "add to > PATH" option. > > On Wed, May 6, 2020 at 9:17 AM

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

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

Re: Python Installation Problem

2020-05-05 Thread Adolf Yoshua Marbun
Yes, I did. I did this before the installation began, checked the "add to PATH" option. On Wed, May 6, 2020 at 9:17 AM Souvik Dutta wrote: > Have you added python to path? If not then you will have to do it. > > Souvik flutter dev > > On Wed, May 6, 2020, 1:28 AM Adolf Yoshua Marbun < >

Re: Python Installation Problem

2020-05-05 Thread Souvik Dutta
Have you added python to path? If not then you will have to do it. Souvik flutter dev On Wed, May 6, 2020, 1:28 AM Adolf Yoshua Marbun wrote: > Dear Python, > > I am currently learning about Python. First thing first, I need to install > the interpreter Python 3.8.2 before I get to the IDE.

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

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

[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

[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

Re: print() ignores context ?

2020-05-05 Thread Greg Ewing
On 1/05/20 8:33 pm, R.Wieser wrote: getcontext().rounding=ROUND_HALF_UP print(round(1.5)) print(round(2.5)) If you're talking about getcontext() from the decimal module, that only affects operations with Decimals, not regular floats. Python doesn't provide a way to change the rounding mode

[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

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

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

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

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

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

[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

[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

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

[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

[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

Re: Python Installation Problem

2020-05-05 Thread MRAB
On 2020-05-05 23:20, Rhodri James wrote: On 05/05/2020 05:34, Adolf Yoshua Marbun wrote: Dear Python, I am currently learning about Python. First thing first, I need to install the interpreter Python 3.8.2 before I get to the IDE. But, I have problem during running command. The installation

Re: Python Installation Problem

2020-05-05 Thread Rhodri James
On 05/05/2020 05:34, Adolf Yoshua Marbun wrote: Dear Python, I am currently learning about Python. First thing first, I need to install the interpreter Python 3.8.2 before I get to the IDE. But, I have problem during running command. The installation was successful. When I try to run the

The '-c' CLI option removes just the command str.

2020-05-05 Thread Simon Forman via Python-list
Is this anything? When you run a python command from the shell to just print the command line args you get this: $ python -c "import sys; print(sys.argv)" ['-c'] But I would expect one of these: Either the '-c' option consumes both args: $ python -c "import sys; print(sys.argv)"

Feature request: method to cancel or bail out from fileinput.input(inplace=True)

2020-05-05 Thread Sparr Risher
After using https://docs.python.org/3/library/fileinput.html to open a file for inplace filtering, a backup is created before output is redirected to the new file. It is possible, but non-trivial and non-obvious, to bail out of this situation, putting the backed up file back in place and ending

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

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

[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

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

[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

[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

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

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

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

[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

[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

[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

[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

[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

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

Python Installation Problem

2020-05-05 Thread Adolf Yoshua Marbun
Dear Python, I am currently learning about Python. First thing first, I need to install the interpreter Python 3.8.2 before I get to the IDE. But, I have problem during running command. The installation was successful. When I try to run the command prompt, typing "python --version", it always

Re: Multiprocessing vs. concurrent.futures, Linux vs. Windows

2020-05-05 Thread Terry Reedy
On 5/4/2020 9:05 PM, John Ladasky wrote: On Monday, May 4, 2020 at 4:09:53 PM UTC-7, Terry Reedy wrote: [snip] Hi Terry, Thanks for your reply. I have been hacking at this for a few hours. I have learned two things: 1. Windows hangs unless you explicitly pass any references you want to

[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

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

[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

[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

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

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

[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

[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

[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

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

[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

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

[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

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

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

[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

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

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

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

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

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

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

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

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

[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

[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

[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

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

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

[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

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

[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

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

[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

[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

[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

[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

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

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

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

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

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

[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

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

[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

[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

[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

  1   2   >