[issue44561] Some expired hyperlinks in Python documentation

2021-07-18 Thread Steven Hsu
Steven Hsu added the comment: Thanks for reminding. In the beginning, I didn't add a NEWS entry in the PR (#27032). However, after 11 days when there was no progress of the PR, I doubted that maybe I missed something, so I made a NEWS entry to make sure. And soon after the NEWS entry was

[issue44561] Some expired hyperlinks in Python documentation

2021-07-18 Thread Éric Araujo
Éric Araujo added the comment: This can be closed. Thanks for the patch! For next time, such small doc fixes don’t need a NEWS entry. -- nosy: +eric.araujo ___ Python tracker

[issue44668] More differences in instance and subclass checks between typing.Union and types.Union

2021-07-18 Thread Guido van Rossum
Guido van Rossum added the comment: This seems a low-priority issue to me. The code is invalid, but I don't think it's very important to raise an exception (typing.Union is also inconsistent). Static type checkers will flag all these as errors. (Or perhaps none of them? It may depend on the

[issue44554] pdb.main is unnecessarily complicated

2021-07-18 Thread miss-islington
miss-islington added the comment: New changeset 2c2055884420f22afb4d2045bbdab7aa1394cb63 by Jason R. Coombs in branch 'main': bpo-44554: refactor pdb targets (and internal tweaks) (GH-26992) https://github.com/python/cpython/commit/2c2055884420f22afb4d2045bbdab7aa1394cb63 -- nosy:

[issue43086] Excess data in not handled properly in binascii.a2b_base64()

2021-07-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: I've merged Idan's PR adding a strict_mode parameter to a2b_base64. It defaults to False for backwards compatibility. >From a security perspective, it'd be _ideal_ if this were True. But I expect >doing that would break a bunch of existing code and

[issue43086] Excess data in not handled properly in binascii.a2b_base64()

2021-07-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 35b98e38b6edd63153fc8e092f94cb20725dacc1 by Idan Moral in branch 'main': bpo-43086: Add handling for out-of-spec data in a2b_base64 (GH-24402) https://github.com/python/cpython/commit/35b98e38b6edd63153fc8e092f94cb20725dacc1 --

[issue44561] Some expired hyperlinks in Python documentation

2021-07-18 Thread miss-islington
miss-islington added the comment: New changeset 2f643b1a8cd53f3c2f49f931bc98990a3b400495 by Miss Islington (bot) in branch '3.9': [3.9] bpo-44561: Update hyperlinks in Doc/distributing/index.rst (GH-27032) (GH-27233)

[issue44561] Some expired hyperlinks in Python documentation

2021-07-18 Thread miss-islington
miss-islington added the comment: New changeset bce2847169e181ae894b323b9d5c31b0a3bec621 by Miss Islington (bot) in branch '3.10': [3.10] bpo-44561: Update hyperlinks in Doc/distributing/index.rst (GH-27032) (GH-27234)

[issue44663] Possible bug in datetime utc

2021-07-18 Thread Tim Peters
Tim Peters added the comment: If you want to pursue changing what utcnow() does, python-ideas or python-dev would probably need to be involved. Backward-incompatible changes are very hard sells. As Paul Ganssle noted here, https://blog.ganssle.io/articles/2019/11/utcnow.html in Python 2,

[issue44561] Some expired hyperlinks in Python documentation

2021-07-18 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +25781 stage: backport needed -> patch review pull_request: https://github.com/python/cpython/pull/27233 ___ Python tracker

[issue44561] Some expired hyperlinks in Python documentation

2021-07-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +25782 pull_request: https://github.com/python/cpython/pull/27234 ___ Python tracker ___

[issue44561] Some expired hyperlinks in Python documentation

2021-07-18 Thread Nick Coghlan
Change by Nick Coghlan : -- stage: patch review -> backport needed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44561] Some expired hyperlinks in Python documentation

2021-07-18 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset b494685b2548489efcc66993cc6c13b027ce3b26 by Steven Hsu in branch 'main': bpo-44561: Update hyperlinks in Doc/distributing/index.rst (#27032) https://github.com/python/cpython/commit/b494685b2548489efcc66993cc6c13b027ce3b26 -- nosy:

[issue44340] Add support for building cpython with clang thin lto

2021-07-18 Thread Dong-hee Na
Dong-hee Na added the comment: clang version 11.0.0 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44340] Add support for building cpython with clang thin lto

2021-07-18 Thread Dong-hee Na
Dong-hee Na added the comment: The test is executed under the following environments. There is no significant performance changed. MS Azure: D8s v3 CentOS Linux release 8.2.2004 (Core) [corona10@PythonLinux cpython]$ ./python -m pyperformance compare full.json thin.json full.json =

[issue44340] Add support for building cpython with clang thin lto

2021-07-18 Thread Dong-hee Na
Dong-hee Na added the comment: FYI, Thin LTO shows enhanced build time. Full LTO (./configure --with-lto=full CC=clang) real2m33.740s user8m25.695s sys 0m13.124s Thin LTO (./configure --with-lto=thin CC=clang) real1m51.867s user12m53.694s sys 0m12.786s --

[issue22240] argparse support for "python -m module" in help

2021-07-18 Thread Nils Kattenbeck
Nils Kattenbeck added the comment: I am not sure if the patch correctly handles calling a nested module (e.g. `python3 -m serial.tools.miniterm`). Would it also be possible to detect if python or python3 was used for the invocation? -- nosy: +Nils Kattenbeck

[issue44670] bug on showing tuple on console

2021-07-18 Thread Zachary Ware
Zachary Ware added the comment: As Dennis said, this isn't a bug. Try printing `b` and `c` as well, and you'll find 3 and 4. -- nosy: +zach.ware resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue44670] bug on showing tuple on console

2021-07-18 Thread Dennis Sweeney
Dennis Sweeney added the comment: I don't know what behavior you were expecting, but *args means "the rest of the positional arguments", not "all of the positional arguments." See https://docs.python.org/3/tutorial/controlflow.html?highlight=variadic#arbitrary-argument-lists --

[issue44671] Create a built-in yaml module

2021-07-18 Thread Jarrod Price
New submission from Jarrod Price : Would it be possible for someone to take the time to create a built-in yaml module based on the current spec (v1.2) ? https://yaml.org/spec/1.2/spec.html Just like how we can do `import json`, there is currently no `import yaml`. I myself (and I assume

[issue42095] plistlib: Add tests that compare with plutil(1)

2021-07-18 Thread Hasan
Hasan added the comment: You are welcome! Thanks for accepting -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44670] bug on showing tuple on console

2021-07-18 Thread Toby Spooner
New submission from Toby Spooner : def func(a,b,c , *args , **kwargs): print(a) print(args) print(kwargs) func(2,3,4,5,Carlson=240,Shehroz="maladiss") # print(args) showing (5,). NEED TO FIX. python 3.9.6 -- components: Interpreter Core files: abc.png messages: 397759

[issue44669] TypeError: 'type' object is not subscriptable

2021-07-18 Thread Michal D.
New submission from Michal D. : While attempting to run an application with was working before I had updated Python to the version 3.9, I had recieved following error message: ` Fatal Python error: init_import_size: Failed to import the site module Python runtime state: initialized

[issue44668] More differences in instance and subclass checks between typing.Union and types.Union

2021-07-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Library (Lib) type: -> behavior versions: +Python 3.10, Python 3.11 ___ Python tracker ___

[issue44668] More differences in instance and subclass checks between typing.Union and types.Union

2021-07-18 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : 1. Checks for types.Union ignore any non-type args. Checks for typing.Union require fail on first checked non-type (but it can short circuit). >>> import typing >>> T = typing.TypeVar('T') >>> issubclass(int, int | T | str) True >>> issubclass(int, str |

[issue44600] match/case statements trace incorrectly in 3.10.0b4

2021-07-18 Thread Brandt Bucher
Brandt Bucher added the comment: Yeah, this is actively being worked on. Thanks for asking. If anything changes, I’ll let you know and you can pick it up then! -- ___ Python tracker

[issue44340] Add support for building cpython with clang thin lto

2021-07-18 Thread Dong-hee Na
Change by Dong-hee Na : -- versions: +Python 3.11 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44340] Add support for building cpython with clang thin lto

2021-07-18 Thread Dong-hee Na
Dong-hee Na added the comment: I am now building the experiment environment to compare between thin-lto and full-lto -- ___ Python tracker ___

[issue44653] Parameter substitution in the union type does not work with typing.Union

2021-07-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +25780 pull_request: https://github.com/python/cpython/pull/27232 ___ Python tracker ___

[issue42355] symtable: get_namespace doesn't check whether if there are multiple namespaces or no namespaces at all

2021-07-18 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- type: security -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44653] Parameter substitution in the union type does not work with typing.Union

2021-07-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -25757 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44340] Add support for building cpython with clang thin lto

2021-07-18 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +25779 pull_request: https://github.com/python/cpython/pull/27231 ___ Python tracker ___

[issue42355] symtable: get_namespace doesn't check whether if there are multiple namespaces or no namespaces at all

2021-07-18 Thread Ali mazloum
Change by Ali mazloum : -- type: -> security ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44654] Refactor and clean up the union type implementation

2021-07-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44654] Refactor and clean up the union type implementation

2021-07-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a6670cdf77aab2b1ee7be0b9df060dcac2a2dc48 by Serhiy Storchaka in branch '3.10': [3.10] bpo-44654: Do not export the union type related symbols (GH-27223). (GH-27225)

[issue44025] Match doc: Clarify '_' as a soft keyword

2021-07-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: -25773 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44018] random.seed mutates input bytearray

2021-07-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: -25770 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38352] In typing docs, note explicit import needed for IO and Pattern/Match

2021-07-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: -25772 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43822] Improve syntax errors for missing commas

2021-07-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: -25769 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40297] test_socket.CANTest is broken at HEAD on master

2021-07-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: -25776 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44001] typing.Literal: args must be hashable, not immutable

2021-07-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: -25771 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42686] include built-in Math functions in SQLite to 3.35.0 of march 2021

2021-07-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: -25775 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32822] finally block doesn't re-raise exception if return statement exists inside

2021-07-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: -25774 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35753] Importing call from unittest.mock directly causes ValueError

2021-07-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: -25778 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44040] Update broken link in pathlib source

2021-07-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: -25777 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35753] Importing call from unittest.mock directly causes ValueError

2021-07-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +25778 pull_request: https://github.com/python/cpython/pull/27228 ___ Python tracker ___

[issue42686] include built-in Math functions in SQLite to 3.35.0 of march 2021

2021-07-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal nosy_count: 10.0 -> 11.0 pull_requests: +25775 pull_request: https://github.com/python/cpython/pull/27228 ___ Python tracker

[issue44040] Update broken link in pathlib source

2021-07-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal nosy_count: 4.0 -> 5.0 pull_requests: +25777 pull_request: https://github.com/python/cpython/pull/27228 ___ Python tracker

[issue38352] In typing docs, note explicit import needed for IO and Pattern/Match

2021-07-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal nosy_count: 8.0 -> 9.0 pull_requests: +25772 pull_request: https://github.com/python/cpython/pull/27228 ___ Python tracker

[issue44018] random.seed mutates input bytearray

2021-07-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal nosy_count: 6.0 -> 7.0 pull_requests: +25770 pull_request: https://github.com/python/cpython/pull/27228 ___ Python tracker

[issue40297] test_socket.CANTest is broken at HEAD on master

2021-07-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal nosy_count: 5.0 -> 6.0 pull_requests: +25776 pull_request: https://github.com/python/cpython/pull/27228 ___ Python tracker

[issue32822] finally block doesn't re-raise exception if return statement exists inside

2021-07-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal nosy_count: 7.0 -> 8.0 pull_requests: +25774 pull_request: https://github.com/python/cpython/pull/27228 ___ Python tracker

[issue44001] typing.Literal: args must be hashable, not immutable

2021-07-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal nosy_count: 4.0 -> 5.0 pull_requests: +25771 pull_request: https://github.com/python/cpython/pull/27228 ___ Python tracker

[issue43822] Improve syntax errors for missing commas

2021-07-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +25769 pull_request: https://github.com/python/cpython/pull/27228 ___ Python tracker ___

[issue44025] Match doc: Clarify '_' as a soft keyword

2021-07-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal nosy_count: 7.0 -> 8.0 pull_requests: +25773 pull_request: https://github.com/python/cpython/pull/27228 ___ Python tracker

[issue44663] Possible bug in datetime utc

2021-07-18 Thread Paul Martin
Paul Martin added the comment: The difference between the two is the difference between your local time and utc. datetime.now(timezone.utc) This returns the current time in utc and is timezone aware. So the timestamp can figure out the seconds since epoch taking into account the timezone.

[issue44461] 'Pdb' object has no attribute 'botframe'

2021-07-18 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: -25553 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44549] BZip 1.0.6 Critical Vulnerability

2021-07-18 Thread Dong-hee Na
Dong-hee Na added the comment: I request the dependency update to use bzip2 1.0.8 which is the stable version. https://github.com/python/cpython-source-deps/pull/25 -- ___ Python tracker

[issue44651] An unclear definition in Doc/glossary.rst

2021-07-18 Thread Mark Dickinson
Mark Dickinson added the comment: My one worry with removing the entry is that documentation of other projects may be referring to it via intersphinx. If we think this is likely to be a real problem, we could leave a stub entry, but I think it's okay to go ahead and delete. To be on the

[issue44667] tokenize.py emits spurious NEWLINE if file ends on a comment without a newline

2021-07-18 Thread Matthieu Dartiailh
New submission from Matthieu Dartiailh : Using tokenize.py to tokenize the attached file yields: 0,0-0,0:ENCODING 'utf-8' 1,0-1,2:NAME 'if' 1,3-1,4:NAME 'a' 1,4-1,5:OP ':' 1,5-1,7:NEWLINE

[issue44461] 'Pdb' object has no attribute 'botframe'

2021-07-18 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +25768 pull_request: https://github.com/python/cpython/pull/27227 ___ Python tracker ___

[issue44549] BZip 1.0.6 Critical Vulnerability

2021-07-18 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44554] pdb.main is unnecessarily complicated

2021-07-18 Thread Jason R. Coombs
Jason R. Coombs added the comment: Additional problems I noticed while working on the refactor: - There is a lot of overlap in behavior between the implementations of _run_script and _run_module (initializing private variables, setting mainpyfile, resetting the __main__ namespace). - There

[issue44651] An unclear definition in Doc/glossary.rst

2021-07-18 Thread Steven Hsu
Change by Steven Hsu : -- keywords: +patch pull_requests: +25767 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27226 ___ Python tracker ___

[issue44633] Indexing the union type can return NotImplemented

2021-07-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44654] Refactor and clean up the union type implementation

2021-07-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +25766 pull_request: https://github.com/python/cpython/pull/27225 ___ Python tracker ___

[issue42355] symtable: get_namespace doesn't check whether if there are multiple namespaces or no namespaces at all

2021-07-18 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42355] symtable: get_namespace doesn't check whether if there are multiple namespaces or no namespaces at all

2021-07-18 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: New changeset a045991f60b51636a784623dda7ad84b5b2c6b73 by Batuhan Taskaya in branch 'main': bpo-42355: symtable.get_namespace() now checks whether there are multiple or any namespaces found (GH-23278)

[issue44654] Refactor and clean up the union type implementation

2021-07-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 8f50f44592190b5a8cb115f0d58d577036e68308 by Serhiy Storchaka in branch 'main': bpo-44654: Do not export the union type related symbols (GH-27223) https://github.com/python/cpython/commit/8f50f44592190b5a8cb115f0d58d577036e68308 --

[issue44633] Indexing the union type can return NotImplemented

2021-07-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 85b58292cf94de74d028053ac33a65f269f305cb by Miss Islington (bot) in branch '3.10': bpo-44633: Fix parameter substitution of the union type with wrong types. (GH-27218) (GH-27224)

[issue44664] builtins.chr and the 'c' format flag raise different errors

2021-07-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is there any example where it causes troubles? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue44633] Indexing the union type can return NotImplemented

2021-07-18 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +25765 pull_request: https://github.com/python/cpython/pull/27224 ___ Python tracker

[issue44633] Indexing the union type can return NotImplemented

2021-07-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3ea5332a4365bdd771286b3e9692495116e9ceef by Serhiy Storchaka in branch 'main': bpo-44633: Fix parameter substitution of the union type with wrong types. (GH-27218)

[issue44654] Refactor and clean up the union type implementation

2021-07-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +25764 pull_request: https://github.com/python/cpython/pull/27223 ___ Python tracker ___

[issue44666] compileall.compile_file fails when sys.stdout is redirected to StringIO

2021-07-18 Thread Stefan Hölzl
New submission from Stefan Hölzl : compile_files tries to escape non-printable characters in error messages by using sys.stdout.encoding https://github.com/python/cpython/blob/main/Lib/compileall.py#L256 when using contextlib.redirect_stdout to redirect stdout to io.StringIO as explained in

[issue44490] PEP 604 Union (int | str) doesn't have __parameters__

2021-07-18 Thread Ken Jin
Change by Ken Jin : -- pull_requests: +25763 pull_request: https://github.com/python/cpython/pull/27222 ___ Python tracker ___ ___

[issue44659] Remove Ivan from list of typing experts

2021-07-18 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Thank you everyone! I hope our paths will cross someday. -- ___ Python tracker ___ ___

[issue44665] asyncio.create_task() documentation should mention user needs to keep reference to the task

2021-07-18 Thread Vincent Bernat
New submission from Vincent Bernat : asyncio will only keep weak references to alive tasks (in `_all_tasks`). If a user does not keep a reference to a task and the task is not currently executing or sleeping, the user may get "Task was destroyed but it is pending!". I would suggest adding