[issue45116] Performance regression 3.10b1 and later on Windows

2021-09-10 Thread neonene
Change by neonene : Added file: https://bugs.python.org/file50275/x64_28d2.log ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue45116] Performance regression 3.10b1 and later on Windows

2021-09-10 Thread neonene
Change by neonene : Added file: https://bugs.python.org/file50276/x64_b98e.log ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue45116] Performance regression 3.10b1 and later on Windows

2021-09-10 Thread Ma Lin
Ma Lin added the comment: MSVC 2019 has a /Ob3 option: https://docs.microsoft.com/en-us/cpp/build/reference/ob-inline-function-expansion >From the experience of another project, I conjecture /Ob3 increase the "global >budget" mentioned in the blog. I used /Ob3 for the 3.10 branch, and there s

[issue45169] Shallow copy occurs when list multiplication is used to create nested lists; can confuse users

2021-09-10 Thread 2106 Hyunwoo Oh
New submission from 2106 Hyunwoo Oh : If you do the following: lists=[[]]*100 lists[1].append('text') print(lists[2]) you can see lists[2] contains 'text' even though it was appended to lists[1] in the text. A little more investigation with the id() function can show that the lists are shall

[issue45169] Shallow copy occurs when list multiplication is used to create nested lists; can confuse users

2021-09-10 Thread 2106 Hyunwoo Oh
Change by 2106 Hyunwoo Oh : -- components: +Interpreter Core -Demos and Tools ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue45169] Shallow copy occurs when list multiplication is used to create nested lists; can confuse users

2021-09-10 Thread Steven D'Aprano
Steven D'Aprano added the comment: This is not a bug. No copy is made at all, neither shallow nor deep. This is described in the documentation for built-in types: https://docs.python.org/3/library/stdtypes.html#common-sequence-operations and is similar to the issue in the FAQs: https://docs

[issue45169] Shallow copy occurs when list multiplication is used to create nested lists; can confuse users

2021-09-10 Thread Steven D'Aprano
Steven D'Aprano added the comment: Oh, I forgot: this exact issue is also in the FAQs. https://docs.python.org/3/faq/programming.html#id46 -- ___ Python tracker ___ _

[issue45116] Performance regression 3.10b1 and later on Windows

2021-09-10 Thread neonene
neonene added the comment: According to: https://docs.microsoft.com/en-us/cpp/build/profile-guided-optimizations?view=msvc-160 PGO seems to override /Ob3. Around this issue, I posted benchmark on issue44381. On python building, /Ob3 works for only non-pgo-supported dlls like, _ctypes_test _fr

[issue44987] Speed up unicode normalization of ASCII strings

2021-09-10 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue44987] Speed up unicode normalization of ASCII strings

2021-09-10 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +26700 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28283 ___ Python tracker ___

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

2021-09-10 Thread paul j3
paul j3 added the comment: In https://stackoverflow.com/questions/69108632/unable-to-catch-exception-error-for-argparse it looked like `exit_on_error` does not work when using subparsers. On on further thought, I realized that it has to included in the definition of the subparser. As with

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

2021-09-10 Thread paul j3
Change by paul j3 : -- Removed message: https://bugs.python.org/msg401554 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-10 Thread Roundup Robot
Change by Roundup Robot : -- nosy: +python-dev nosy_count: 9.0 -> 10.0 pull_requests: +26701 pull_request: https://github.com/python/cpython/pull/28254 ___ Python tracker ___ _

[issue44211] Duplicate '.bmp' key in mimetypes.py, maps to both 'image/bmp' and 'image/x-ms-bmp'

2021-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Since this change has a user-visible effect a NEWS entry is required. Just copy it from issue22589. -- nosy: +serhiy.storchaka ___ Python tracker

<    1   2