[issue38605] [typing] PEP 563: Postponed evaluation of annotations: enable it by default in Python 3.11

2021-10-16 Thread Steven D'Aprano
Steven D'Aprano added the comment: Now that we're in 3.11, people are starting to notice that stringy annotations are not the default (see #45499 for example). What can we do to get PEP 649 moving forward? -- nosy: +steven.daprano ___ Python

[issue45499] from __future__ import annotations is not mandatory in 3.11.0a1+

2021-10-16 Thread Steven D'Aprano
Change by Steven D'Aprano : -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45499] from __future__ import annotations is not mandatory in 3.11.0a1+

2021-10-16 Thread Steven D'Aprano
Steven D'Aprano added the comment: Duplicate: #38605 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45499] from __future__ import annotations is not mandatory in 3.11.0a1+

2021-10-16 Thread Steven D'Aprano
Steven D'Aprano added the comment: > Why is it still not automatically inside python 3.11.0a1? Probably because this is the .0a1 version, and making it mandatory just hasn't been done yet. The developers are only human and can't do everything instantly. -- nosy: +steven.daprano

[issue45499] from __future__ import annotations is not mandatory in 3.11.0a1+

2021-10-16 Thread theeshallnotknowethme
theeshallnotknowethme added the comment: test case: >>> a: A = 'test' Traceback (most recent call last): File "", line 1, in NameError: name 'A' is not defined. Did you mean: 'a'? -- ___ Python tracker

[issue45499] from __future__ import annotations is not mandatory in 3.11.0a1+

2021-10-16 Thread theeshallnotknowethme
New submission from theeshallnotknowethme : >>> import sys >>> import __future__ >>> __future__.annotations _Feature((3, 7, 0, 'beta', 1), (3, 11, 0, 'alpha', 0), 16777216) >>> sys.version_info sys.version_info(major=3, minor=11, micro=0, releaselevel='alpha', serial=1) >>> sys.version_info >

[issue45494] [fuzzer] Parser null deref with continuation characters and generator parenthesis error

2021-10-16 Thread Gregory P. Smith
Change by Gregory P. Smith : -- priority: normal -> high versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue45420] Python 3.10 final installation failure

2021-10-16 Thread wyz23x2
wyz23x2 added the comment: > This kind of issue can also arise when you directly delete the install, > rather than uninstalling it. Sort of, but I expected upgrading with a new directory to work. When the first few times didn't work, I deleted the installation directly (should have

[issue45420] Python 3.10 final installation failure

2021-10-16 Thread wyz23x2
wyz23x2 added the comment: I'm sorry, but the option is grayed out. See attached screenshot. -- Added file: https://bugs.python.org/file50366/screenshot.png ___ Python tracker

[issue30082] hide command prompt when using subprocess.Popen with shell=False on Windows

2021-10-16 Thread Eryk Sun
Eryk Sun added the comment: The force_hide option could also force the use of a new hidden window, even if the current process has a console. That way the output is always hidden. For example: if force_hide or shell: if force_hide and not (creationflags &

[issue45495] IDLE: Add match and case to completions

2021-10-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: I emailed the OP reporting the fix, which will be in the next releases of 3.10 and 3.11. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue45495] IDLE: Add match and case to completions

2021-10-16 Thread miss-islington
miss-islington added the comment: New changeset a29470307308f64af9c55263cdd6e1984ba89925 by Miss Islington (bot) in branch '3.10': [3.10] bpo-45495: Add 'case' and 'match' to IDLE completions list. (GH-29000) (GH-29001)

[issue45494] [fuzzer] Parser null deref with continuation characters and generator parenthesis error

2021-10-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > I confirmed that 3.9 does NOT seem to have the problem: It does, is just that is not a crash. The point where the error message point is totally wrong -- ___ Python tracker

[issue45495] IDLE: Add match and case to completions

2021-10-16 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +27283 pull_request: https://github.com/python/cpython/pull/29001 ___ Python tracker

[issue45495] IDLE: Add match and case to completions

2021-10-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 42ac06dcd234bdda989dcfe854ac5173337024c9 by Terry Jan Reedy in branch 'main': bpo-45495: Add 'case' and 'match' to IDLE completions list. (GH-29000) https://github.com/python/cpython/commit/42ac06dcd234bdda989dcfe854ac5173337024c9 --

[issue45494] [fuzzer] Parser null deref with continuation characters and generator parenthesis error

2021-10-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: I confirmed that 3.9 does NOT seem to have the problem: Python 3.9.5 (default, May 19 2021, 11:32:47) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> x = r''' ... "\ ... "(1for c in I,\ ... \ ''' >>> import

[issue45498] [doc] Fix a code example, non declared variable being printed

2021-10-16 Thread Lahfa Samy
Change by Lahfa Samy : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue45495] IDLE: Add match and case to completions

2021-10-16 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +27282 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/29000 ___ Python tracker

[issue45497] Argparse: Refactor '%' interpolation to f-strings

2021-10-16 Thread Shivnaren Srinivasan
Shivnaren Srinivasan added the comment: Understood--thank you for the responses. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___

[issue45498] [doc] Fix a code example, non declared variable being printed

2021-10-16 Thread Lahfa Samy
Change by Lahfa Samy : -- pull_requests: +27281 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28999 ___ Python tracker ___

[issue45498] [doc] Fix a code example, non declared variable being printed

2021-10-16 Thread Lahfa Samy
New submission from Lahfa Samy : I was looking through the documentation at examples for reading CSV files and noticed that an undefined variable was printed in a code example, this affects Python version from 3.6 till 3.110a1 (dev version of the documentation). It got me kind of confused,

[issue45497] Argparse: Refactor '%' interpolation to f-strings

2021-10-16 Thread Eric V. Smith
Eric V. Smith added the comment: As a rule, we don’t accept such wholesale changes. If there’s a performance problem, or a bug, then we’d look at individual cases. -- nosy: +eric.smith ___ Python tracker

[issue45497] Argparse: Refactor '%' interpolation to f-strings

2021-10-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Pure cosmetic changes are usually rejected. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue45395] Frozen stdlib modules are discarded if custom frozen modules added.

2021-10-16 Thread Eric Snow
Eric Snow added the comment: On Sat, Oct 16, 2021 at 5:01 AM Marc-Andre Lemburg wrote: > I can try to port PyRun to 3.9 and 3.10 to see whether I run into any issues. > Would that help ? Yeah, that would totally help. -- ___ Python tracker

[issue45020] Freeze all modules imported during startup.

2021-10-16 Thread Eric Snow
Eric Snow added the comment: New changeset b9cdd0fb9c463c2503a4d854bb6529a9db58fe1b by Eric Snow in branch 'main': bpo-45020: Default to using frozen modules unless running from source tree. (gh-28940) https://github.com/python/cpython/commit/b9cdd0fb9c463c2503a4d854bb6529a9db58fe1b

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: We can add the mac change once it is manually tested on some system. I may try on my macbook. Windows will be another PR or even issue. -- ___ Python tracker

[issue45020] Freeze all modules imported during startup.

2021-10-16 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +27280 pull_request: https://github.com/python/cpython/pull/28997 ___ Python tracker ___

[issue45495] IDLE: Add match and case to completions

2021-10-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: That is because they are not keywords in keyword.kwlist. But we can add them to the completion list. Thanks for transferring the report. -- stage: -> test needed type: -> behavior ___ Python tracker

[issue45495] IDLE: Add match and case to completions

2021-10-16 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: IDLE: Add match and case -> IDLE: Add match and case to completions ___ Python tracker ___ ___

[issue45497] Argparse: Refactor '%' interpolation to f-strings

2021-10-16 Thread Shivnaren Srinivasan
New submission from Shivnaren Srinivasan : I use `argparse` a lot, and I think it's great—going through the source code, I see all string interpolation is with the old printf `%` formatting. AFAIK, f-strings are now the suggested method for interpolation (*after they were introduced, that

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-16 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +27279 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28995 ___ Python tracker

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Suggestion: At the end of https://docs.python.org/3/bugs.html, add Hummm, I am not sure that page is the most adecuate for this, no? That is how to deal with bugs in general, not about specific bugs. --

[issue45442] Update `Virtual Environment` tutorial

2021-10-16 Thread Shivnaren Srinivasan
Change by Shivnaren Srinivasan : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45249] Update doctect SyntaxErrors for location range

2021-10-16 Thread miss-islington
miss-islington added the comment: New changeset 5df35faf3611b459f7f32bfe9fd2ffa7fb2dc59e by Miss Islington (bot) in branch '3.10': bpo-45249: Fix caret location when end_offset is set to 0 (GH-28855) https://github.com/python/cpython/commit/5df35faf3611b459f7f32bfe9fd2ffa7fb2dc59e

[issue45496] Tkinter: test_winfo_rgb failure

2021-10-16 Thread E. Paine
E. Paine added the comment: Nvidia (using the proprietary drivers) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45496] Tkinter: test_winfo_rgb failure

2021-10-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And on what of them it is failed? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45249] Update doctect SyntaxErrors for location range

2021-10-16 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45249] Update doctect SyntaxErrors for location range

2021-10-16 Thread miss-islington
miss-islington added the comment: New changeset fe0d9e22a52a10c4cbe52254b51f2d4e74d83568 by Pablo Galindo Salgado in branch 'main': bpo-45249: Fix caret location when end_offset is set to 0 (GH-28855) https://github.com/python/cpython/commit/fe0d9e22a52a10c4cbe52254b51f2d4e74d83568

[issue45249] Update doctect SyntaxErrors for location range

2021-10-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +27277 pull_request: https://github.com/python/cpython/pull/28994 ___ Python tracker ___

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-16 Thread Alex Waygood
Alex Waygood added the comment: Shall I add the change to the mac file to my PR, or would it be better to leave it for a separate PR? (I'm not confident enough to make the changes to the Windows files.) -- ___ Python tracker

[issue38867] Enable Tkinter on Windows ARM

2021-10-16 Thread E. Paine
E. Paine added the comment: Does Tk 8.6.11 support WoA? I can't see anything mentioning it... -- nosy: +epaine ___ Python tracker ___

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-16 Thread Steve Dower
Steve Dower added the comment: Bit more complicated. It'll need changes to Tools/msi/launcher/launcher_reg.wxs, Tools/msi/tcltk/tcltk_reg.wxs, and PC/layout/support/appxmanifest.py, but I don't think it's that obvious where (we don't want these files to open with py.exe by default, so

[issue45494] [fuzzer] Parser null deref with continuation characters and generator parenthesis error

2021-10-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Presto!! PR 28993 -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45494] [fuzzer] Parser null deref with continuation characters and generator parenthesis error

2021-10-16 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +27276 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28993 ___ Python tracker

[issue45496] Tkinter: test_winfo_rgb failure

2021-10-16 Thread E. Paine
New submission from E. Paine : This issue is to separately address the test_winfo_rgb failure reported by myself in #43139. This issue does not currently affect any of the buildbots. --- On one computer I am experiencing a problem with the test_winfo_rgb test:

[issue43139] test_ttk test_compound, test_tk test_type fail with Tk 8.6.11.1

2021-10-16 Thread E. Paine
E. Paine added the comment: > I need to do more research into exactly what versions / platforms are > affected. There is something non-trivial about this test failure. I have now tested another computer with a very similar setup (Plasma on X11) with exactly the same monitor (both using

[issue45477] configure script cannot detect float word ordering on linux

2021-10-16 Thread Sourish Basu
Sourish Basu added the comment: See attached my config log. When I tried to compile conftest.c with 'icc -c conftest.c', it produced 'conftest.o' without any errors. -- Added file: https://bugs.python.org/file50364/config.log ___ Python tracker

[issue30082] hide command prompt when using subprocess.Popen with shell=False on Windows

2021-10-16 Thread Steve Dower
Steve Dower added the comment: That 'force_hide' in the NEWS shouldn't have single backticks. Make them ``double``, or the docs won't compile. -- ___ Python tracker ___

[issue30082] hide command prompt when using subprocess.Popen with shell=False on Windows

2021-10-16 Thread Steve Dower
Steve Dower added the comment: Had a look. The change looks fine, just needs a NEWS entry, which I suggested as: Adds new `force_hide` argument to :mod:`subprocess` functions. This passes ``SW_HIDE`` to the new process, which most applications will use to not display any window even if

[issue45420] Python 3.10 final installation failure

2021-10-16 Thread Steve Dower
Steve Dower added the comment: You probably need to also select the "Install for All Users" checkbox, rather than just updating the target path. Running as admin *technically* gives you the ability to write to those locations, but it also implies that nobody except Admin should be able to

[issue45420] Python 3.10 final installation failure

2021-10-16 Thread wyz23x2
wyz23x2 added the comment: I did. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45489] ForwardRef does not support | operator

2021-10-16 Thread Ken Jin
Ken Jin added the comment: Thanks @corona10 for the patch. @bobbeyreese The new behavior is available in 3.11 and up. 3.10.x won't be supporting the | operator. -- resolution: -> fixed stage: -> resolved status: open -> closed versions: -Python 3.10

[issue45489] ForwardRef does not support | operator

2021-10-16 Thread Guido van Rossum
Guido van Rossum added the comment: No. :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45116] Performance regression 3.10b1: inlining issue in the big _PyEval_EvalFrameDefault() function with Visual Studio (MSC)

2021-10-16 Thread neonene
neonene added the comment: msg402954 >https://github.com/faster-cpython/tools According to the suggested stats and pgomgr.exe, I experimentally moved LOAD_FAST and LOAD_CONST cases out of switch as below. if (opcode == LOAD_FAST) { ... DISPATCH(); }

[issue42222] Modernize integer test/conversion in randrange()

2021-10-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 5afa0a411243210a30526c7459a0ccff5cb88494 by Raymond Hettinger in branch 'main': bpo-4: Remove deprecated support for non-integer values (GH-28983) https://github.com/python/cpython/commit/5afa0a411243210a30526c7459a0ccff5cb88494

[issue45489] ForwardRef does not support | operator

2021-10-16 Thread Dong-hee Na
Dong-hee Na added the comment: @guido Do we need to create a backport for 3.10? Ken and I are waiting for your comment :) https://github.com/python/cpython/pull/28991#issuecomment-944926933 -- ___ Python tracker

[issue45489] ForwardRef does not support | operator

2021-10-16 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 15ad52fbf607b6ccec44a38a8a32a5f1fad635ee by Dong-hee Na in branch 'main': bpo-45489: Update ForwardRef to support | operator. (GH-28991) https://github.com/python/cpython/commit/15ad52fbf607b6ccec44a38a8a32a5f1fad635ee --

[issue45489] ForwardRef does not support | operator

2021-10-16 Thread Ken Jin
Ken Jin added the comment: ForwardRef is for internal use, and writing ForwardRef('fdsa') is discouraged, as the docs say: This class should not be instantiated by a user. However, I don't see any cons from adding union support, so let's do it! Note that a workaround exists for OP's

[issue45489] ForwardRef does not support | operator

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

[issue45489] ForwardRef does not support | operator

2021-10-16 Thread Guido van Rossum
Guido van Rossum added the comment: I suppose this is useful for programs that use runtime annotations (e.g. pydantic?). I don’t mind adding this. -- ___ Python tracker ___

[issue45495] IDLE: Add match and case

2021-10-16 Thread Julien Palard
New submission from Julien Palard : In IDLE, when hitting Ctrl-space on `matc` or `cas`, there's no completion to `match` and `case. References: https://mail.python.org/archives/list/d...@python.org/thread/DRZIHLQU25JUD7IQKCOIIKI4ADB746MA/ -- assignee: terry.reedy components: IDLE

[issue45494] [fuzzer] Parser null deref with continuation characters and generator parenthesis error

2021-10-16 Thread Ammar Askar
New submission from Ammar Askar : Another parser crash found by the fuzzer: "\ "(1for c in I,\ \ Recreator: >>> import ast >>> ast.literal_eval('"\\\n"(1for c in I,\\\n\\') [1]17916 segmentation fault ./python >>> import ast >>> ast.literal_eval(r''' ... "\ ... "(1for c in I,\ ... \

[issue45463] Document that # of identifiers allowed in global stmt is plural

2021-10-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks for the ready-to-go patch. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45463] Document that # of identifiers allowed in global stmt is plural

2021-10-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 855d6247adb39d4e38b698b89e519587318abd80 by Miss Islington (bot) in branch '3.10': [3.10]bpo-45463: Clarify that global statements allows multiple names (GH-28851) (GH-28989)

[issue45463] Document that # of identifiers allowed in global stmt is plural

2021-10-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset ac1b7a3319f268487c310ac7449703193f5eddad by Miss Islington (bot) in branch '3.9': [3.9]bpo-45463: Clarify that global statements allows multiple names (GH-28851) (GH-28990)

[issue45489] ForwardRef does not support | operator

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

[issue45489] ForwardRef does not support | operator

2021-10-16 Thread Dong-hee Na
Dong-hee Na added the comment: --- a/Lib/typing.py +++ b/Lib/typing.py @@ -719,6 +719,12 @@ def __eq__(self, other): def __hash__(self): return hash(self.__forward_arg__) +def __or__(self, other): +return Union[self, other] + +def __ror__(self, other): +

[issue45489] ForwardRef does not support | operator

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

[issue45463] Document that # of identifiers allowed in global stmt is plural

2021-10-16 Thread miss-islington
Change by miss-islington : -- keywords: +patch nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +27273 pull_request: https://github.com/python/cpython/pull/28989 ___ Python tracker

[issue45463] Document that # of identifiers allowed in global stmt is plural

2021-10-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +27274 pull_request: https://github.com/python/cpython/pull/28990 ___ Python tracker ___

[issue45463] Document that # of identifiers allowed in global stmt is plural

2021-10-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 4ecd119b007cb766b8bede2dc78b70d29cd932dd by Luca Chiodini in branch 'main': bpo-45463: Clarify that global statements allows multiple names (GH-28851) https://github.com/python/cpython/commit/4ecd119b007cb766b8bede2dc78b70d29cd932dd

[issue45489] ForwardRef does not support | operator

2021-10-16 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +gvanrossum, kj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45466] Simple curl/wget-like download functionality in urllib (like http offers server)

2021-10-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Posting the idea to python-ideas list might generate interest and ideas. -- nosy: +terry.reedy stage: -> test needed versions: +Python 3.11 ___ Python tracker

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Suggestion: At the end of https://docs.python.org/3/bugs.html, add "Creating a subclass that inherits from multiple exceptions may not work and the potential conflicts may change in new versions." -- assignee: -> docs@python components:

[issue45463] Document that # of identifiers allowed in global stmt is plural

2021-10-16 Thread Terry J. Reedy
Change by Terry J. Reedy : -- stage: -> patch review title: Documentation inconsistency on the number of identifiers allowed in global stmt -> Document that # of identifiers allowed in global stmt is plural versions: +Python 3.10, Python 3.11, Python 3.9

[issue45450] Improve syntax error for parenthesized arguments

2021-10-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: I suggest "Lambda expression parameters ...". Keep "Function parameters ..." for the other. Note that the first error is adding invalid outer parens, whereas the second is adding inner parens for sublist. -- nosy: +terry.reedy

[issue45425] There is an error in the Chinese documentation of contextlib.AbstractContextManager

2021-10-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe that translation errors should be reported elsewhere, but I do not see anything in https://docs.python.org/3/bugs.html. Adding something to the English version of that doc would be covered here. Julien? -- nosy: +mdk, terry.reedy

[issue45493] str() and repr() of enum different in Python 3.11 from Python <= 3.10

2021-10-16 Thread Dutcho
Dutcho added the comment: perhaps related to https://bugs.python.org/issue44559 ? -- ___ Python tracker ___ ___ Python-bugs-list

[issue45420] Python 3.10 final installation failure

2021-10-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Did you delete the old installation in the old location first? -- nosy: +terry.reedy ___ Python tracker ___

[issue45493] str() and repr() of enum different in Python 3.11 from Python <= 3.10

2021-10-16 Thread Dutcho
Change by Dutcho : -- title: str() and repr() of enum different in Python 3.11 from from Python <= 3.10 -> str() and repr() of enum different in Python 3.11 from Python <= 3.10 ___ Python tracker

[issue45395] Frozen stdlib modules are discarded if custom frozen modules added.

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

[issue45395] Frozen stdlib modules are discarded if custom frozen modules added.

2021-10-16 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 16.10.2021 01:31, Eric Snow wrote: > > @MAL, who's maintaining Tools/freeze? I'm not aware of who's using it (other > than you, of course). It looks like PyRun isn't compatible with anything > newer than 3.5, so it seems like that isn't verifying

[issue45493] str() and repr() of enum different in Python 3.11 from from Python <= 3.10

2021-10-16 Thread Dutcho
New submission from Dutcho : See below example, which shows Python 3.11 repr(enum) == Python 3.10 str(enum). The enum module documentation lists various enhancements in 3.11, but not this. And the what's new? documentation of 3.11 doesn't mention enum at all. Either this is by intent, and

[issue45492] stdlib inspect documentation on code.co_names is incorrect

2021-10-16 Thread Dutcho
New submission from Dutcho : The standard library documentation on module inspect starts with an overview of types and attributes. This overview (in all Python versions) states: code.co_names: tuple of names of local variables code.co_varnames: tuple of names of arguments and local

[issue42238] Deprecate suspicious.py?

2021-10-16 Thread Julien Palard
Julien Palard added the comment: DING DING DING DING DING DING, a new one today, and a true positive for `make suspicious`, fixed in: https://github.com/python/cpython/pull/28988/files (along with the test added to rstlint) -- ___ Python tracker

[issue45452] Support crash tolerance feature for gdbm module

2021-10-16 Thread Dong-hee Na
Dong-hee Na added the comment: So IMHO, those APIs are not that low-level API since they only need to create a file with 'x' flag and then calling gdbm_failure_atomic API. and if the user failed to save the file due to several accidents. They can easily restore the local file DB by using the

[issue45452] Support crash tolerance feature for gdbm module

2021-10-16 Thread Dong-hee Na
Dong-hee Na added the comment: I've done my PoC in my local environment. ``` import dbm.gnu as dbm db = dbm.open('x.db', 'nx') db.gdbm_failure_atomic('even_snapshot.bin', 'odd_snapshot.bin') for k, v in zip('abcdef', 'ghijkl'): db[k] = v db.sync() db.close() ``` By doing this in

[issue45485] datetime.strptime issues message attribute of type 'NoneType' is not callableTraceback

2021-10-16 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45485] datetime.strptime issues message attribute of type 'NoneType' is not callableTraceback

2021-10-16 Thread Freek de Kruijf
Freek de Kruijf added the comment: Op zaterdag 16 oktober 2021 00:03:41 CEST schreef u: > Eric V. Smith added the comment: > > It sounds like you're using python 2.7, which is unsupported. > > You've not even shown us what line produces the error you're seeing. I don't > see "type(a[0])"