[issue37322] test_ssl: test_pha_required_nocert() emits a ResourceWarning

2021-04-24 Thread Christian Heimes
Christian Heimes added the comment: New changeset c8666cfa7cdc48915a14cd16095a69029720736a by Christian Heimes in branch 'master': bpo-37322: Fix ResourceWarning and exception handling in test (GH-25553) https://github.com/python/cpython/commit/c8666cfa7cdc48915a14cd16095a69029720736a -

[issue43901] Add an empty annotations dict to all unannotated classes and modules

2021-04-24 Thread Larry Hastings
Larry Hastings added the comment: > I’d say that best practices for 3.9+ are more useful. My point in writing this up was that the best practices change as of 3.10. So, I could add a section to the Python 3.10 documentation giving best practices for 3.10+ and 3.9-. But 3.9 and 3.10 have dif

[issue41282] Deprecate and remove distutils

2021-04-24 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +24290 pull_request: https://github.com/python/cpython/pull/25571 ___ Python tracker ___

[issue43817] Add inspect.get_annotations()

2021-04-24 Thread Inada Naoki
Inada Naoki added the comment: I'm not sure `ONLY_IF_ALL_STR` is worth enough. Will anyone use it after Python 3.10? inspect.signature()? Pydantic? -- ___ Python tracker ___

[issue42725] PEP 563: Should the behavior change for yield/yield from's

2021-04-24 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > That can be done after the PEG grammar has accepted them But wouldn't we still end up with maintaining a custom flag to see if we are in annotation (e.g a: Something((yield) + 2)) and act upon that which would seem to do a bit messy in the grammar actions

[issue43817] Add inspect.get_annotations()

2021-04-24 Thread Larry Hastings
Larry Hastings added the comment: For what it's worth: I changed the name to ONLY_IF_STRINGIZED in the PR. Since I propose that it be the default, everyone who called inspect.get_annotations(), and inspect.signature(), would use it. I think Pydantic would prefer it, because Pydantic wants t

[issue43817] Add inspect.get_annotations()

2021-04-24 Thread Inada Naoki
Inada Naoki added the comment: > I think Pydantic would prefer it, because Pydantic wants to see the real > objects at runtime, rather than the stringized annotations. If so, why don't they use `eval_str=True`? I can not find any use cases where `eval_str= ONLY_IF_ALL_STR` is better than `

[issue43817] Add inspect.get_annotations()

2021-04-24 Thread Larry Hastings
Larry Hastings added the comment: The difference between eval_str=True and eval_str=ONLY_IF_STRINGIZED: def foo(a:int, b:"howdy howdy"): ... inspect.get_annotations(foo, eval_str=True) throws an exception. inspect.get_annotations(foo, eval_str=ONLY_IF_STRINGIZED) returns {'a': int, b: 'howdy

[issue41282] Deprecate and remove distutils

2021-04-24 Thread Christian Heimes
Christian Heimes added the comment: New changeset a460ab3134cd5cf3932c2125aec012851268f0cc by Christian Heimes in branch 'master': bpo-41282: Consistent message and filter warning in setup.py (GH-25571) https://github.com/python/cpython/commit/a460ab3134cd5cf3932c2125aec012851268f0cc --

[issue43817] Add inspect.get_annotations()

2021-04-24 Thread Inada Naoki
Inada Naoki added the comment: > > The difference between eval_str=True and eval_str=ONLY_IF_STRINGIZED: > > def foo(a:int, b:"howdy howdy"): ... > > inspect.get_annotations(foo, eval_str=True) throws an exception. > inspect.get_annotations(foo, eval_str=ONLY_IF_STRINGIZED) returns {'a': int,

[issue43817] Add inspect.get_annotations()

2021-04-24 Thread Larry Hastings
Larry Hastings added the comment: Perhaps eval_str=ONLY_IF_STRINGIZED should also add the semantics "if evaluating any string fails, behave as if eval_str=false". I would *not* propose adding that for eval_str=true. But people keep asking for this. Hmm. The heuristic is a tricky thing. T

[issue37322] test_ssl: test_pha_required_nocert() emits a ResourceWarning

2021-04-24 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +24291 pull_request: https://github.com/python/cpython/pull/25572 ___ Python tracker ___

[issue37322] test_ssl: test_pha_required_nocert() emits a ResourceWarning

2021-04-24 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +24292 pull_request: https://github.com/python/cpython/pull/25573 ___ Python tracker ___

[issue43921] test_ssl fails on Windows buildbots

2021-04-24 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +24293 pull_request: https://github.com/python/cpython/pull/25574 ___ Python tracker ___

[issue43929] Raise on threading.Event.__bool__ due to ambiguous nature

2021-04-24 Thread Aritn Sarraf
New submission from Aritn Sarraf : I'll sometimes find myself accidentally doing something like this (especially after a long break from using the threading module): ``` stop_thread = threading.Event() ... while not stop_thread: # bug - bool(stop_thread) will always evaluate to True ... `

[issue43929] Raise on threading.Event.__bool__ due to ambiguous nature

2021-04-24 Thread artin sarraf
Change by artin sarraf : -- keywords: +patch nosy: +sarf nosy_count: 1.0 -> 2.0 pull_requests: +24294 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25575 ___ Python tracker

[issue27521] Misleading compress level header on files created with gzip

2021-04-24 Thread Irit Katriel
Irit Katriel added the comment: I believe this was fixed here: https://github.com/python/cpython/pull/18077 -- nosy: +iritkatriel resolution: -> duplicate status: open -> pending superseder: -> gzip metadata fails to reflect compresslevel ___ Pyth

[issue16386] imp.find_module does not specify registry key it searches on windows

2021-04-24 Thread Irit Katriel
Irit Katriel added the comment: Both http://docs.python.org/3/library/importlib.html#importlib.machinery.WindowsRegistryFinder and http://docs.python.org/3/library/imp.html#imp.find_module: are now deprecated. Is this issue still relevant? -- nosy: +iritkatriel resolution: -> out

[issue43929] Raise on threading.Event.__bool__ due to ambiguous nature

2021-04-24 Thread Steven D'Aprano
Steven D'Aprano added the comment: This is not a bug fix, it is a change of behaviour ("enhancement"). All of 3.6 through 3.9 are in feature freeze. 3.10 is probably in feature freeze, but if not it is extremely close to it. So this can only go into 3.11 and (maybe) 3.10. But I don't think t

[issue43921] test_ssl fails on Windows buildbots

2021-04-24 Thread Christian Heimes
Christian Heimes added the comment: New changeset ce9a0643496ba802ea97a3da20eace3a1117ea48 by Christian Heimes in branch 'master': bpo-43921: also accept EOF in post-handshake auth test (GH-25574) https://github.com/python/cpython/commit/ce9a0643496ba802ea97a3da20eace3a1117ea48 --

[issue43520] Make Fraction(string) handle non-ascii slashes

2021-04-24 Thread Frédéric Grosshans-André
Frédéric Grosshans-André added the comment: @Gregory P. Smith unicodedata.numeric, in the sdandard library, already handles non-Ascii fractions in many scripts. The current “problem” is it outputs a float (even for integers): >>> unicodedata.numeric('⅔') 0. The UnicodeData.

[issue43930] Update bundled pip to 21.1 and setuptools to 56.0.0

2021-04-24 Thread Stéphane Bidoul
New submission from Stéphane Bidoul : I've just released pip 21.1, so this is to update the bundled copy (as well as updating setuptools). -- components: Library (Lib) messages: 391777 nosy: sbidoul priority: normal severity: normal status: open title: Update bundled pip to 21.1 and set

[issue43780] Sync importlib_metadata enhancements through 3.10.

2021-04-24 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset c6ca368867bd68d44f333df840aa85d425a51410 by Jason R. Coombs in branch 'master': bpo-43780: Sync with importlib_metadata 3.10 (GH-25297) https://github.com/python/cpython/commit/c6ca368867bd68d44f333df840aa85d425a51410 --

[issue43930] Update bundled pip to 21.1 and setuptools to 56.0.0

2021-04-24 Thread Stéphane Bidoul
Change by Stéphane Bidoul : -- nosy: +dstufft, ncoghlan, paul.moore, pradyunsg ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue43930] Update bundled pip to 21.1 and setuptools to 56.0.0

2021-04-24 Thread Stéphane Bidoul
Change by Stéphane Bidoul : -- keywords: +patch pull_requests: +24296 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25576 ___ Python tracker ___ _

[issue43930] Update bundled pip to 21.1 and setuptools to 56.0.0

2021-04-24 Thread Stéphane Bidoul
Change by Stéphane Bidoul : -- nosy: +Marcus.Smith -sbidoul ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue43931] Add the Python version to the API data.

2021-04-24 Thread Gabriele N Tornetta
New submission from Gabriele N Tornetta : When Python is embedded in other applications, it is not easy to determine which version of Python is being used. This change exposes the Python version as part of the API data. Tools like Austin (https://github.com/P403n1x87/austin) can benefit from

[issue43931] Add the Python version to the API data.

2021-04-24 Thread Gabriele N Tornetta
Change by Gabriele N Tornetta : -- keywords: +patch pull_requests: +24297 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25577 ___ Python tracker

[issue42725] PEP 563: Should the behavior change for yield/yield from's

2021-04-24 Thread Guido van Rossum
Guido van Rossum added the comment: I don’t really care how you do it, I just thought having a whole “expr-without-walrus-or-yield” subgrammar would be tedious. If there is a way to have the “in-an-annotation” flag set during parsing that may be better, I don’t know. Maybe Lysandros has an i

[issue43901] Add an empty annotations dict to all unannotated classes and modules

2021-04-24 Thread Guido van Rossum
Guido van Rossum added the comment: And that’s a problem. There needs to be a recommendation on what to do for code that spans 3.9 and 3.10. What should users do otherwise? Drop 3.9 as soon as they introduce 3.10 support? Withhold 3.10 support until 3.9 reaches EOL? IOW you can’t just break b

[issue43780] Sync importlib_metadata enhancements through 3.10.

2021-04-24 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue42725] PEP 563: Should the behavior change for yield/yield from's

2021-04-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is no “expr-without-await-or-async-for” subgrammar, but "await" and asynchronous comprehensions are invalid in synchronous functions. There should be similar flag for annotations in symtable.c. -- ___ Pytho

[issue42725] PEP 563: Should the behavior change for yield/yield from's

2021-04-24 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > I just thought having a whole “expr-without-walrus-or-yield” subgrammar > would be tedious. Yeah I have experimented with something similar in the past and this becomes out of hand super quickly and leafs to a lot of duplication. Similarly, a flag

[issue43930] Update bundled pip to 21.1 and setuptools to 56.0.0

2021-04-24 Thread Paul Moore
Paul Moore added the comment: New changeset 196983563d05e32d2dcf217e955a919f9e0c25e1 by Stéphane Bidoul in branch 'master': bpo-43930: Update bundled pip to 21.1 and setuptools to 56.0.0 (GH-25576) https://github.com/python/cpython/commit/196983563d05e32d2dcf217e955a919f9e0c25e1 --

[issue37751] In codecs, function 'normalizestring' should convert both spaces and hyphens to underscores.

2021-04-24 Thread hai shi
hai shi added the comment: Thanks Marc-Andre for your supplement of PEP-100. Thanks Inada, victor for your review and merge. After PR-23096 merged, I suggest to close this bpo. If there have any other questions, we can reopen it again. -- resolution: -> fixed stage: patch review -> r

[issue41350] Use of zipfile.Path causes attempt to write after ZipFile is closed

2021-04-24 Thread Andrei Kulakov
Andrei Kulakov added the comment: Looks like a duplicate of https://bugs.python.org/issue40564 , which was fixed and closed so this can also be closed. -- nosy: +andrei.avk ___ Python tracker __

[issue43930] Update bundled pip to 21.1 and setuptools to 56.0.0

2021-04-24 Thread Stéphane Bidoul
Change by Stéphane Bidoul : -- nosy: +sbidoul nosy_count: 5.0 -> 6.0 pull_requests: +24298 pull_request: https://github.com/python/cpython/pull/25578 ___ Python tracker ___

[issue43930] Update bundled pip to 21.1 and setuptools to 56.0.0

2021-04-24 Thread Stéphane Bidoul
Change by Stéphane Bidoul : -- pull_requests: +24299 pull_request: https://github.com/python/cpython/pull/25579 ___ Python tracker ___ __

[issue38659] enum classes cause slow startup time

2021-04-24 Thread Ethan Furman
Ethan Furman added the comment: Pablo, did my latest patch resolved the errors? -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue43492] Upgrade to SQLite 3.35.5 in macOS and Windows

2021-04-24 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- nosy: +matrixise ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue43492] Upgrade to SQLite 3.35.5 in macOS and Windows

2021-04-24 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Do anyone notice any bug in SQLite 3.35.5? If not then I think it's time to upgrade to SQLite 3.35.5. -- ___ Python tracker ___ ___

[issue43932] f-string decimal has leading space

2021-04-24 Thread Akshay K
New submission from Akshay K : When using a f-string to print a number with a certain number of decimal places, the number is printed with a leading space. -- components: Interpreter Core files: fstringdemo.py messages: 391789 nosy: Axeinator, eric.smith priority: normal severity: norm

[issue43492] Upgrade to SQLite 3.35.5 in macOS and Windows

2021-04-24 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Shreyan Avigyan, For that, you need to follow the forum of SQLite. https://www.sqlite.org/forum/forum -- ___ Python tracker ___

[issue25166] Windows All Users installation places uninstaller in user profile

2021-04-24 Thread Muhammad Hussein Ammari
Change by Muhammad Hussein Ammari : -- title: Windows AllUsers installation places uninstaller in user profile -> Windows All Users installation places uninstaller in user profile ___ Python tracker

[issue43193] Installer for All users

2021-04-24 Thread Muhammad Hussein Ammari
Muhammad Hussein Ammari added the comment: Duplicate: https://bugs.python.org/issue25166 -- ___ Python tracker ___ ___ Python-bugs-

[issue43193] Installer for All users

2021-04-24 Thread Muhammad Hussein Ammari
Change by Muhammad Hussein Ammari : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

[issue41350] Use of zipfile.Path causes attempt to write after ZipFile is closed

2021-04-24 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Using zipfile.Path with several files prematurely closes zip ___ Python tracker

[issue41350] Use of zipfile.Path causes attempt to write after ZipFile is closed

2021-04-24 Thread Jason R. Coombs
Jason R. Coombs added the comment: Thanks Andrei -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue43932] f-string decimal has leading space

2021-04-24 Thread Mark Dickinson
Mark Dickinson added the comment: This is by design, and documented under the "sign" section here: https://docs.python.org/3/library/string.html#format-specification-mini-language The space before ".2f" is an instruction to leave space for a sign, "-" for a negative number and " " for a posi

[issue43932] f-string decimal has leading space

2021-04-24 Thread Mark Dickinson
Change by Mark Dickinson : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python

[issue43874] argparse crashes on subparsers with no dest/metava

2021-04-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Terence, a 'crash' for this tracker is a core dump or equivalent with no exception/traceback. -- nosy: +terry.reedy stage: -> patch review type: crash -> behavior versions: -Python 3.6, Python 3.7 ___ Python trac

[issue43933] Regression in python3.10 with traceback frame having lineno of -1

2021-04-24 Thread Anthony Sottile
New submission from Anthony Sottile : This is breaking pytest for failed assertions: https://github.com/pytest-dev/pytest/pull/8227 It also breaks the traceback in the output below Here's a minimal example: ```python class Boom: def __enter__(self): return self def __exit__(s

[issue43929] Raise on threading.Event.__bool__ due to ambiguous nature

2021-04-24 Thread Aritn Sarraf
Aritn Sarraf added the comment: Hi Steve, a couple things to preface my following comment. (1) Didn't mean to suggest that the current behavior is a bug. I don't think it is a bug, rather that it can easily lead to bugs. (2) Sorry for tagging the previous versions, I'm not familiar with the

[issue43934] Minimal version of SQLite3 - 3.26 ?

2021-04-24 Thread Stéphane Wirtel
New submission from Stéphane Wirtel : After reading this issue: https://bugs.python.org/msg370266, I think SQLite 3.26.0 could be the minimal version for Python 3.10. I have checked the following distributions CentOS 8: stable : 8.3.2011: 3.26.0 Debian 10: stable : 10 : 3.27.2 Ubuntu 20.04: s

[issue43934] Minimal version of SQLite3 - 3.26 ?

2021-04-24 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +patch pull_requests: +24300 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25580 ___ Python tracker ___ _

[issue43933] Regression in python3.10 with traceback frame having lineno of -1

2021-04-24 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- assignee: -> Mark.Shannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue43933] Regression in python3.10 with traceback frame having lineno of -1

2021-04-24 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Marking as release blocker since is breaking pytest -- priority: normal -> release blocker ___ Python tracker ___

[issue43933] Regression in python3.10 with traceback frame having lineno of -1

2021-04-24 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks for the bisection, Anthony -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue43913] unittest module cleanup functions not run unless tearDownModule() is defined

2021-04-24 Thread Terry J. Reedy
Change by Terry J. Reedy : -- stage: -> needs patch versions: +Python 3.10, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list

[issue43913] unittest module cleanup functions not run unless tearDownModule() is defined

2021-04-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: import unittest #def setUpModule(): raise Exception() #def tearDownModule(): print('module teardown') unittest.addModuleCleanup(print, 'module cleanup') class Dummy(unittest.TestCase): def test_dummy(self): self.addCleanup(print, 'test cleanup')

[issue43935] Fix typo in Turtle.back docstring

2021-04-24 Thread Tarjei Bærland
Change by Tarjei Bærland : -- assignee: docs@python components: Documentation nosy: docs@python, tarjeiba priority: normal severity: normal status: open title: Fix typo in Turtle.back docstring versions: Python 3.10 ___ Python tracker

[issue43935] Fix typo in Turtle.back docstring

2021-04-24 Thread Tarjei Bærland
Change by Tarjei Bærland : -- keywords: +patch pull_requests: +24301 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25581 ___ Python tracker ___ __

[issue43935] Fix typo in Turtle.back docstring

2021-04-24 Thread Stéphane Wirtel
New submission from Stéphane Wirtel : Thank you for your contribution but as you know, you have to sign the CLA. https://github.com/python/cpython/pull/25581#issuecomment-826150064 -- nosy: +matrixise ___ Python tracker

[issue43901] Add an empty annotations dict to all unannotated classes and modules

2021-04-24 Thread Larry Hastings
Larry Hastings added the comment: I'm not breaking backwards compatibility--that's the point of all this. But I'm improving the experience. And if you don't care about 3.9 and before, you can stick to the new improved experience. Looking in the class dict for annotations is terrible, but t

[issue43934] Minimal version of SQLite3 - 3.26 ?

2021-04-24 Thread Berker Peksag
Berker Peksag added the comment: This would make sqlite3 module unusable for many users. We have already increased the minimal required version in 3.10 and am opposed to do this change. I also don't understand what part of msg370266 made you think that this is a reasonable change. The gist o

[issue43936] os.path.realpath() normalizes paths before resolving links on Windows

2021-04-24 Thread Barney Gale
New submission from Barney Gale : Capturing a write-up by eryksun on GitHub into a new bug. Link: https://github.com/python/cpython/pull/25264#pullrequestreview-631787754 > `nt._getfinalpathname()` opens a handle to a file/directory with > `CreateFileW()` and calls `GetFinalPathNameByHandleW(

[issue43874] argparse crashes on subparsers with no dest/metava

2021-04-24 Thread Terence Honles
Terence Honles added the comment: Sorry I didn't know what to put, and now that you changed it I understand what behavior means. Thanks for changing it. Should I do anything further? Not sure how to proceed. -- ___ Python tracker

[issue43934] Minimal version of SQLite3 - 3.26 ?

2021-04-24 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43934] Minimal version of SQLite3 - 3.26 ?

2021-04-24 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Berker, No problem, that was just a question/suggestion, and I fully understand your remarks. Thanks for your feedback. Stéphane -- ___ Python tracker __

[issue38659] enum classes cause slow startup time

2021-04-24 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38659] enum classes cause slow startup time

2021-04-24 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Seems that the buildbots are going back to green so I will close the revert PR. THanks a lot, Ethan for the fix and the investigation! -- ___ Python tracker

[issue43914] Highlight invalid ranges in SyntaxErrors

2021-04-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Great!!! I also tried >>> try: compile("a xyzjdkjfk", '', 'single') except SyntaxError as e: print(e, e.msg, e.lineno, e.offset, e.end_lineno, e.end_offset) invalid syntax. Perhaps you forgot a comma? (, line 1) invalid syntax. Perhaps you f

[issue43901] Add an empty annotations dict to all unannotated classes and modules

2021-04-24 Thread Eric V. Smith
Eric V. Smith added the comment: It's find to have advice of "do X in 3.9", and "do Y in 3.10+". I think the issue is: if you have code that needs to run in 3.9 and 3.10+, what should you do? There needs to be some advice for that case. -- ___ Pyt

[issue43901] Add an empty annotations dict to all unannotated classes and modules

2021-04-24 Thread Eric V. Smith
Eric V. Smith added the comment: "It's fine to have advice ..." -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue43934] Minimal version of SQLite3 - 3.26 ?

2021-04-24 Thread Berker Peksag
Berker Peksag added the comment: Thank you for taking your time to improve the sqlite3 module! -- ___ Python tracker ___ ___ Python

[issue43901] Add an empty annotations dict to all unannotated classes and modules

2021-04-24 Thread Larry Hastings
Larry Hastings added the comment: I'm please you folks are as supportive as you are of what I'm doing here, given that you seem a little unsure of the details. I concede that there's a lot going on and it can be hard to keep it all in your head. The point of this issue / PR is to improve th

[issue43930] Update bundled pip to 21.1 and setuptools to 56.0.0

2021-04-24 Thread Paul Moore
Paul Moore added the comment: New changeset d962b00fcffa9070acdca850753f254828caa1d7 by Stéphane Bidoul in branch '3.9': [3.9] bpo-43930: Update bundled pip to 21.1 and setuptools to 56.0.0 (GH-25578) https://github.com/python/cpython/commit/d962b00fcffa9070acdca850753f254828caa1d7 -

[issue43930] Update bundled pip to 21.1 and setuptools to 56.0.0

2021-04-24 Thread Paul Moore
Paul Moore added the comment: New changeset fc82f3f8fb36f88a4e7238a463812c2916bd4db0 by Stéphane Bidoul in branch '3.8': [3.8] bpo-43930: Update bundled pip to 21.1 and setuptools to 56.0.0 (GH-25576) (GH-25579) https://github.com/python/cpython/commit/fc82f3f8fb36f88a4e7238a463812c2916bd4db0

[issue43914] Highlight invalid ranges in SyntaxErrors

2021-04-24 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +24302 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25582 ___ Python tracker ___ __

[issue43901] Add an empty annotations dict to all unannotated classes and modules

2021-04-24 Thread Larry Hastings
Larry Hastings added the comment: And I just had a realization. Lazy creation of an empty annotations dict, for both classes and modules, will work fine. As stated in my previous comment in this issue, my goal here is to improve best practices in 3.10+, while preserving the unfortunate

[issue43901] Lazy-create an empty annotations dict in all unannotated user classes and modules

2021-04-24 Thread Larry Hastings
Change by Larry Hastings : -- title: Add an empty annotations dict to all unannotated classes and modules -> Lazy-create an empty annotations dict in all unannotated user classes and modules ___ Python tracker

[issue43908] array.array should remain immutable

2021-04-24 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: > Does the test suite pass for apply-to-all.diff? No, multiple tests fail. First test_distutils fails, then during the re-run, test_multiprocessing_forkserver, test_multiprocessing_spawn, and test_pdb fail. > Also, quite a hornet's nest you've uncove

[issue43901] Lazy-create an empty annotations dict in all unannotated user classes and modules

2021-04-24 Thread Larry Hastings
Larry Hastings added the comment: Hmm. Sorry for the stream-of-consciousness thought process here, but this approach adds wrinkles too. Function objects from the very beginning have lazy-created their annotations dict if it's not set. Which means this works fine: while True: d

[issue43929] Raise on threading.Event.__bool__ due to ambiguous nature

2021-04-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: Steven is right that this would be a behavior change. It is also out of line with Python norms where all objects are born true and have to learn to be false with either __len__ or __bool__. It is not a norm for bool(obj) to raise an exception. Followin

[issue43901] Lazy-create an empty annotations dict in all unannotated user classes and modules

2021-04-24 Thread Guido van Rossum
Guido van Rossum added the comment: Functions don't store __annotations__ in their __dict__, it is a separate slot named func_annotations (see funcobject.c). I guess that's because the __dict__ is purely for user-defined function attributes. But perhaps for classes the C equivalent of this p

[issue43901] Lazy-create an empty annotations dict in all unannotated user classes and modules

2021-04-24 Thread Guido van Rossum
Guido van Rossum added the comment: So, honestly I don't understand what your concern with the lazy approach is. Was your design based on having a bit in the class/module object (outside its __dict__) saying "I already lazily created one"? Or am I missing something? Also, I'll stop going on

[issue43762] Add audit events for loading of sqlite3 extensions

2021-04-24 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Good question. sqlite3_load_extension() loads an extension into a database connection, so it would make sense to also pass the connection object. I'd say we do it; it's a small change, and as you say: if we wanted to add it later, we couldn't. Ref.

[issue43762] Add audit events for loading of sqlite3 extensions

2021-04-24 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Something like the attached patch, if I understand you correctly? -- Added file: https://bugs.python.org/file49982/patch.diff ___ Python tracker

[issue43762] Add audit events for loading of sqlite3 extensions

2021-04-24 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Maybe it's better to send the event only if the connection succeeded: diff --git a/Modules/_sqlite/module.c b/Modules/_sqlite/module.c index 8dbfa7b38a..0220978cf2 100644 --- a/Modules/_sqlite/module.c +++ b/Modules/_sqlite/module.c @@ -97,6 +97,12 @@

[issue43864] [Windows] test_importlib logs: DeprecationWarning: WindowsRegistryFinder.find_module() is deprecated and slated for removal in Python 3.12; use find_spec() instead

2021-04-24 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43901] Lazy-create an empty annotations dict in all unannotated user classes and modules

2021-04-24 Thread Larry Hastings
Larry Hastings added the comment: > Functions don't store __annotations__ in their __dict__, it is a > separate slot named func_annotations (see funcobject.c). I guess > that's because the __dict__ is purely for user-defined function > attributes. I brought up functions because I'm now proposi

[issue43901] Lazy-create an empty annotations dict in all unannotated user classes and modules

2021-04-24 Thread Guido van Rossum
Guido van Rossum added the comment: I think "no user-visible changes" is a pipe dream. Deleting __annotations__ seems fairly pointless so I don't mind changes that are only visible when you do that. -- ___ Python tracker

[issue28874] test_logging fails and freezes

2021-04-24 Thread wim glenn
wim glenn added the comment: I was seeing this problem when building 3.6.4. Fixed it by replacing the test cert with a newer one from 3.6.13: curl https://raw.githubusercontent.com/python/cpython/v3.6.13/Lib/test/keycert.pem > ./Lib/test/keycert.pem Hope this helps someone else one day

[issue43754] Eliminate bindings for partial pattern matches

2021-04-24 Thread Brandt Bucher
Brandt Bucher added the comment: Since the feature freeze is coming up (and this changes the bytecode), I'd like to open this up for review now. It probably shouldn't actually be merged before the AST changes in issue 43892, though. There will be quite a few conflicts that need resolving, bu

[issue43918] anext builtin docstring has no signature text or info about default argument

2021-04-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: inspect.signature(anext) raises "ValueError: builtin has invalid signature". Guido, is this a bug? Even if not, docstring should have it. -- nosy: +terry.reedy ___ Python tracker

[issue43889] Pickle performance regression in 3.10

2021-04-24 Thread Ken Jin
Ken Jin added the comment: I'm unable to reproduce the regression locally with pyperformance. Additionally, the links on speed.python.org show that the results returned to normal after a week (again seemingly without any commit to cause such a change). I'm closing this bug as it doesn't seem

[issue43925] Add hangul syllables to unicodedata.decomposititon

2021-04-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: I verified the claim in 3.19.0a7 freshly compiled today. >>> import unicodedata as ud >>> ud.decomposition('\uac00') '' >>> for cp in range(0xac00, 0xd7a4): if (s := ud.decomposition(chr(cp))) != '': print(cp, s) >>> -- nosy:

[issue43874] argparse crashes on subparsers with no dest/metava

2021-04-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Wait for responses -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue42737] PEP 563: drop annotations for complex assign targets

2021-04-24 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: New changeset 8cc3cfa8afab1651c4f6e9ba43a7ab7f10f64c32 by Batuhan Taskaya in branch 'master': bpo-42737: annotations with complex targets no longer causes any runtime effects (GH-23952) https://github.com/python/cpython/commit/8cc3cfa8afab1651c4f6e9ba43a7ab

[issue42725] PEP 563: Should the behavior change for yield/yield from's

2021-04-24 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- keywords: +patch pull_requests: +24303 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25583 ___ Python tracker ___

  1   2   >