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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[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

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

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

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

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

[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

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

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

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

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

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

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

[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

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

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

[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 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/2a3b876b0286b22a9058510d9e51dc

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

[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

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

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

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

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

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

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

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

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

[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/96074de573f82fc66a2bd73c369

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

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

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

[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

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

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

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

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

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

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

[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 Robert Rouhani
Robert Rouhani added the comment: No problem! Happy to contribute where I can :) -- ___ Python tracker ___ ___ Python-bugs-list mai

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

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

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

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

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

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

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

[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

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

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

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

[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

[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

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

<    1   2