[issue43977] Implement the latest semantics for PEP 634 for matching collections

2021-05-13 Thread Carol Willing
Carol Willing added the comment: New changeset e7d25d3f3b335eb46d102137b447325f54750e31 by Miss Islington (bot) in branch '3.10': bpo-43977: Update pattern matching language reference docs (GH-25917) (GH-26117) https://github.com/python/cpython/commit/e7d25d3f3b335eb46d102137b447325f54750e31

[issue44129] zipfile: Add descriptive global variables for general purpose bit flags

2021-05-13 Thread Daniel Hillier
Change by Daniel Hillier : -- keywords: +patch pull_requests: +24763 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26118 ___ Python tracker ___

[issue43977] Implement the latest semantics for PEP 634 for matching collections

2021-05-13 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +24762 pull_request: https://github.com/python/cpython/pull/26117 ___ Python tracker

[issue43795] Implement PEP 652 -- Maintaining the Stable ABI

2021-05-13 Thread Carol Willing
Carol Willing added the comment: New changeset 373937182ee029c282bea58cdda57ab41990f404 by Miss Islington (bot) in branch '3.10': bpo-43795: PEP 652 user documentation (GH-25668) (GH-26034) https://github.com/python/cpython/commit/373937182ee029c282bea58cdda57ab41990f404 -- nosy:

[issue43757] pathlib: move 'resolve()' logic out of path flavour

2021-05-13 Thread Carol Willing
Carol Willing added the comment: New changeset ea14a0749a4f19b29236fc0acc4b556d9243bc6f by Miss Islington (bot) in branch '3.10': bpo-43757: Document os.path.realpath(strict=True) in 3.10 whatsnew. (GH-26090) (#26099)

[issue44129] zipfile: Add descriptive global variables for general purpose bit flags

2021-05-13 Thread Daniel Hillier
New submission from Daniel Hillier : In the zipfile module, masking of bit flags is done against hex numbers eg. if flags & 0x800... To increase readability I suggest we replace these with global variables named for the purpose of the flag. From the example above: if flags & 0x800 becomes:

[issue42109] Use hypothesis for testing the standard library, falling back to stubs

2021-05-13 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks, I will look into that before stirring up more dust. -- nosy: +Guido.van.Rossum ___ Python tracker ___

[issue44128] zipfile: Deduplicate ZipExtFile code for init and resetting when seeking

2021-05-13 Thread Daniel Hillier
Change by Daniel Hillier : -- keywords: +patch pull_requests: +24761 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26116 ___ Python tracker ___

[issue42109] Use hypothesis for testing the standard library, falling back to stubs

2021-05-13 Thread Zac Hatfield-Dodds
Zac Hatfield-Dodds added the comment: (I think structuring this as a high-level explanation is clearer than point-by-point replies - it covers most of them, but the logic is hopefully easier to follow) The core idea of Hypothesis is that making random choices is equivalent to parsing a

[issue44128] zipfile: Deduplicate ZipExtFile code for init and resetting when seeking

2021-05-13 Thread Daniel Hillier
New submission from Daniel Hillier : Integrating a refactor suggested in https://bugs.python.org/issue38334 The logic for preparing a ZipExtFile for reading (setting CRC state, read positions, etc) is currently in two locations: first initialisation and when seeking back to the start of a

[issue43012] Remove pathlib accessors

2021-05-13 Thread Barney Gale
Change by Barney Gale : -- type: -> performance versions: +Python 3.11 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43908] array.array should remain immutable: add Py_TPFLAGS_IMMUTABLETYPE flag

2021-05-13 Thread miss-islington
miss-islington added the comment: New changeset 3222b25b2f55d3b3d1dab4547bf7b5adaa1d874f by Miss Islington (bot) in branch '3.10': [3.10] bpo-43908: Add What's New entry for Py_TPFLAGS_IMMUTABLETYPE flag (GH-25816) (GH-26115)

[issue38693] Use f-strings instead of str.format within importlib

2021-05-13 Thread Filipe Laíns
Filipe Laíns added the comment: Both importlib_metadata and importlib_resources have dropped support for Python 2.7 and 3.5, this should now be unblocked. -- nosy: +FFY00 ___ Python tracker

[issue43908] array.array should remain immutable: add Py_TPFLAGS_IMMUTABLETYPE flag

2021-05-13 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 11.0 -> 12.0 pull_requests: +24760 pull_request: https://github.com/python/cpython/pull/26115 ___ Python tracker

[issue42972] [C API] Heap types (PyType_FromSpec) must fully implement the GC protocol

2021-05-13 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: -23226 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42109] Use hypothesis for testing the standard library, falling back to stubs

2021-05-13 Thread Guido van Rossum
Guido van Rossum added the comment: I would like to have a more thorough discussion about the desirability of using Hypothesis first, since I feel that there is a rather hard "sell" going on. I brought this up in the SC tracker (https://github.com/python/steering-council/issues/65) but I

[issue42972] [C API] Heap types (PyType_FromSpec) must fully implement the GC protocol

2021-05-13 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +24759 pull_request: https://github.com/python/cpython/pull/26114 ___ Python tracker ___

[issue44126] Cross Compile Cython Modules

2021-05-13 Thread Jeff Moguillansky
Jeff Moguillansky added the comment: Sorry I meant cpython. Distutils is part of cpython? Currently it doesn't seem to support cross compiling? On Thu, May 13, 2021, 1:08 PM Ned Deily wrote: > > Ned Deily added the comment: > > This issue tracker is for issues with cPython and the Python

[issue44127] urllib.parse.ParseResult._replace() does not allow replacing username, password, hostname, port

2021-05-13 Thread Jamie Bliss
New submission from Jamie Bliss : As it says in the title. ._replace() (inherited from namedtuple) doesn't allow changing the generated properties. While this is a natural consequence of how ParseResult is implemented, I would describe it as a deficiency of developer experience. My

[issue38291] Deprecate the typing.io and typing.re pseudo-modules

2021-05-13 Thread Sebastian Rittau
Sebastian Rittau added the comment: I opened a PR to remove their mention from the docs for now. I can look into how to add a deprecation warning to a module if no one else beats me to it. -- ___ Python tracker

[issue35089] Remove typing.io and typing.re from documentation

2021-05-13 Thread Sebastian Rittau
Change by Sebastian Rittau : -- pull_requests: +24758 pull_request: https://github.com/python/cpython/pull/26113 ___ Python tracker ___

[issue38291] Deprecate the typing.io and typing.re pseudo-modules

2021-05-13 Thread Sebastian Rittau
Change by Sebastian Rittau : -- keywords: +patch pull_requests: +24757 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26113 ___ Python tracker

[issue28146] Confusing error messages in str.format()

2021-05-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: It seems like this issue is entirely fixed now, closing. -- nosy: +pitrou resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.9 ___ Python tracker

[issue38291] Deprecate the typing.io and typing.re pseudo-modules

2021-05-13 Thread Guido van Rossum
Guido van Rossum added the comment: I agree, these namespaces were a mistake. Let's start deprecating them (and remove their mention from the docs again). -- versions: -Python 3.10 ___ Python tracker

[issue28146] Confusing error messages in str.format()

2021-05-13 Thread miss-islington
miss-islington added the comment: New changeset 133013e8a1ecd570266de766e2df9745a24343be by Miss Islington (bot) in branch '3.9': bpo-28146: Fix a confusing error message in str.format() (GH-24213) https://github.com/python/cpython/commit/133013e8a1ecd570266de766e2df9745a24343be --

[issue42972] [C API] Heap types (PyType_FromSpec) must fully implement the GC protocol

2021-05-13 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: I've added a checkbox for types that fully implement the GC protocol to https://discuss.python.org/t/list-of-built-in-types-converted-to-heap-types/8403/1. Heap types that fully implement the GC protocol: * _abc._abc_data * _bz2.BZ2Compressor *

[issue28146] Confusing error messages in str.format()

2021-05-13 Thread miss-islington
miss-islington added the comment: New changeset 2d780237d95cd3d95401f52be2edeac8b458eb68 by Miss Islington (bot) in branch '3.10': bpo-28146: Fix a confusing error message in str.format() (GH-24213) https://github.com/python/cpython/commit/2d780237d95cd3d95401f52be2edeac8b458eb68

[issue44109] missing dataclass decorator in match-statement example

2021-05-13 Thread Brandt Bucher
Brandt Bucher added the comment: I don't really think there is anything wrong with the documentation. I can copy-and-paste all of the code from the PEP 634 section of the 3.10 What's New into the REPL without any issues (provided that named subjects like point/points/test_variable/color are

[issue44114] Incorrect function signatures in dictobject.c

2021-05-13 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43952] Multiprocessing UNIX socket connection: client freeze if authkey is an empty byte string

2021-05-13 Thread Antoine Pitrou
Change by Antoine Pitrou : -- versions: +Python 3.11 -Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44123] make function parameter sentinel value true singletons

2021-05-13 Thread Tal Einat
Tal Einat added the comment: ... and they can be given excellent reprs by using a meta-class: class Sentinel(type): @classmethod def __prepare__(cls, name, bases, **kwds): d = super().__prepare__(name, bases, **kwds) def __new__(cls_, *args, **kwargs):

[issue44114] Incorrect function signatures in dictobject.c

2021-05-13 Thread miss-islington
miss-islington added the comment: New changeset c4c3beb5ad6b55c20b6dc7c6a92860f467afa75b by Miss Islington (bot) in branch '3.10': bpo-44114: Remove redundant cast. (GH-26098) https://github.com/python/cpython/commit/c4c3beb5ad6b55c20b6dc7c6a92860f467afa75b --

[issue44114] Incorrect function signatures in dictobject.c

2021-05-13 Thread miss-islington
miss-islington added the comment: New changeset 04c46101944777dd131bbfe8dbfef5f4d328860d by Miss Islington (bot) in branch '3.9': bpo-44114: Remove redundant cast. (GH-26098) https://github.com/python/cpython/commit/04c46101944777dd131bbfe8dbfef5f4d328860d --

[issue28146] Confusing error messages in str.format()

2021-05-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +24755 pull_request: https://github.com/python/cpython/pull/26111 ___ Python tracker ___

[issue28146] Confusing error messages in str.format()

2021-05-13 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +24754 pull_request: https://github.com/python/cpython/pull/26110 ___ Python tracker

[issue28146] Confusing error messages in str.format()

2021-05-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +24756 pull_request: https://github.com/python/cpython/pull/26112 ___ Python tracker ___

[issue8557] subprocess PATH semantics and portability

2021-05-13 Thread Henry Schreiner
Change by Henry Schreiner : -- nosy: +Henry Schreiner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44114] Incorrect function signatures in dictobject.c

2021-05-13 Thread Antoine Pitrou
Change by Antoine Pitrou : -- versions: -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44094] Remove PyErr_Set...WithUnicodeFilename APIs

2021-05-13 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker ___

[issue44114] Incorrect function signatures in dictobject.c

2021-05-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +24752 pull_request: https://github.com/python/cpython/pull/26108 ___ Python tracker ___

[issue44114] Incorrect function signatures in dictobject.c

2021-05-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +24753 pull_request: https://github.com/python/cpython/pull/26109 ___ Python tracker ___

[issue44114] Incorrect function signatures in dictobject.c

2021-05-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +24751 pull_request: https://github.com/python/cpython/pull/26107 ___ Python tracker ___

[issue28146] Confusing error messages in str.format()

2021-05-13 Thread Antoine Pitrou
Change by Antoine Pitrou : -- versions: +Python 3.11 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44109] missing dataclass decorator in match-statement example

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

[issue44126] Cross Compile Cython Modules

2021-05-13 Thread Ned Deily
Ned Deily added the comment: This issue tracker is for issues with cPython and the Python Standard Library. Cython is a third-party project that is not part of cPython. You should ask in a Cython forum (see https://cython.org/#development) or a general forum like StackOverflow. --

[issue43504] Site linked in docs, effbot.org, down

2021-05-13 Thread Mark Roseman
Mark Roseman added the comment: I'd argue for removing the links altogether, given the material is very outdated and from what I recall anything that was there is better covered now by TkDocs, Shipman, or other resources. -- ___ Python tracker

[issue44074] patchcheck checks against branch "master" not "main"

2021-05-13 Thread miss-islington
miss-islington added the comment: New changeset 336dc523a4180f99955b0fdb65e86059a1abac32 by Miss Islington (bot) in branch '3.10': bpo-44125: Fix "make patchcheck" on non-English locale (GH-26102) https://github.com/python/cpython/commit/336dc523a4180f99955b0fdb65e86059a1abac32 --

[issue44125] "make patchcheck" fails

2021-05-13 Thread miss-islington
miss-islington added the comment: New changeset 336dc523a4180f99955b0fdb65e86059a1abac32 by Miss Islington (bot) in branch '3.10': bpo-44125: Fix "make patchcheck" on non-English locale (GH-26102) https://github.com/python/cpython/commit/336dc523a4180f99955b0fdb65e86059a1abac32 --

[issue44125] "make patchcheck" fails

2021-05-13 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44126] Cross Compile Cython Modules

2021-05-13 Thread Jeff Moguillansky
New submission from Jeff Moguillansky : Hi, I was able to cross-compile Python 3.9.4 for Android. How do I cross-compile cython modules? I found one tool online: https://pypi.org/project/crossenv/ but it doesn't seem to be compatible with android clang? Does cython support cross-compiling

[issue44074] patchcheck checks against branch "master" not "main"

2021-05-13 Thread miss-islington
miss-islington added the comment: New changeset 04ce4c773667b0d9d05a89aea4720f8cf84e834e by Miss Islington (bot) in branch '3.9': bpo-44125: Fix "make patchcheck" on non-English locale (GH-26102) https://github.com/python/cpython/commit/04ce4c773667b0d9d05a89aea4720f8cf84e834e --

[issue44125] "make patchcheck" fails

2021-05-13 Thread miss-islington
miss-islington added the comment: New changeset 04ce4c773667b0d9d05a89aea4720f8cf84e834e by Miss Islington (bot) in branch '3.9': bpo-44125: Fix "make patchcheck" on non-English locale (GH-26102) https://github.com/python/cpython/commit/04ce4c773667b0d9d05a89aea4720f8cf84e834e --

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

2021-05-13 Thread Ned Batchelder
Ned Batchelder added the comment: Thanks, this fixes my issue. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44125] "make patchcheck" fails

2021-05-13 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +24747 pull_request: https://github.com/python/cpython/pull/26105 ___ Python tracker

[issue44074] patchcheck checks against branch "master" not "main"

2021-05-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +24748 pull_request: https://github.com/python/cpython/pull/26105 ___ Python tracker ___

[issue44125] "make patchcheck" fails

2021-05-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +24749 pull_request: https://github.com/python/cpython/pull/26106 ___ Python tracker ___

[issue44074] patchcheck checks against branch "master" not "main"

2021-05-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +24750 pull_request: https://github.com/python/cpython/pull/26106 ___ Python tracker ___

[issue44124] Unhelpful error messages with mis-ordering of f-string specifiers

2021-05-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I could try to give it a go to this still with the current parser, I think we could have some improvements without a lot of refactoring. Moving the whole f string to the grammar still don't ensure making this work easier unfortunately because is not

[issue44123] make function parameter sentinel value true singletons

2021-05-13 Thread Tal Einat
Tal Einat added the comment: Alternatively, sentinels can simply be classes: class Sentinel: def __new__(cls, *args, **kwargs): raise TypeError(f'{cls.__qualname__} cannot be instantiated') class MISSING(Sentinel): pass -- ___

[issue42972] [C API] Heap types (PyType_FromSpec) must fully implement the GC protocol

2021-05-13 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +24746 pull_request: https://github.com/python/cpython/pull/26104 ___ Python tracker ___

[issue37788] fix for bpo-36402 (threading._shutdown() race condition) causes reference leak

2021-05-13 Thread Antoine Pitrou
Change by Antoine Pitrou : -- nosy: +pitrou nosy_count: 13.0 -> 14.0 pull_requests: +24745 pull_request: https://github.com/python/cpython/pull/26103 ___ Python tracker ___

[issue44124] Unhelpful error messages with mis-ordering of f-string specifiers

2021-05-13 Thread Eric V. Smith
Eric V. Smith added the comment: As you note, some of these likely cannot be improved. There was talk last year about moving f-string's bespoke lexer/parser/compiler into the normal Python grammar. But I'm not sure if that ever got anywhere. If we did make that change, it would be easier to

[issue44074] patchcheck checks against branch "master" not "main"

2021-05-13 Thread Antoine Pitrou
Change by Antoine Pitrou : -- nosy: +pitrou nosy_count: 4.0 -> 5.0 pull_requests: +24744 pull_request: https://github.com/python/cpython/pull/26102 ___ Python tracker ___

[issue44125] "make patchcheck" fails

2021-05-13 Thread Antoine Pitrou
Change by Antoine Pitrou : -- keywords: +patch pull_requests: +24743 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/26102 ___ Python tracker

[issue44125] "make patchcheck" fails

2021-05-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch from bpo-44074 does not account for a possibly non-English locale and blindly greps for "HEAD branch" in a possibly localized text. -- ___ Python tracker

[issue44125] "make patchcheck" fails

2021-05-13 Thread Antoine Pitrou
New submission from Antoine Pitrou : ./python ./Tools/scripts/patchcheck.py Getting base branch for PR ... Traceback (most recent call last): File "/home/antoine/cpython/default/./Tools/scripts/patchcheck.py", line 307, in main() File

[issue44123] make function parameter sentinel value true singletons

2021-05-13 Thread Tal Einat
Tal Einat added the comment: Here is what I suggest working with sentinels would look like: >>> from dataclasses import MISSING >>> MISSING dataclasses.MISSING >>> M2 = pickle.loads(pickle.dumps(MISSING)) >>> M2 dataclasses.MISSING >>> M2 is MISSING True Here's an implementation which

[issue44074] patchcheck checks against branch "master" not "main"

2021-05-13 Thread Antoine Pitrou
Change by Antoine Pitrou : -- versions: +Python 3.10, Python 3.11, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue44098] Remove ParamSpec from __parameters__ of most typing generics

2021-05-13 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset c55ff1b352f8b82184f80d9dea220e832691acfc by Miss Islington (bot) in branch '3.10': bpo-44098: Drop ParamSpec from most ``__parameters__`` in typing generics (GH-26013) (#26091)

[issue38552] Colored Prompt broken in REPL in Windows in 3.8

2021-05-13 Thread William Minchin
William Minchin added the comment: I can't reproduce this today: Python 3.8.6 (or 3.9.5) with PowerShell 7.1.3 on Windows 10 with Windows Terminal. Maybe it got fixed by a bugfix release of Python 3.8? I'll close it for now. c.f. https://github.com/tartley/colorama/issues/233 --

[issue37788] fix for bpo-36402 (threading._shutdown() race condition) causes reference leak

2021-05-13 Thread Antoine Pitrou
Change by Antoine Pitrou : -- versions: +Python 3.11 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44124] Unhelpful error messages with mis-ordering of f-string specifiers

2021-05-13 Thread Angus L'Herrou
Change by Angus L'Herrou : -- title: Unhelpful SyntaxError message with mis-ordering of f-string specifiers -> Unhelpful error messages with mis-ordering of f-string specifiers ___ Python tracker

[issue44124] Unhelpful SyntaxError message with mis-ordering of f-string specifiers

2021-05-13 Thread Angus L'Herrou
New submission from Angus L'Herrou : The f-string grammar clearly specifies the correct order of f-string =, !, and : specifiers: replacement_field ::= "{" f_expression ["="] ["!" conversion] [":" format_spec] "}" However, when these components are used in the wrong order, the error

[issue37658] In some cases asyncio.wait_for can lead to socket leak.

2021-05-13 Thread Adam Liddell
Adam Liddell added the comment: Wrapping every resource allocating call like that is what we were trying to avoid, since it makes wait_for go from a simple one-line helper to something you have to be very careful with. Conceptually, a user should expect that wait_for should behave the exact

[issue44104] http.cookies.CookieError: Illegal key

2021-05-13 Thread ra1nb0w
ra1nb0w added the comment: Just another question: jaswdr, can you provide an example on how to filter out http.cookies.CookieError? thanks -- ___ Python tracker ___

[issue43795] Implement PEP 652 -- Maintaining the Stable ABI

2021-05-13 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +24742 pull_request: https://github.com/python/cpython/pull/26101 ___ Python tracker ___

[issue37658] In some cases asyncio.wait_for can lead to socket leak.

2021-05-13 Thread Denis S. Otkidach
Denis S. Otkidach added the comment: The original problem can be fixed by wrapping await into try-except block: ``` async def create_connection(ssl_obj): loop = asyncio.get_event_loop() connector = loop.create_connection(MyEchoClientProtocol, '127.0.0.1', 5000, ssl=ssl_obj)

[issue44123] make function parameter sentinel value true singletons

2021-05-13 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40938] urllib.parse.urlunsplit makes relative path to absolute (http:g -> http:///g)

2021-05-13 Thread Open Close
Open Close added the comment: I tried hard (even read RFC1630), but I think no. -- ___ Python tracker ___ ___ Python-bugs-list

[issue44123] make function parameter sentinel value true singletons

2021-05-13 Thread Zachary Ware
Zachary Ware added the comment: FWIW, at work we've been using `...` as a handy not-None singleton. -- nosy: +zach.ware ___ Python tracker ___

[issue44123] make function parameter sentinel value true singletons

2021-05-13 Thread Tal Einat
Tal Einat added the comment: Additional examples of such sentinel values in the stdlib are those in the dataclasses module, e.g. dataclasses.MISSING. -- ___ Python tracker

[issue44123] make function parameter sentinel value true singletons

2021-05-13 Thread Tal Einat
New submission from Tal Einat : I recently noticed that some functions use sentinel values to differentiate between not having been passed any value vs. None. One example of this is traceback.print_exception(), hence I'm adding Irit to the nosy list. However, using e.g. `sentinel = object()`

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

2021-05-13 Thread Mark Shannon
Mark Shannon added the comment: New changeset 0acdf255a51b836c0b44f3676797620322974af3 by Mark Shannon in branch '3.10': [3.10] bpo-43933: Force RETURN_VALUE bytecodes to have line numbers (GH-26061) https://github.com/python/cpython/commit/0acdf255a51b836c0b44f3676797620322974af3

[issue40938] urllib.parse.urlunsplit makes relative path to absolute (http:g -> http:///g)

2021-05-13 Thread Jonathan Schweder
Jonathan Schweder added the comment: Not exactly, in the RFC example they use a/b/c for the path, but when using http:g there is no nested path, so it should be http:///g, no? -- ___ Python tracker

[issue40938] urllib.parse.urlunsplit makes relative path to absolute (http:g -> http:///g)

2021-05-13 Thread Open Close
Open Close added the comment: 'http:///g' has absolute path '/g', and as urljoin shows: >>> urljoin('http://a/b/c/d', 'http:///g') 'http://a/g' # 'a' is netloc So you are proposing third interpretation. "http:g"= "http:g" ; for strict parsers

[issue39906] pathlib.Path: add `follow_symlinks` argument to `stat()` and `chmod()`

2021-05-13 Thread miss-islington
miss-islington added the comment: New changeset 2d972b8e7cb5347ddf83dfcee461f550b59f0736 by Miss Islington (bot) in branch '3.10': bpo-39906: Document new follow_symlinks argument to pathlib.Path.stat() and chmod() in 3.10 whatsnew. (GH-26089)

[issue39906] pathlib.Path: add `follow_symlinks` argument to `stat()` and `chmod()`

2021-05-13 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +24741 pull_request: https://github.com/python/cpython/pull/26100 ___ Python tracker

[issue43757] pathlib: move 'resolve()' logic out of path flavour

2021-05-13 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +24740 pull_request: https://github.com/python/cpython/pull/26099 ___ Python tracker

[issue40938] urllib.parse.urlunsplit makes relative path to absolute (http:g -> http:///g)

2021-05-13 Thread Open Close
Open Close added the comment: hello, @jaswdr, but I can't understand what's wrong with my point. What is 'the expected behaviour'? -- ___ Python tracker ___

[issue44122] let linter allow defining attribute outside __init__ if called in __init__

2021-05-13 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: Hi Ohad and thanks for filing a report. This is not a problem with CPython and outside of our control. You'd have to ask this question to the PyCharm linter team (unfortunately I don't know where exactly you would be able to do that). Closing.

[issue44114] Incorrect function signatures in dictobject.c

2021-05-13 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +24739 pull_request: https://github.com/python/cpython/pull/26098 ___ Python tracker ___

[issue44115] Improve conversions for fractions

2021-05-13 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39093] tkinter objects garbage collected from non-tkinter thread cause crash

2021-05-13 Thread Ivan Naydonov
Ivan Naydonov added the comment: I recently faced this problem and this bug was very helpful to understand whats going on. Especially the comment about a problem being a tkinter reference leaked to a thread. Most of the discussions in google results doesn't mention it (or at least it's not

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

2021-05-13 Thread Denis S. Otkidach
Change by Denis S. Otkidach : -- keywords: +patch pull_requests: +24737 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26097 ___ Python tracker

[issue37658] In some cases asyncio.wait_for can lead to socket leak.

2021-05-13 Thread Denis S. Otkidach
Change by Denis S. Otkidach : -- pull_requests: +24738 pull_request: https://github.com/python/cpython/pull/26097 ___ Python tracker ___

[issue39093] tkinter objects garbage collected from non-tkinter thread cause crash

2021-05-13 Thread Ivan Naydonov
Ivan Naydonov added the comment: I recently faced this problem and this bug was very helpful to understand whats going on. Especially the comment about a problem being a tkinter reference leaked to a thread. Most of the discussions in google results doesn't mention it (or at least it's not

[issue39093] tkinter objects garbage collected from non-tkinter thread cause crash

2021-05-13 Thread Ivan Naydonov
Ivan Naydonov added the comment: I recently faced this problem and this bug was very helpful to understand whats going on. Especially the comment about a problem being a tkinter reference leaked to a thread. Most of the discussions in google results doesn't mention it (or at least it's not

[issue39093] tkinter objects garbage collected from non-tkinter thread cause crash

2021-05-13 Thread Ivan Naydonov
Ivan Naydonov added the comment: I recently faced this problem and this bug was very helpful to understand whats going on. Especially the comment about a problem being a tkinter reference leaked to a thread. Most of the discussions in google results doesn't mention it (or at least it's not

[issue44122] let linter allow defining attribute outside __init__ if called in __init__

2021-05-13 Thread Ohad Shemesh
New submission from Ohad Shemesh : A have a simple scenario in which I have a class with some initialized attribute that I want to be able to reset again. In order to avoid code duplication I'd to to something like this - class A: def __init__(self): self.reset() def

[issue38908] Troubles with @runtime_checkable protocols

2021-05-13 Thread Ken Jin
Change by Ken Jin : -- pull_requests: +24736 pull_request: https://github.com/python/cpython/pull/26096 ___ Python tracker ___ ___

  1   2   >