[issue43994] change representation of match as / capture as `Name(..., ctx=Store())`

2021-04-30 Thread Adrian Freund
Adrian Freund added the comment: I already brought this up on the main pattern matching issue some time ago (https://bugs.python.org/issue42128#msg388554), where the consensus was that not using a Name is consistent with other parts of the ast, such as `import ... as identifier`, `except

[issue43916] Mark static types newly converted to heap types as immutable: add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag

2021-04-30 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: > Not sure what do you have in mind for the wiki See https://meta.discourse.org/t/what-is-a-wiki-post/30801 -- ___ Python tracker

[issue43996] Doc for mutable sequence pop() method implies argument is a slice or sequence.

2021-04-30 Thread Mark Sapiro
Mark Sapiro added the comment: Thank you for the explanation which I understand and accept. I also fully (or maybe not quite fully) understand the use of square brackets to indicate optional arguments. It's just that in the context of the table at

[issue43994] change representation of match as / capture as `Name(..., ctx=Store())`

2021-04-30 Thread Anthony Sottile
Anthony Sottile added the comment: at least for static analysis of other python constructs it's very convenient to know from a `Name` node alone whether it's being used in a read or write context -- without this information an ast traversal needs to maintain more information about whether

[issue43996] Doc for mutable sequence pop() method implies argument is a slice or sequence.

2021-04-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: In function signatures, the square brackets do not mean that there is a list. Instead, it is a convention used throughout the docs to mean that an argument is optional. In this case, s.pop([i]) means that both of these are valid calls: # retrieve

[issue43994] change representation of match as / capture as `Name(..., ctx=Store())`

2021-04-30 Thread Guido van Rossum
Guido van Rossum added the comment: I'm -0.5 on reusing Name(ctx=Store). The reason we're using that in assignments is that in the past (before the PEG parser) the parser literally used the same grammar for the LHS and RHS of assignments, and a second pass was used to rule out invalid

[issue43994] change representation of match as / capture as `Name(..., ctx=Store())`

2021-04-30 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +freundTech ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43994] change representation of match as / capture as `Name(..., ctx=Store())`

2021-04-30 Thread Brandt Bucher
Brandt Bucher added the comment: + Nick and Guido The only benefit I see on our side is that it leaves the door open for complex assignment targets in the future, like (a, b), a[b], etc. (If I recall correctly, this is also why NamedExpr uses an expr target rather than just an identifier.)

[issue42269] Add ability to set __slots__ in dataclasses

2021-04-30 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks for all of your work, Yurii. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42269] Add ability to set __slots__ in dataclasses

2021-04-30 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset c24199184bea0c851c1a7296ae54aaf18ee56752 by Yurii Karabas in branch 'master': bpo-42269: Add slots parameter to dataclass decorator (GH-24171) https://github.com/python/cpython/commit/c24199184bea0c851c1a7296ae54aaf18ee56752 --

[issue43997] dataclasses documentation needs version added for match_args, kw_only, and slots

2021-04-30 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: -> docs@python components: +Documentation keywords: +easy, newcomer friendly nosy: +docs@python ___ Python tracker ___

[issue43997] dataclasses documentation needs version added for match_args, kw_only, and slots

2021-04-30 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: eric.smith priority: normal severity: normal stage: needs patch status: open title: dataclasses documentation needs version added for match_args, kw_only, and slots versions: Python 3.10 ___ Python tracker

[issue43994] change representation of match as / capture as `Name(..., ctx=Store())`

2021-04-30 Thread Anthony Sottile
Anthony Sottile added the comment: and actually, now that I look close it would be useful for `MatchStar` and `MatchMapping` to also use a `Name(..., ctx=Store())` for their respective parameters as well -- ___ Python tracker

[issue43957] [Enum] update __contains__ to return True for valid values

2021-04-30 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal nosy_count: 1.0 -> 2.0 pull_requests: +24463 pull_request: https://github.com/python/cpython/pull/25770 ___ Python tracker

[issue43983] Can't install Python v3.9.4 / 0x80070643 / windows 10 64bit

2021-04-30 Thread Marwan Essam
Marwan Essam added the comment: Also if you are talking about the location of installation, i tried to install it in somewhere else and still not working -- ___ Python tracker

[issue43983] Can't install Python v3.9.4 / 0x80070643 / windows 10 64bit

2021-04-30 Thread Marwan Essam
Marwan Essam added the comment: Hello Terry, thank you for replying. I tried many times to reboot and no luck. Also i noticed that when i tried to install an older version like Python 2 the installation done without errors. -- nosy: +Marwan ___

[issue43989] Enum deprecation breaks SSL tests

2021-04-30 Thread robertohueso
Change by robertohueso : -- nosy: +robertohueso nosy_count: 7.0 -> 8.0 pull_requests: +24462 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/25769 ___ Python tracker

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2021-04-30 Thread Inada Naoki
Inada Naoki added the comment: +1 to Eryk. > Hence my newbie questions are: 1) What problem are you trying to solve by this "unlinking trick"? Same to TempoaryFile in Unix. 2) Do we need to have a separate issue raised for this problem? I don't think so. We didn't unlink because wi didn't

[issue43916] Mark static types newly converted to heap types as immutable: add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag

2021-04-30 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 558df9010915c8fe94f4d7f842e7c5aabbb06b14 by Pablo Galindo in branch 'master': bpo-43916: Export the _PyStructSequence_InitType to fix build errors in the curses module (GH-25768)

[issue43950] Include column offsets for bytecode instructions

2021-04-30 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > So would marking the 0 denominator when there is more than one candidate: "e > = a/b + c/d". No, it will mark the offset of the bytecode that was getting executed when the exception was raised. Is just a way to mark what is raising the particular

[issue43916] Mark static types newly converted to heap types as immutable: add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag

2021-04-30 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The build errors were in the CI, but because Python doesn't complain if it cannot build a module, then we never catched this. I have opened https://github.com/python/cpython/pull/25768 to fix it to unblock the release, since the curses module is

[issue43916] Mark static types newly converted to heap types as immutable: add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag

2021-04-30 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +24461 pull_request: https://github.com/python/cpython/pull/25768 ___ Python tracker ___

[issue43950] Include column offsets for bytecode instructions

2021-04-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Marking what expression evaluated to None would be extremely helpful. So would marking the 0 denominator when there is more than one candidate: "e = a/b + c/d". It should be easy to revise IDLE Shell's print_exception to tag the span. In some cases, the

[issue43916] Mark static types newly converted to heap types as immutable: add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag

2021-04-30 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The problem is that the curses module is using a function that requires to be built in the core: #ifdef Py_BUILD_CORE extern int _PyStructSequence_InitType( PyTypeObject *type, PyStructSequence_Desc *desc, unsigned long tp_flags); #endif

[issue43916] Mark static types newly converted to heap types as immutable: add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag

2021-04-30 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Something is wrong after commit 3bb09947ec4837de75532e21dd4bd25db0a1f1b7. When building Python I am getting: *** WARNING: renaming "_curses" since importing it failed:

[issue43994] change representation of match as / capture as `Name(..., ctx=Store())`

2021-04-30 Thread Anthony Sottile
Anthony Sottile added the comment: I'm suggesting instead of: MatchAs(pattern=None, name='foo') to have MatchAs(pattern=None, name=Name('foo', ctx=Store())) -- ___ Python tracker

[issue43996] Doc for mutable sequence pop() method implies argument is a slice or sequence.

2021-04-30 Thread Mark Sapiro
New submission from Mark Sapiro : In several places in the documentation including: ``` grep -rn 'pop.\[i\]' Lib/pydoc_data/topics.py:13184: '| "s.pop([i])" | retrieves the item at *i* ' Lib/pydoc_data/topics.py:13647: '| "s.pop([i])"

[issue43971] documentation: no spacing around default args in annotated function

2021-04-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 606bb1c77c66eca081d03374ad4b53d9e603dd9d by Miss Islington (bot) in branch '3.8': bpo-43971: Add spaces around annotated arg default '=' (GH-25702) https://github.com/python/cpython/commit/606bb1c77c66eca081d03374ad4b53d9e603dd9d --

[issue43971] documentation: no spacing around default args in annotated function

2021-04-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset e48405a9be067d50d6d0d83dc22013fc68f15657 by Miss Islington (bot) in branch '3.9': bpo-43971: Add spaces around annotated arg default '=' (GH-25702) https://github.com/python/cpython/commit/e48405a9be067d50d6d0d83dc22013fc68f15657 --

[issue43994] change representation of match as / capture as `Name(..., ctx=Store())`

2021-04-30 Thread Brandt Bucher
Brandt Bucher added the comment: FWIW, I'm never used pyflakes, but I'm not really sure how it would be able to provide useful linting by just treating patterns as expressions (which is what I assume is desired here). I assume that these are the three lines you're trying to get rid of?

[issue22167] iglob() has misleading documentation (does indeed store names internally)

2021-04-30 Thread Andrei Kulakov
Change by Andrei Kulakov : -- keywords: +patch nosy: +andrei.avk nosy_count: 8.0 -> 9.0 pull_requests: +24460 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25767 ___ Python tracker

[issue43979] Simplify urllib.parse_qsl

2021-04-30 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43979] Simplify urllib.parse_qsl

2021-04-30 Thread Dong-hee Na
Change by Dong-hee Na : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue43994] change representation of match as / capture as `Name(..., ctx=Store())`

2021-04-30 Thread Brandt Bucher
Brandt Bucher added the comment: Do you mind providing a bit more context? I'm sort of confused what exactly is being proposed here (as far as I can tell, it's not really possible to represent " as " with a single Name node). Also, I'm not sure if you're aware, but we just completed a huge

[issue43950] Include column offsets for bytecode instructions

2021-04-30 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +brandtbucher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43916] Mark static types newly converted to heap types as immutable: add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag

2021-04-30 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > * _ast.AST: use {Py_tp_new, PyType_GenericNew} and {Py_tp_init, > ast_type_init} slots. What happens if tp_new is called without calling > tp_init? I think this is fine since ast_type_init doesn't initialize any C fields and only mutates the

[issue43916] Mark static types newly converted to heap types as immutable: add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag

2021-04-30 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > If one of the admins could make that post into a wiki post, it would be open > for editing, making it easier to fill the holes in the lists. Not sure what do you have in mind for the wiki, but the easiest is to open some GitHub issue somewhere or

[issue41486] Add _BlocksOutputBuffer for bz2/lzma/zlib module

2021-04-30 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 251ffa9d2b16b091046720628deb6a7906c35d29 by Ma Lin in branch 'master': bpo-41486: Fix initial buffer size can't > UINT32_MAX in zlib module (GH-25738) https://github.com/python/cpython/commit/251ffa9d2b16b091046720628deb6a7906c35d29

[issue38530] Offer suggestions on AttributeError and NameError

2021-04-30 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Hi Dennis, this is a fantastic investigation! I think I really like GCC approach here. We may want to invest into porting some of their ideas into our solution. -- ___ Python tracker

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

2021-04-30 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: test_grammar also needed a fix. It has been updated to use import_helper.import_fresh_module in bpo-43995 (GH-25764). -- nosy: +erlendaasland ___ Python tracker

[issue43950] Include column offsets for bytecode instructions

2021-04-30 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Basically, to highlight in all exceptions the range in the displayed line where the error ocurred. For instance: >>> foo(a, b/z+2, c, 132432 /x, d /y) ^ Traceback (most recent call last): File "", line 1, in

[issue43950] Include column offsets for bytecode instructions

2021-04-30 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Specific examples of current messages and proposed improvements would help > focus discussion. Yeah, I am proposing going from: >>> x['aa']['bb']['cc']['dd'].sddfsdf.sdfsdf Traceback (most recent call last): File "", line 1, in

[issue43995] test_grammar fails if run sequentially

2021-04-30 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks for the quick fix Erlend! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue43995] test_grammar fails if run sequentially

2021-04-30 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset e467ec476f624323b8638cf100d1bfbf1d6a21c6 by Erlend Egeberg Aasland in branch 'master': bpo-43995: Fix reference leak in test_grammar (GH-25764) https://github.com/python/cpython/commit/e467ec476f624323b8638cf100d1bfbf1d6a21c6

[issue43916] Mark static types newly converted to heap types as immutable: add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag

2021-04-30 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: > These lists are not complete, for example select.kevent was not listed > whereas it has a bug. If one of the admins could make that post into a wiki post, it would be open for editing, making it easier to fill the holes in the lists. --

[issue43971] documentation: no spacing around default args in annotated function

2021-04-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +24459 pull_request: https://github.com/python/cpython/pull/25766 ___ Python tracker ___

[issue43971] documentation: no spacing around default args in annotated function

2021-04-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset e726a902b7c73a7056b7421d801e47255873 by Mohamed Moselhy in branch 'master': bpo-43971: Add spaces around annotated arg default '=' (GH-25702) https://github.com/python/cpython/commit/e726a902b7c73a7056b7421d801e47255873 --

[issue43971] documentation: no spacing around default args in annotated function

2021-04-30 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +24458 pull_request: https://github.com/python/cpython/pull/25765 ___ Python tracker

[issue43988] Add test.support.assert_dissallow_instantiation

2021-04-30 Thread STINNER Victor
STINNER Victor added the comment: You can keep PR 25757 to add the helper function, and then write a second PR to use it in all tests. -- ___ Python tracker ___

[issue43916] Mark static types newly converted to heap types as immutable: add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag

2021-04-30 Thread STINNER Victor
STINNER Victor added the comment: I checked " Types converted pre Python 3.9" and "Types converted in Python 3.9" of: https://discuss.python.org/t/list-of-built-in-types-converted-to-heap-types/8403 (I didn't check "Types converted in Python 3.10" yet.) These lists are not complete, for

[issue43983] Can't install Python v3.9.4 / 0x80070643 / windows 10 64bit

2021-04-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: The error message suggests somethng else is using something in an existing 3.9 directory, and that you should close everything and reboot your machine and try again without running anything else. -- nosy: +terry.reedy

[issue43995] test_grammar fails if run sequentially

2021-04-30 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- keywords: +patch pull_requests: +24457 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25764 ___ Python tracker

[issue43995] test_grammar fails if run sequentially

2021-04-30 Thread Erlend Egeberg Aasland
New submission from Erlend Egeberg Aasland : To reproduce: $ ./python.exe -m test test_typing test_grammar 0:00:00 load avg: 1.95 Run tests sequentially 0:00:00 load avg: 1.95 [1/2] test_typing 0:00:00 load avg: 1.95 [2/2] test_grammar test test_grammar failed -- Traceback (most recent call

[issue43994] change representation of match as / capture as `Name(..., ctx=Store())`

2021-04-30 Thread Anthony Sottile
New submission from Anthony Sottile : I'm looking at adding support to `match` for pyflakes, and the first impression I have is that `MatchAs` is unnecessarily different from `Name` with `ctx=Store()` if it were represented as the latter pyflakes would not require special handling of

[issue43976] Allow Python distributors to add custom site install schemes

2021-04-30 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: Introduce mechanism to allow Python distributors to add custom site install schemes -> Allow Python distributors to add custom site install schemes ___ Python tracker

[issue43971] documentation: no spacing around default args in annotated function

2021-04-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: >From PEP 8: right:label: str = '' wrong:result: int=0 # No spaces around equality sign current doc: quantity_on_hand: int=0): -- assignee: docs@python -> terry.reedy nosy: +terry.reedy versions: -Python 3.11, Python 3.7

[issue43982] Code coverage on the CI: validate codecov shell script checksum

2021-04-30 Thread Ammar Askar
Ammar Askar added the comment: With issue43888 being fixed with the removal of the coverage build, this is now obsolete. Thanks for pointing out the codecov breach, we will make sure to follow this if we ever re-add codecov. -- resolution: -> out of date stage: -> resolved status:

[issue43916] Mark static types newly converted to heap types as immutable: add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag

2021-04-30 Thread STINNER Victor
STINNER Victor added the comment: * _tkinter.Tcl_Obj * _tkinter.tkapp * _tkinter.tktimertoken Oops, sorry: in Python 3.9, tp_new is set to NULL after these heap types are created. There is no bug for these 3 types. -- ___ Python tracker

[issue43888] GitHub Actions CI/CD `Coverage` job is broken on master

2021-04-30 Thread Ammar Askar
Ammar Askar added the comment: Coverage builds have been removed from the CI, closing this now. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue43916] Mark static types newly converted to heap types as immutable: add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag

2021-04-30 Thread STINNER Victor
STINNER Victor added the comment: Status in Python 3.9. 5 types allow instantiation whereas they must not: BUG!!! * _tkinter.Tcl_Obj * _tkinter.tkapp * _tkinter.tktimertoken * zlib.Compress * zlib.Decompress Example of bug: $ python3.9 Python 3.9.4 >>> import zlib >>>

[issue43988] Add test.support.assert_dissallow_instantiation

2021-04-30 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: I'll fix your typo ;) I'll include the rest of the test in the PR. I just pushed it out quickly to get a review of the solution. -- ___ Python tracker

[issue43928] Fix the typo in documentation

2021-04-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Merge conflict in 3.9. Skipping backports. -- resolution: not a bug -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10 -Python 3.8 ___ Python tracker

[issue43935] Fix typo in Turtle.back docstring

2021-04-30 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43935] Fix typo in Turtle.back docstring

2021-04-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset e377ecf3b496c7719e6dffe3ebf3d0ef512cfb5b by Miss Islington (bot) in branch '3.8': bpo-43935: Fix typo in Turtle.back() docstring (GH-25581) https://github.com/python/cpython/commit/e377ecf3b496c7719e6dffe3ebf3d0ef512cfb5b --

[issue43928] Fix the typo in documentation

2021-04-30 Thread Terry J. Reedy
New submission from Terry J. Reedy : New changeset e08c67372d62236409da296353827985a3202e8a by JT in branch 'master': bpo-43928: Fix 'succesfully' typo in document (GH-25569) https://github.com/python/cpython/commit/e08c67372d62236409da296353827985a3202e8a -- nosy: +terry.reedy

[issue43969] "bad magic number" when Python 2's pyc file exists without py file

2021-04-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Unless you find documentation that says otherwise, this an enhancement proposal for 3.11. If no core developer (other than me) jumps on this, you might use git blame to fine out who committed code in the area you proposed changing. -- nosy:

[issue43950] Include column offsets for bytecode instructions

2021-04-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Specific examples of current messages and proposed improvements would help focus discussion. If you are willing to only handle code lines up to 256 chars, only 2 bytes should be needed. (0,0) or (255,255) could mean 'somewhere beyond the 256th char'.

[issue43935] Fix typo in Turtle.back docstring

2021-04-30 Thread miss-islington
miss-islington added the comment: New changeset a7f15ba5476051471638957b4d028097d080b290 by Miss Islington (bot) in branch '3.9': bpo-43935: Fix typo in Turtle.back() docstring (GH-25581) https://github.com/python/cpython/commit/a7f15ba5476051471638957b4d028097d080b290 --

[issue43948] sysconfig's osx_framework_user puts headers in different locations from distutils

2021-04-30 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: sysconfig’s osx_framework_user puts headers in different locations from distutils -> sysconfig's osx_framework_user puts headers in different locations from distutils versions: -Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 3.9

[issue43988] Add test.support.assert_dissallow_instantiation

2021-04-30 Thread STINNER Victor
STINNER Victor added the comment: You can take this issue as an opportunity to fix my typo :-) Lib/test/test_hashlib.py: "test_disallow_instanciation" => "test_disallow_instantiation". https://github.com/python/cpython/commit/665c7746fca180266b121183c2d5136c547006e0#commitcomment-50235589

[issue43944] Processes in Python 3.9 exiting with code 1 when It's created inside a ThreadPoolExecutor

2021-04-30 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +davin, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43937] Turtle uses the default root window

2021-04-30 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43534] turtle.textinput window is not transient

2021-04-30 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -24314 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43937] Turtle uses the default root window

2021-04-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +24456 pull_request: https://github.com/python/cpython/pull/25594 ___ Python tracker ___

[issue43534] turtle.textinput window is not transient

2021-04-30 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -24313 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43937] Turtle uses the default root window

2021-04-30 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +24455 pull_request: https://github.com/python/cpython/pull/25593 ___ Python tracker

[issue43935] Fix typo in Turtle.back docstring

2021-04-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +24454 pull_request: https://github.com/python/cpython/pull/25763 ___ Python tracker ___

[issue43935] Fix typo in Turtle.back docstring

2021-04-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 0048c60f01deec4435748e851f9ec21b504d2d2f by Tarjei Bærland in branch 'master': bpo-43935: Fix typo in Turtle.back() docstring (GH-25581) https://github.com/python/cpython/commit/0048c60f01deec4435748e851f9ec21b504d2d2f -- nosy:

[issue43935] Fix typo in Turtle.back docstring

2021-04-30 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +24453 pull_request: https://github.com/python/cpython/pull/25762 ___ Python tracker

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

2021-04-30 Thread Larry Hastings
Larry Hastings added the comment: Ah, I see. So it wasn't a Windows thing, it was a "we run the test multiple times and that particular test assumed it was only run once" thing. And reflink testing is guaranteed to run every test multiple times. --

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2021-04-30 Thread Evgeny
Evgeny added the comment: Eryk, I agree, that implementing TemporaryFile() in Windows goes hand in hand with the decision to stop using O_TEMPORARY in NamedTemporaryFile() The only thing I want to point out is that your suggestion also includes this "unlinking trick" (sorry, may be there

[issue43888] GitHub Actions CI/CD `Coverage` job is broken on master

2021-04-30 Thread Brett Cannon
Brett Cannon added the comment: New changeset 726c931b3896dc73fd156e2340b5ef0b8f55cfb7 by Ammar Askar in branch 'master': bpo-43888: Remove coverage builds from CI (GH-25679) https://github.com/python/cpython/commit/726c931b3896dc73fd156e2340b5ef0b8f55cfb7 --

[issue38530] Offer suggestions on AttributeError and NameError

2021-04-30 Thread Dennis Sweeney
Dennis Sweeney added the comment: Some research of other projects: LLVM [1][2] --- - Compute Levenshtein - Using O(n) memory rather than O(n^2) - Uses UpperBound = (len(typo) + 2) // 3 GCC [3] --- - Uses Damerau-Levenshtein distance - Counts transpositions like "abcd"

[issue43981] test_idle is leaking references

2021-04-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I was just about to try adding that exact cleanup close after finishing reading emails ;-). Sorry I didn't think of it last night. Glad it worked. The alternative would have been to skip the test case. -- ___

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2021-04-30 Thread Eryk Sun
Eryk Sun added the comment: > you are proposing some trick with first unlinking the file and > then employing it as a temporary file using previously known fd. It doesn't need to unlink the file to make it anonymous. I included that to highlight that it's possible. The details can be

[issue43968] os.path.realpath() unexpected breaking change: resolves subst'd paths to real paths

2021-04-30 Thread Eryk Sun
Eryk Sun added the comment: > In our organization we use substituted drives for development, and > no other tools (including other programming languages and their IDEs), > except for Python 3.8+, had any problems with this. How about keeping a substitute or mapped drive from the input path

[issue43989] Enum deprecation breaks SSL tests

2021-04-30 Thread Ethan Furman
Ethan Furman added the comment: Traveling at the moment, I'll check it out in a few hours. -- ___ Python tracker ___ ___

[issue40379] multiprocessing's default start method of fork()-without-exec() is broken

2021-04-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Agreed, but again, changing will break some applications. We could switch to forkserver, but we should have a transition period where a FutureWarning will be displayed if people didn't explicitly set a start method. --

[issue40379] multiprocessing's default start method of fork()-without-exec() is broken

2021-04-30 Thread Itamar Turner-Trauring
Itamar Turner-Trauring added the comment: Given people's general experience, I would not say that "fork" works on Linux either. More like "99% of the time it works, 1% it randomly breaks in mysterious way". -- ___ Python tracker

[issue43993] Update bundled pip to 21.1.1

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

[issue40379] multiprocessing's default start method of fork()-without-exec() is broken

2021-04-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: The macOS change was required before "fork" simply ceased to work. Windows has always used "spawn", because no other method can be implemented on Windows. -- ___ Python tracker

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2021-04-30 Thread Evgeny
Evgeny added the comment: > Eryk Sun added the comment: > Just implement a separate function for TemporaryFile() instead of aliasing it > to NamedTemporaryFile(). See msg390814. Eryk, forgive my ignorance, but aren't in your msg390814 you are proposing yet another enhancement (separate

[issue43979] Simplify urllib.parse_qsl

2021-04-30 Thread miss-islington
miss-islington added the comment: New changeset 6143fcdf8bfe54c24e3081bcee423f4d51f35c4e by Dong-hee Na in branch 'master': bpo-43979: Remove unnecessary operation from urllib.parse.parse_qsl (GH-25756) https://github.com/python/cpython/commit/6143fcdf8bfe54c24e3081bcee423f4d51f35c4e

[issue40379] multiprocessing's default start method of fork()-without-exec() is broken

2021-04-30 Thread Itamar Turner-Trauring
Itamar Turner-Trauring added the comment: This change was made on macOS at some point, so why not Linux? "spawn" is already the default on macOS and Windows. -- ___ Python tracker

[issue43993] Update bundled pip to 21.1.1

2021-04-30 Thread Stéphane Bidoul
New submission from Stéphane Bidoul : This is to update the bundled pip to 21.1.1. Compared to 21.1, it includes a fix that suppresses a noisy message when distutils and sysconfig schemes do not match. I link this issue to 3.9 and 3.8 as well, as it could be nice to include it in the

[issue29753] [Linux] ctypes packs bitfields Incorrectly

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

[issue42130] AsyncIO's wait_for can hide cancellation in a rare race condition

2021-04-30 Thread Crowbar Z
Change by Crowbar Z : -- nosy: +crowbarz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43993] Upda

2021-04-30 Thread Stéphane Bidoul
Change by Stéphane Bidoul : -- nosy: sbidoul priority: normal severity: normal status: open title: Upda ___ Python tracker ___ ___

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

2021-04-30 Thread Stéphane Bidoul
Change by Stéphane Bidoul : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue40379] multiprocessing's default start method of fork()-without-exec() is broken

2021-04-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: The problem with changing the default is that this will break any application that depends on passing non-picklable data to the child process (in addition to the potentially unexpected performance impact). The docs already contain a significant elaboration

  1   2   3   >