[issue41264] Do not use the name of the built-in function as a variable.

2020-07-09 Thread Wansoo Kim
New submission from Wansoo Kim : Using the name of the built-in function as a variable can cause unexpected problems. ``` # example type = 'Hello' ... type('Happy') Traceback (most recent call last): File "", line 1, in TypeError: 'str' object is not callable ``` You can go back witho

[issue41263] Convert code.__new__ to Argument Clinic

2020-07-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +20573 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21426 ___ Python tracker ___

[issue37578] Change Glob: Allow Recursion for Hidden Files

2020-07-09 Thread Wansoo Kim
Wansoo Kim added the comment: Can you reproduce this bug? I was able to find the hidden file by recursive search by excuting the code below. ``` from glob import glob hidden = glob('**/.*') print(hidden) ``` -- nosy: +ys19991 ___ Python tracker

[issue41255] Argparse.parse_args exits on unrecognized option with exit_on_error=False

2020-07-09 Thread paul j3
paul j3 added the comment: For custom handling of unrecognized arguments, use parser_known_args(). You don't need this new parameter. -- ___ Python tracker ___ _

[issue41254] Add to/from string methods to datetime.timedelta

2020-07-09 Thread Miki Tebeka
Miki Tebeka added the comment: I think the lack sub second parts in these formats is a disadvantage. There's a merit in using a standard but IMO it's more natural to write someting like "2s" in a configuration value than "P2S" which is more cryptic. -- ___

[issue37894] [win] shutil.which can not find the path if 'cmd' include directory path and not include extension name

2020-07-09 Thread Wansoo Kim
Wansoo Kim added the comment: Can I solve this problem? -- nosy: +ys19991 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41255] Argparse.parse_args exits on unrecognized option with exit_on_error=False

2020-07-09 Thread paul j3
paul j3 added the comment: I didn't pay attention to the patch that added this "exit_on_error" parameter. So I don't know exactly what error handling it was supposed to handle or why. But given the location of the code change, it does not handle every possible error. Specifically it's in

[issue23802] patch: __deepcopy__ memo dict argument usage

2020-07-09 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: New changeset 3cbade7d309ab1ea97ec286d19d506df30bd1ab7 by Joannah Nanjekye in branch 'master': bpo-23802: patch: __deepcopy__ memo dict argument usage (GH-21326) https://github.com/python/cpython/commit/3cbade7d309ab1ea97ec286d19d506df30bd1ab7 --

[issue11354] argparse: nargs could accept range of options count

2020-07-09 Thread Christoph Anton Mitterer
Christoph Anton Mitterer added the comment: Next to code readability, there's IMO one could reason to properly support this would be a clean and easy way to get proper help strings for such options. Of course I can do something like: parser = argparse.ArgumentParser() parser.add_argument("--f

[issue37766] IDLE autocomplete: revise fetch_completions, add htest

2020-07-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: The attached tem4.py validates a refactoring of the mode ATTRS, what '' computation of bigl. The removal of dict 'namespace' invalidates if "__all__" in bigl: smalll = sorted(eval("__all__", namespace)) However,

[issue27609] IDLE completions: format, factor, and fix

2020-07-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: The removed post duplicates the content of #37766. Another bug is reported and will be fixed there. -- ___ Python tracker ___ _

[issue37765] IDLE: Include keywords in module-level autocomplete list

2020-07-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: PR 15138 always adds keywords to the big list for the current module. They are also normally present in the small list, when it only excludes '_' names. But if the module being edited contains '__all__', the small list, which is the first list presented, i

[issue37765] IDLE: Include keywords in module-level autocomplete list

2020-07-09 Thread miss-islington
miss-islington added the comment: New changeset 3d1c06e8b9eec5fc1ea2ed4dc1ea79c705da8ab8 by Miss Islington (bot) in branch '3.8': bpo-37765: Add keywords to IDLE tab completions (GH-15138) https://github.com/python/cpython/commit/3d1c06e8b9eec5fc1ea2ed4dc1ea79c705da8ab8 --

[issue37765] IDLE: Include keywords in module-level autocomplete list

2020-07-09 Thread miss-islington
miss-islington added the comment: New changeset fd27fb7f3dd157294f05bb060f7efd243732ab2d by Miss Islington (bot) in branch '3.9': bpo-37765: Add keywords to IDLE tab completions (GH-15138) https://github.com/python/cpython/commit/fd27fb7f3dd157294f05bb060f7efd243732ab2d --

[issue27609] IDLE completions: format, factor, and fix

2020-07-09 Thread Terry J. Reedy
Change by Terry J. Reedy : -- Removed message: https://bugs.python.org/msg373259 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue38854] Decorator with paren tokens in arguments breaks inspect.getsource

2020-07-09 Thread daniel hahler
Change by daniel hahler : -- title: Decorator breaks inspect.getsource -> Decorator with paren tokens in arguments breaks inspect.getsource ___ Python tracker ___

[issue38854] Decorator breaks inspect.getsource

2020-07-09 Thread daniel hahler
Change by daniel hahler : -- components: +Library (Lib) type: -> behavior versions: +Python 3.10, Python 3.9 ___ Python tracker ___ ___

[issue37765] IDLE: Include keywords in module-level autocomplete list

2020-07-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +20572 pull_request: https://github.com/python/cpython/pull/21424 ___ Python tracker ___ __

[issue37765] IDLE: Include keywords in module-level autocomplete list

2020-07-09 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +20571 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/21423 ___ Python tracker __

[issue37765] IDLE: Include keywords in module-level autocomplete list

2020-07-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset bce2eb4646021910aa4074d86f44a09b32d0b2b2 by Terry Jan Reedy in branch 'master': bpo-37765: Add keywords to IDLE tab completions (GH-15138) https://github.com/python/cpython/commit/bce2eb4646021910aa4074d86f44a09b32d0b2b2 -- __

[issue41263] Convert code.__new__ to Argument Clinic

2020-07-09 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Argument Clinic is already used for code.replace(). The proposed PR converts code.__new__() to Argument Clinic. -- components: Argument Clinic, Installation messages: 373428 nosy: larry, serhiy.storchaka priority: normal severity: normal status: o

[issue41261] 3.9-dev SEGV in object_recursive_isinstance in ast.literal_eval

2020-07-09 Thread Arcadiy Ivanov
Change by Arcadiy Ivanov : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue35919] multiprocessing: shared manager Pool fails with AttributeError

2020-07-09 Thread Felipe A. Hernandez
Change by Felipe A. Hernandez : -- components: +Library (Lib) type: -> behavior versions: +Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___ __

[issue35919] multiprocessing: shared manager Pool fails with AttributeError

2020-07-09 Thread Felipe A. Hernandez
Felipe A. Hernandez added the comment: import traceback import multiprocessing.managers class MyManager(multiprocessing.managers.SyncManager): pass class DictList(multiprocessing.managers.BaseProxy): _method_to_typeid_ = {'__getitem__': 'dict'} def __getitem__(self, key):

[issue41259] Find adverbs is not correct on the documentation

2020-07-09 Thread Peter Otten
Peter Otten <__pete...@web.de> added the comment: While I don't want to start a philosical discussion -- is that really better? Finding adverbs with a regex doesn't work in the general case -- think butterfly, panoply, well -- and the example is meant to illustrate the usage of re.findall() r

[issue41262] Convert memoryview to Argument Clinic

2020-07-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +20570 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21421 ___ Python tracker ___

[issue41262] Convert memoryview to Argument Clinic

2020-07-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Argument Clinic, Interpreter Core -Extension Modules nosy: +larry ___ Python tracker ___ __

[issue41262] Convert memoryview to Argument Clinic

2020-07-09 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The proposed PR converts Objects/memoryobject.c to Argument Clinic. Advantages: * Highly optimized code is used to parse arguments instead of slow PyArg_ParseTupleAndKeywords(). * All future improvements of argument parsing (better performance or errors

[issue41260] datetime: strftime method takes different keyword argument: fmt (pure) or format (C)

2020-07-09 Thread Anthony Sottile
Anthony Sottile added the comment: awesome, I'm going to work through this with someone in my discord as a demo / mentorship opportunity -- hope that's ok! -- ___ Python tracker

[issue41251] __future__.barry_as_FLUFL.getMandatoryRelease() is wrong

2020-07-09 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Thanks for keeping the first 'F' in FLUFL! :D -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue41259] Find adverbs is not correct on the documentation

2020-07-09 Thread Rim Chatti
Rim Chatti added the comment: re.findall(r"\w+ly", text) does not find all adverbs in a sentence, it finds words that contain ly (not ending with ly) : if text= 'andlying clearly', output: [andly, clearly] which is wrong! the right way to do this is re.findall(r'\b\w+ly\b',text) output= clear

[issue41260] datetime: strftime method takes different keyword argument: fmt (pure) or format (C)

2020-07-09 Thread Paul Ganssle
Paul Ganssle added the comment: I think a positional-only argument would be the best option if we could do it, but it would be a backwards-incompatible change and it's probably not worth the hassle. If anyone is using the keyword argument, they're probably using `format=` rather than `fmt=`

[issue41260] datetime: strftime method takes different keyword argument: fmt (pure) or format (C)

2020-07-09 Thread Ruairidh MacLeod
Change by Ruairidh MacLeod : -- nosy: +rkm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue41261] 3.9-dev SEGV in object_recursive_isinstance in ast.literal_eval

2020-07-09 Thread Arcadiy Ivanov
Arcadiy Ivanov added the comment: $ PYTHONWARNINGS=ignore gdb --args /home/arcivanov/Documents/src/arcivanov/pybuilder/target/venv/test/cpython-3.9.0.beta.4/bin/python ./repro.py GNU gdb (GDB) Fedora 9.1-5.fc32 Copyright (C) 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version

[issue41261] 3.9-dev SEGV in object_recursive_isinstance in ast.literal_eval

2020-07-09 Thread Arcadiy Ivanov
Arcadiy Ivanov added the comment: This is in the 3.9 branch as of a0a6f1167834c87f12e2eca11dd77143103e7691 -- ___ Python tracker ___ __

[issue41261] 3.9-dev SEGV in object_recursive_isinstance in ast.literal_eval

2020-07-09 Thread Arcadiy Ivanov
New submission from Arcadiy Ivanov : "Short" reproducer: repro.py: ``` import sys from os import getcwd, chdir from runpy import run_path def smoke_test(script, *args): old_argv = list(sys.argv) del sys.argv[:] sys.argv.append(script) sys.argv.extend(args) old_modules =

[issue41194] Python 3.9.0b3 crash on compile() in PyAST_Check() when the _ast module is loaded more than once

2020-07-09 Thread Arcadiy Ivanov
Arcadiy Ivanov added the comment: Ok, then. I'll open a new bug. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue40832] hi param in bisect module should not accept negative values

2020-07-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: If the implementation made it easy, I would add the check. But since it would be an invasive change, I'm inclined to pass on it because it is so uncommon — the lo and hi arguments are rarely used, even more rarely with a negative hi paired with a non-nega

[issue41172] test_peg_generator C tests fail on Windows ARM

2020-07-09 Thread miss-islington
miss-islington added the comment: New changeset c65ee555124a5647b8e3a5d58c906fa5db9e927a by Miss Islington (bot) in branch '3.9': bpo-41172: Fix check for compiler in test suite (GH-21400) https://github.com/python/cpython/commit/c65ee555124a5647b8e3a5d58c906fa5db9e927a --

[issue33754] f-strings should be part of the Grammar

2020-07-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: I share Eric's concern about "unknowingly changing the behavior of f-strings." -- nosy: +rhettinger ___ Python tracker ___ ___

[issue41250] Number separators in different places

2020-07-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thank you for the suggestion, but we'll decline for the reasons listed in the PEP and those listed by Eric. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue41259] Find adverbs is not correct on the documentation

2020-07-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: Please submit a PR. The parenthesis are not needed: re.findall(r"\b\w+ly\b", text) -- keywords: +easy nosy: +rhettinger versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.5 ___ Python tracker

[issue41172] test_peg_generator C tests fail on Windows ARM

2020-07-09 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue41172] test_peg_generator C tests fail on Windows ARM

2020-07-09 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +20568 pull_request: https://github.com/python/cpython/pull/21419 ___ Python tracker _

[issue41172] test_peg_generator C tests fail on Windows ARM

2020-07-09 Thread Steve Dower
Steve Dower added the comment: New changeset af56c4fc76ac39ce76d649d7bebf7f78c1add4fa by Steve Dower in branch 'master': bpo-41172: Fix check for compiler in test suite (GH-21400) https://github.com/python/cpython/commit/af56c4fc76ac39ce76d649d7bebf7f78c1add4fa -- _

[issue41260] datetime: strftime method takes different keyword argument: fmt (pure) or format (C)

2020-07-09 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +belopolsky, p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue37179] asyncio loop.start_tls() provide support for TLS in TLS

2020-07-09 Thread Yury Selivanov
Yury Selivanov added the comment: > The aiohttp issue says they won't fix this until asyncio supports it. Kinda > understand that. I saw you opened an issue with aiohttp to allow this and they're open to it. I hope that will get some movement. It also would be a big test for uvloop's (and 3

[issue41247] asyncio.set_running_loop() cache running loop holder

2020-07-09 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 0b6169e391ce6468aad711f08ffb829362293ad5 by Tony Solomonik in branch '3.8': bpo-41247: asyncio.set_running_loop() cache running loop holder (#21406) https://github.com/python/cpython/commit/0b6169e391ce6468aad711f08ffb829362293ad5 --

[issue41202] Allow to provide custom exception handler to asyncio.run()

2020-07-09 Thread Yury Selivanov
Yury Selivanov added the comment: > So how about maybe: That wouldn't work. You still haven't explained what's wrong with calling `loop = asyncio.get_running_loop()` inside `async def main()`. That literally solves all problems without the need of us modifying any APIs. -- _

[issue41260] datetime: strftime method takes different keyword argument: fmt (pure) or format (C)

2020-07-09 Thread Anthony Sottile
New submission from Anthony Sottile : C: https://github.com/python/cpython/blob/8b33961e4bc4020d8b2d5b949ad9d5c669300e89/Modules/_datetimemodule.c#L3183 pure python: https://github.com/python/cpython/blob/8b33961e4bc4020d8b2d5b949ad9d5c669300e89/Lib/datetime.py#L927 this makes it difficult

[issue41259] Find adverbs is not correct on the documentation

2020-07-09 Thread Rim Chatti
Change by Rim Chatti : -- title: Find adverbs is not correct -> Find adverbs is not correct on the documentation ___ Python tracker ___ ___

[issue41259] Find adverbs is not correct

2020-07-09 Thread Rim Chatti
New submission from Rim Chatti : re.findall(r"\w+ly", text) does not find all adverbs in a sentence, it finds words that contain ly (not ending with ly) : if text= 'andlying clearly', output: [andly, clearly] which is wrong! the right way to do this is re.findall(r'\b(\w+ly)\b',text) output= c

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-07-09 Thread mohamed koubaa
Change by mohamed koubaa : -- pull_requests: +20567 pull_request: https://github.com/python/cpython/pull/21418 ___ Python tracker ___

[issue41004] [CVE-2020-14422] Hash collisions in IPv4Interface and IPv6Interface

2020-07-09 Thread STINNER Victor
Change by STINNER Victor : -- title: Hash collisions in IPv4Interface and IPv6Interface -> [CVE-2020-14422] Hash collisions in IPv4Interface and IPv6Interface ___ Python tracker _

[issue41258] CVE-2020-14422

2020-07-09 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python

[issue41258] CVE-2020-14422

2020-07-09 Thread STINNER Victor
Change by STINNER Victor : -- nosy: vstinner priority: normal severity: normal status: open title: CVE-2020-14422 ___ Python tracker ___ ___

[issue41255] Argparse.parse_args exits on unrecognized option with exit_on_error=False

2020-07-09 Thread Matthew Hughes
Matthew Hughes added the comment: I've attached a patch containing tests showing the current behavior, namely that exit_on_error does not change the behavior of argparse.ArgumentParser.parse_args in either case: * An unrecognized option is given * A required option is not given Should the d

[issue39981] Default values for AST Nodes

2020-07-09 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- pull_requests: +20566 pull_request: https://github.com/python/cpython/pull/21417 ___ Python tracker ___ _

[issue29590] Incorrect stack traces when re-entering a generator/coroutine stack via .throw()

2020-07-09 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +20565 pull_request: https://github.com/python/cpython/pull/21416 ___ Python tracker _

[issue29590] Incorrect stack traces when re-entering a generator/coroutine stack via .throw()

2020-07-09 Thread Mark Shannon
Mark Shannon added the comment: New changeset 8b33961e4bc4020d8b2d5b949ad9d5c669300e89 by Chris Jerdonek in branch 'master': bpo-29590: fix stack trace for gen.throw() with yield from (#19896) https://github.com/python/cpython/commit/8b33961e4bc4020d8b2d5b949ad9d5c669300e89 -- nosy:

[issue40275] test.support has way too many imports

2020-07-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 96a6a6d42be272a27562d98549bbffc0d1854669 by Hai Shi in branch 'master': bpo-40275: Use new test.support helper submodules in tests (GH-21412) https://github.com/python/cpython/commit/96a6a6d42be272a27562d98549bbffc0d1854669 -- ___

[issue41257] mimetypes.guess_extension('video/x-matroska') return wrong value

2020-07-09 Thread Saber Hayati
New submission from Saber Hayati : Code: import mimetypes print(mimetypes.guess_extension('video/x-matroska')) # return '.mpv' instead of '.mkv' Python 3.8.3 on Linux -- components: 2to3 (2.x to 3.x conversion tool) messages: 373402 nosy: Saber Hayati priority: normal severity: normal

[issue40941] Merge generator.gi_running and frame executing flag into single frame state

2020-07-09 Thread Mark Shannon
Mark Shannon added the comment: issue29590 is unrelated -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue41254] Add to/from string methods to datetime.timedelta

2020-07-09 Thread Martin Panter
Martin Panter added the comment: I don't know how much support this will get since there is already a str(timedelta) operation defined with a different format. But I don't like that format much. The day[s] part is too verbose, the H:MM:SS part could too easily be interpreted as D:HH:MM, and

[issue40327] list(sys.modules.items()) can throw RuntimeError: dictionary changed size during iteration

2020-07-09 Thread Nir Soffer
Nir Soffer added the comment: Does this really affect only python 3.7? We see this in RHEL 8.2, using python 3.6.8: https://bugzilla.redhat.com/show_bug.cgi?id=1837199#c69 Likely caused by: lvs = dict(self._lvs) Without locking. self._lvs is a dict that may contain 1000's of items. I'm

[issue41199] Docstring convention not followed for dataclasses documentation page

2020-07-09 Thread miss-islington
miss-islington added the comment: New changeset 1e66f7e102b64da5a6d69b135cf7d82708aca231 by Miss Islington (bot) in branch '3.8': bpo-41199: Docstring convention not followed for dataclasses documentation page (GH-21413) https://github.com/python/cpython/commit/1e66f7e102b64da5a6d69b135cf7d8

[issue41199] Docstring convention not followed for dataclasses documentation page

2020-07-09 Thread miss-islington
miss-islington added the comment: New changeset b4beda1a865972dc6477fd84b1a96ff5ccbfb45a by Miss Islington (bot) in branch '3.9': bpo-41199: Docstring convention not followed for dataclasses documentation page (GH-21413) https://github.com/python/cpython/commit/b4beda1a865972dc6477fd84b1a96f

[issue41199] Docstring convention not followed for dataclasses documentation page

2020-07-09 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41183] Workaround or fix for SSL ".._KEY_TOO_SMALL" test failures

2020-07-09 Thread Larry Hastings
Larry Hastings added the comment: Any news? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue41199] Docstring convention not followed for dataclasses documentation page

2020-07-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +20564 pull_request: https://github.com/python/cpython/pull/21415 ___ Python tracker ___ __

[issue41199] Docstring convention not followed for dataclasses documentation page

2020-07-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +20563 pull_request: https://github.com/python/cpython/pull/21414 ___ Python tracker ___ __

[issue41199] Docstring convention not followed for dataclasses documentation page

2020-07-09 Thread miss-islington
miss-islington added the comment: New changeset 61bb24a270d15106decb1c7983bf4c2831671a75 by marload in branch 'master': bpo-41199: Docstring convention not followed for dataclasses documentation page (GH-21413) https://github.com/python/cpython/commit/61bb24a270d15106decb1c7983bf4c2831671a75

[issue41199] Docstring convention not followed for dataclasses documentation page

2020-07-09 Thread Wansoo Kim
Change by Wansoo Kim : -- keywords: +patch pull_requests: +20562 pull_request: https://github.com/python/cpython/pull/21413 ___ Python tracker ___ _

[issue40275] test.support has way too many imports

2020-07-09 Thread hai shi
Change by hai shi : -- pull_requests: +20561 pull_request: https://github.com/python/cpython/pull/21412 ___ Python tracker ___ ___ P

[issue41033] readline.c: SEGFAULT on SIGWINCH when loaded twice

2020-07-09 Thread daniel hahler
daniel hahler added the comment: 91e1bc18bd (bpo-41194) reminded me of this. Maybe the same mechanism could be used here. -- ___ Python tracker ___ ___

[issue41252] Incorrect reference counting in _ssl.c's _servername_callback()

2020-07-09 Thread Christian Heimes
Christian Heimes added the comment: Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41252] Incorrect reference counting in _ssl.c's _servername_callback()

2020-07-09 Thread miss-islington
miss-islington added the comment: New changeset 90584c02b4dcfc087bee5e4131b7ba72b669d58a by Miss Islington (bot) in branch '3.9': bpo-41252: Fix incorrect refcounting in _ssl.c's _servername_callback() (GH-21407) https://github.com/python/cpython/commit/90584c02b4dcfc087bee5e4131b7ba72b669d5

[issue41252] Incorrect reference counting in _ssl.c's _servername_callback()

2020-07-09 Thread miss-islington
miss-islington added the comment: New changeset 54babbe976531d4d1c21ea415f71e7c6846e15bc by Miss Islington (bot) in branch '3.8': bpo-41252: Fix incorrect refcounting in _ssl.c's _servername_callback() (GH-21407) https://github.com/python/cpython/commit/54babbe976531d4d1c21ea415f71e7c6846e15

[issue41202] Allow to provide custom exception handler to asyncio.run()

2020-07-09 Thread tomaszdrozdz
tomaszdrozdz added the comment: OK. I understand. So how about maybe: def run(main, *, debug=False, loop=None): ... if loop: loop = events.new_event_loop() So we could customize loop like: loop = events.new_event_loop() loop.set_X

[issue41256] activate script created by venv is not smart enough

2020-07-09 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue41252] Incorrect reference counting in _ssl.c's _servername_callback()

2020-07-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +20559 pull_request: https://github.com/python/cpython/pull/21410 ___ Python tracker ___ __

[issue41252] Incorrect reference counting in _ssl.c's _servername_callback()

2020-07-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +20560 pull_request: https://github.com/python/cpython/pull/21411 ___ Python tracker ___ __

[issue40941] Merge generator.gi_running and frame executing flag into single frame state

2020-07-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: Mark, I want to flag issue29590 for you ("Incorrect stack traces when re-entering a generator/coroutine stack via .throw()") in case this issue relates to or would help at all with that. -- nosy: +chris.jerdonek _

[issue41252] Incorrect reference counting in _ssl.c's _servername_callback()

2020-07-09 Thread miss-islington
miss-islington added the comment: New changeset ee96f32ca24779656d3c8736d26671fc3689f0a3 by Zackery Spytz in branch 'master': bpo-41252: Fix incorrect refcounting in _ssl.c's _servername_callback() (GH-21407) https://github.com/python/cpython/commit/ee96f32ca24779656d3c8736d26671fc3689f0a3

[issue41251] __future__.barry_as_FLUFL.getMandatoryRelease() is wrong

2020-07-09 Thread Christian Heimes
Christian Heimes added the comment: It's an easter egg and internal joke. Barry would be disapointed if we would deprive him of his title. -- nosy: +barry, christian.heimes resolution: -> wont fix stage: -> resolved status: open -> closed ___ Pyt

[issue41256] activate script created by venv is not smart enough

2020-07-09 Thread kunaltyagi
New submission from kunaltyagi : TLDR: `activate` script should be able to: * inform user if it has been run and not sourced * act as a placeholder to detect the shell being used and source the necessary `activate.{SHELL}` instead of throwing an error --- It's mildly infuriating that `activate

[issue41255] Argparse.parse_args exits on unrecognized option with exit_on_error=False

2020-07-09 Thread Matthew Hughes
Matthew Hughes added the comment: > typo in the docs that it should have used enabled instead of enable Well spotted, I'll happily fix this up. > I guess the docs by manually mean that ArgumentError will be raised when > exit_on_error is False that can be handled. To be clear, in this case,

[issue12800] 'tarfile.StreamError: seeking backwards is not allowed' when extract symlink

2020-07-09 Thread Julien Palard
Julien Palard added the comment: Strange fact, this was already fixed in 011525ee92eb1c13ad1a62d28725a840e28f8160 (which closes issue10761, nice spot Andrew) but was lost during a merge in 0d28a61d23: $ git show 0d28a61d23 commit 0d28a61d233c02c458c8b4a25613be2f4979331e Merge: ed3a303548 d7c9

[issue12800] 'tarfile.StreamError: seeking backwards is not allowed' when extract symlink

2020-07-09 Thread Julien Palard
Change by Julien Palard : -- pull_requests: +20558 pull_request: https://github.com/python/cpython/pull/21409 ___ Python tracker ___ ___

[issue41255] Argparse.parse_args exits on unrecognized option with exit_on_error=False

2020-07-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I guess the docs by manually mean that ArgumentError will be raised when exit_on_error is False that can be handled. By default with exit_on_error being True self.error() which raises SystemExit and catching SystemExit can mask other errors. This w

[issue41255] Argparse.parse_args exits on unrecognized option with exit_on_error=False

2020-07-09 Thread Matthew Hughes
New submission from Matthew Hughes : >>> import argparse >>> parser = argparse.ArgumentParser(exit_on_error=False) >>> parser.parse_args(["--unknown"]) usage: [-h] : error: unrecognized arguments: --unknown The docs https://docs.python.org/3.10/library/argparse.html#exit-on-erro

[issue41237] Access violation in python39.dll!meth_dealloc on exit

2020-07-09 Thread Christoph Gohlke
Christoph Gohlke added the comment: This issue seems specific to C extensions built with pybind11 (using 2.5.0 and master branch). Building the minimal example at https://github.com/pybind/python_example and running `python.exe -c"import python_example"` will crash at exit. -- statu

[issue41254] Add to/from string methods to datetime.timedelta

2020-07-09 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue41254] Add to/from string methods to datetime.timedelta

2020-07-09 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +belopolsky, p-ganssle versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-l