[issue44115] Improve conversions for fractions

2021-05-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: Note for posterity: I tried out pattern matching here but it was a little tricky and it slowed down the code a bit. At at least it worked. if denominator is None: match numerator: case int(x) if type(numerator) is int

[issue44115] Improve conversions for fractions

2021-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It was proposed before in issue37884. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Pyt

[issue512981] readline /dev/tty problem

2021-05-13 Thread Pierre
Pierre added the comment: A workaround consists in replacing fd(0) with /dev/tty without modifying sys.stdin import os stdin = os.dup(0) os.close(0) tty = os.open("/dev/tty", os.O_RDONLY) assert tty == 0 import readline print("input:", input()) print("in:", os.read(stdin, 128)) --

[issue44069] pathlib.Path.glob's generator is not a real generator

2021-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The reason is different. The scandir() iterator should be closed before we go recursively deep in the directory tree. Otherwise we can reach the limit of open file descriptors (especially if several glob()s are called in parallel). See issue22167. ---

[issue44114] Incorrect function signatures in dictobject.c

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

[issue44114] Incorrect function signatures in dictobject.c

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

[issue44114] Incorrect function signatures in dictobject.c

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

[issue44114] Incorrect function signatures in dictobject.c

2021-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Good catch! The signature of dictkeys_reversed was already fixed (for purity reason), but the same bug in dictvalues_reversed and dictitems_reversed was missed. It is nice that such bugs can now be caught by tools. -- nosy: +serhiy.storchaka _

[issue44114] Incorrect function signatures in dictobject.c

2021-05-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- type: behavior -> crash versions: +Python 3.10, Python 3.11, Python 3.8, Python 3.9 ___ Python tracker ___ _

[issue44114] Incorrect function signatures in dictobject.c

2021-05-13 Thread miss-islington
miss-islington added the comment: New changeset 7cbe6ca63495d478a3164d6d26ef36cb611a by Miss Islington (bot) in branch '3.10': bpo-44114: Fix dictkeys_reversed and dictvalues_reversed function signatures (GH-26062) https://github.com/python/cpython/commit/7cbe6ca63495d478a3164d6d26ef36cb

[issue44121] Missing implementation for formatHeader and formatFooter methods of the BufferingFormatter class in the logging module.

2021-05-13 Thread Mahmoud Harmouch
New submission from Mahmoud Harmouch : While I was browsing in the source code of the logging package, I've encountered missing implementations for formatHeader and formatFooter methods of the BufferingFormatter class(in __init__ file). Therefore, I'm going to implement them and push these ch

[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 current solutions doesn't look correct. It swallows cancelling causing task to hang: https://bugs.python.org/issue42130 . Proposed test case calls cancel for inner future and set_result for outer task in the same loop step. The old (prior to this patc

[issue44121] Missing implementation for formatHeader and formatFooter methods of the BufferingFormatter class in the logging module.

2021-05-13 Thread Mahmoud Harmouch
Change by Mahmoud Harmouch : -- keywords: +patch pull_requests: +24735 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26095 ___ Python tracker ___

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

2021-05-13 Thread Adam Liddell
Change by Adam Liddell : -- nosy: +aaliddell ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

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

2021-05-13 Thread Adam Liddell
Adam Liddell added the comment: Some discussion leading up to that change is here https://github.com/MagicStack/asyncpg/pull/548 and in the issues it links. -- ___ Python tracker ___

[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 ___ ___ P

[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 reset(s

[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

[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 ___ ___

[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 __

[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

[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: https://m

[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 ___ _

[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.

[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 ___ __

[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 _

[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 _

[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) https://github.com/python/cpython/commit/2d972b8

[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

[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

[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 -

[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()`

[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 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 ___

[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 mail

[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: https://mail.p

[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) connect

[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 ___ ___

[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 ___ _

[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

[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 message

[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 ___

[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: https://

[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 -- st

[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) https://github.com/python/cpython/commit/c55ff1b352f8b82184f80d9d

[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 li

[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 ensur

[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 "/home/antoine/cpython/default/./Tools/scripts/patc

[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
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 __

[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 ___ _

[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

[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 ___ ___

[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 ___ ___

[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 -- ___ Pyth

[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 c

[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 ___ __

[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: +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 : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +24747 pull_request: https://github.com/python/cpython/pull/26105 ___ Python tracker _

[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 Unsubscr

[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 -- _

[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 -- _

[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 module

[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 ___ __

[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 --

[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 --

[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

[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. -- n

[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: https://mail

[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: https://

[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 ___ __

[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: +24752 pull_request: https://github.com/python/cpython/pull/26108 ___ Python tracker ___ __

[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 Antoine Pitrou
Change by Antoine Pitrou : -- versions: -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[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: https://

[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 ___ __

[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 ___ __

[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 -- __

[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 -- _

[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): raise

[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 Unsubscrib

[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 ___ __

[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

[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 --

[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 * _bz2.BZ2Dec

[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 --

[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 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 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 ___

[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
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

[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 work-aro

[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 St

[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 ___ ___

[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 don

  1   2   >