[issue44119] Use glob.glob() to implement pathlib.Path.glob()

2021-05-12 Thread Barney Gale
New submission from Barney Gale : I have a scratchy patch that replaces pathlib's globbing implementation with glob.glob(), which gained a `root_dir` argument in bpo-38144 Encouraging timings: $ ./python -m timeit -s "from pathlib import Path; p = Path()" -- "list(p.glob('**/*'))"

[issue44104] http.cookies.CookieError: Illegal key

2021-05-12 Thread ra1nb0w
ra1nb0w added the comment: Thank you very much jaswdr for the clarification. Now I close this issue. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue44098] Remove ParamSpec from __parameters__ of most typing generics

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

[issue44114] Incorrect function signatures in dictobject.c

2021-05-12 Thread Ma Lin
Change by Ma Lin : -- nosy: +methane ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-05-12 Thread hai shi
Change by hai shi : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43176] Dataclasses derived from empty frozen bases skip immutability checks

2021-05-12 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: -> eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44115] Improve conversions for fractions

2021-05-12 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing

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

2021-05-12 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44115] Improve conversions for fractions

2021-05-12 Thread Vedran Čačić
Vedran Čačić added the comment: Absolutely. I think that's a big part of the reason that as_integer_ratio is there. -- nosy: +veky ___ Python tracker ___

[issue26032] Use scandir() to speed up pathlib globbing

2021-05-12 Thread Barney Gale
Change by Barney Gale : -- nosy: +barneygale nosy_count: 8.0 -> 9.0 pull_requests: +24730 pull_request: https://github.com/python/cpython/pull/25701 ___ Python tracker ___

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

2021-05-12 Thread Barney Gale
Change by Barney Gale : -- pull_requests: +24729 pull_request: https://github.com/python/cpython/pull/26090 ___ Python tracker ___

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

2021-05-12 Thread Barney Gale
Change by Barney Gale : -- pull_requests: +24728 pull_request: https://github.com/python/cpython/pull/26089 ___ Python tracker ___

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

2021-05-12 Thread Barney Gale
Change by Barney Gale : -- pull_requests: +24727 pull_request: https://github.com/python/cpython/pull/26088 ___ Python tracker ___

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

2021-05-12 Thread Barney Gale
Change by Barney Gale : -- pull_requests: +24726 pull_request: https://github.com/python/cpython/pull/26087 ___ Python tracker ___

[issue15003] make PyNamespace_New() public

2021-05-12 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner resolution: -> rejected ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-05-12 Thread STINNER Victor
STINNER Victor added the comment: commit 6cd0446ef72c6676b292d7f54b1ddb8ae5e1fb8d Author: Victor Stinner Date: Wed May 12 23:59:25 2021 +0200 bpo-44113: Deprecate old functions to config Python init (GH-26060) Deprecate the following functions to configure the Python

[issue44030] Markup with_traceback code example

2021-05-12 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44030] Markup with_traceback code example

2021-05-12 Thread Irit Katriel
Irit Katriel added the comment: New changeset 6275ea02825731fd23f523058ac87aac53888740 by Miss Islington (bot) in branch '3.10': bpo-44030: Fix formatting error in exceptions docs (GH-25929) (GH-26086) https://github.com/python/cpython/commit/6275ea02825731fd23f523058ac87aac53888740

[issue44030] Markup with_traceback code example

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

[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-05-12 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +24724 pull_request: https://github.com/python/cpython/pull/26085 ___ Python tracker ___

[issue15003] make PyNamespace_New() public

2021-05-12 Thread Jouke Witteveen
Change by Jouke Witteveen : -- nosy: +joukewitteveen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33809] Expose `capture_locals` parameter in `traceback` convenience functions

2021-05-12 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 -Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-05-12 Thread STINNER Victor
STINNER Victor added the comment: """ Check warning on line 82 in Python/frozenmain.c GitHub Actions / Ubuntu ‘Py_SetProgramName’ is deprecated [-Wdeprecated-declarations] """ Well, Py_FrozenMain() should be rewritten with PyConfig, I want to do that for a long time, but I don't know how to

[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-05-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +24723 pull_request: https://github.com/python/cpython/pull/26084 ___ Python tracker ___

[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-05-12 Thread STINNER Victor
STINNER Victor added the comment: PyConfig API was added to Python 3.8, so it's now widely available. Python 3.8 always switched to security fixes only phase. So IMO it's ok to deprecate the old API now. -- ___ Python tracker

[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-05-12 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 nosy_count: 3.0 -> 4.0 pull_requests: +24722 pull_request: https://github.com/python/cpython/pull/26083 ___ Python tracker ___

[issue44118] cython compiler error

2021-05-12 Thread Marc Udoff
Marc Udoff added the comment: Wrong forum -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___

[issue44118] cython compiler error

2021-05-12 Thread Marc Udoff
New submission from Marc Udoff : Hi, The follow gives an unexpected error during compilation: In [1]: %%cython ...: #cython: infer_types=True ...: class A: ...: def f(self): ...: x = max(self.a, self.a) Removing max, or setting infer_types=False, or setting x =

[issue31753] Unnecessary closure in ast.literal_eval

2021-05-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

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

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

2021-05-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I'm marking this as a 3.10 release blocker untill all converted types that are in 3.10 have GC support. -- nosy: +pablogsal priority: normal -> release blocker ___ Python tracker

[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > I know that work with heap types have been halted by the SC, as you've > pointed out a couple of times already, but shouldn't this heap type issue be > fixed before 3.10 is released? It should absolutely be fixed for all types that have been

[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Pablo, as mentioned in bpo-42972, this is an issue with all heap allocated types; it is not _csv specific. I know that work with heap types have been halted by the SC, as you've pointed out a couple of times already, but shouldn't this heap type issue be

[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

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

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

2021-05-12 Thread Jonathan Schweder
Jonathan Schweder added the comment: @op368 I don't think that this is a bug, [1] literally uses this exact example and shows the expected behaviour. [1] https://datatracker.ietf.org/doc/html/rfc3986#section-5.4.2 -- nosy: +jaswdr ___ Python

[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset ba260acb22f3a6de434dc7a159ddb94a6a8c9b7c by Miss Islington (bot) in branch '3.10': bpo-44116: Add GC support to _csv heap types (GH-26074) (GH-26081) https://github.com/python/cpython/commit/ba260acb22f3a6de434dc7a159ddb94a6a8c9b7c

[issue40645] Use OpenSSL's HMAC API

2021-05-12 Thread miss-islington
miss-islington added the comment: New changeset 1ee58f252454072a1c9da77999db8e6417a307a0 by Miss Islington (bot) in branch '3.10': bpo-40645: Fix ref leaks in _hashopenssl (GH-26079) https://github.com/python/cpython/commit/1ee58f252454072a1c9da77999db8e6417a307a0 --

[issue40645] Use OpenSSL's HMAC API

2021-05-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +24721 pull_request: https://github.com/python/cpython/pull/26082 ___ Python tracker ___

[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +24720 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26081 ___ Python tracker

[issue41111] [C API] Convert a few stdlib extensions to the limited C API (PEP 384)

2021-05-12 Thread hai shi
hai shi added the comment: > The main limitation to use the limited C API for stdlib is Argument Clinic > which attempts to always emit the most efficient code, like using the > METH_FASTCALL calling convention and use private functions like > _PyArg_CheckPositional() or "static

[issue43813] Denial of service on http.server module with large request method.

2021-05-12 Thread Jonathan Schweder
Jonathan Schweder added the comment: @demonia you are more than welcome to send a PR, sent it and add a reference to this issue, so it could be reviewed. -- nosy: +jaswdr ___ Python tracker

[issue44104] http.cookies.CookieError: Illegal key

2021-05-12 Thread Jonathan Schweder
Jonathan Schweder added the comment: Simple example to reproduce the issue: from http import cookies C = cookies.SimpleCookie() C["ys-api/mpegts/service"] = "blabla" print(C.output()) @ra1nb0w so far as I have found [1][2], the "/" not a valid character for the Cookie name, [3] defines the

[issue41111] [C API] Convert a few stdlib extensions to the limited C API (PEP 384)

2021-05-12 Thread hai shi
Change by hai shi : -- pull_requests: +24719 pull_request: https://github.com/python/cpython/pull/26080 ___ Python tracker ___ ___

[issue40645] Use OpenSSL's HMAC API

2021-05-12 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland nosy_count: 6.0 -> 7.0 pull_requests: +24718 pull_request: https://github.com/python/cpython/pull/26079 ___ Python tracker

[issue25479] Increase unit test coverage for abc.py

2021-05-12 Thread Irit Katriel
Irit Katriel added the comment: Thank you! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38908] Troubles with @runtime_checkable protocols

2021-05-12 Thread miss-islington
miss-islington added the comment: New changeset 9b90ce68503f4861ce4e9ac9444d9a82b3d943a5 by Ken Jin in branch '3.9': [3.9] Revert "[3.9] bpo-38908: Fix issue when non runtime_protocol does not raise TypeError (GH-26067)" (GH-26077)

[issue38908] Troubles with @runtime_checkable protocols

2021-05-12 Thread Ken Jin
Ken Jin added the comment: Yurii and Kevin, thanks for pushing the patch forward! Thanks for the review too Guido. I'm closing this issue as all bugfix PRs have landed to bugfix branches. This will make its way into the next versions of Python for those respective branches. One point of

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

2021-05-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: Julien, we could remove them from docs.python.org instead of pointing to archive.org. Users will be able to find more recent examples in the internet. -- nosy: +orsenthil ___ Python tracker

[issue38908] Troubles with @runtime_checkable protocols

2021-05-12 Thread Ken Jin
Change by Ken Jin : -- pull_requests: +24717 pull_request: https://github.com/python/cpython/pull/26077 ___ Python tracker ___ ___

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

2021-05-12 Thread E. Paine
E. Paine added the comment: @Mark, would it be at all possible for you to host the tkinter part content from Effbot on your site (as you did with the Shipman docs for #37149)? The docs have been down since mid-November and there is no indication of when they'll come back up. Since tkinter

[issue31753] Unnecessary closure in ast.literal_eval

2021-05-12 Thread Thierry Excoffier
Thierry Excoffier added the comment: I assumed that the standard python library does not create circular references, so the GC can be disabled safely in real time application. Each time 'literal_eval' is called, it creates a circular reference and so a memory leak. The source of this leak

[issue38908] Troubles with @runtime_checkable protocols

2021-05-12 Thread miss-islington
miss-islington added the comment: New changeset 88136bbd0500b688c05e914be031cd3c243e42d8 by Ken Jin in branch '3.9': [3.9] bpo-38908: Fix issue when non runtime_protocol does not raise TypeError (GH-26067) (GH-26075)

[issue44032] Function locals and evaluation stack should be stored in a contiguous, per-thread stack

2021-05-12 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +24716 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26076 ___ Python tracker ___

[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Yeah, that helped a lot: test_csv leaked [487, 487, 487, 487] memory blocks, sum=1948 Thanks! :) -- ___ Python tracker ___

[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > Changes to _csv.Error should not be necessary, there everything is handled by > the superclass. Got it; thanks. -- ___ Python tracker

[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Petr Viktorin
Petr Viktorin added the comment: Changes to _csv.Error should not be necessary, there everything is handled by the superclass. -- stage: patch review -> ___ Python tracker

[issue38908] Troubles with @runtime_checkable protocols

2021-05-12 Thread miss-islington
miss-islington added the comment: New changeset a2d94a0a9b8ae95d7d2b7fc34b501da5242ec22c by Miss Islington (bot) in branch '3.10': bpo-38908: Fix issue when non runtime_protocol failed to raise TypeError (GH-26067)

[issue38908] Troubles with @runtime_checkable protocols

2021-05-12 Thread Ken Jin
Change by Ken Jin : -- nosy: +kj nosy_count: 5.0 -> 6.0 pull_requests: +24715 pull_request: https://github.com/python/cpython/pull/26075 ___ Python tracker ___

[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Also, for some reason two first iterations of the reproducer prints 2 less ref counts. -- ___ Python tracker ___

[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: I don't understand this. After applying PR-26074, test_csv now leaks memory/refs: $ ./python.exe -m test -R : test_csv 0:00:00 load avg: 1.18 Run tests sequentially 0:00:00 load avg: 1.18 [1/1] test_csv beginning 9 repetitions 123456789 . test_csv

[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +24714 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26074 ___ Python tracker ___

[issue38908] Troubles with @runtime_checkable protocols

2021-05-12 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +24713 pull_request: https://github.com/python/cpython/pull/26073 ___ Python tracker

[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Petr Viktorin
Petr Viktorin added the comment: The urllib.request one was caused by _hashlib, see GH-26072. -- stage: patch review -> ___ Python tracker ___

[issue40645] Use OpenSSL's HMAC API

2021-05-12 Thread Petr Viktorin
Change by Petr Viktorin : -- nosy: +petr.viktorin nosy_count: 5.0 -> 6.0 pull_requests: +24712 pull_request: https://github.com/python/cpython/pull/26072 ___ Python tracker

[issue44117] [C API] Remove deprecated PyEval_InitThreads()

2021-05-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +24711 pull_request: https://github.com/python/cpython/pull/26071 ___ Python tracker ___

[issue44117] [C API] Remove deprecated PyEval_InitThreads()

2021-05-12 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +24710 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26070 ___ Python tracker ___

[issue44117] [C API] Remove deprecated PyEval_InitThreads()

2021-05-12 Thread STINNER Victor
New submission from STINNER Victor : Remove PyEval_InitThreads() and PyEval_ThreadsInitialized() functions. The GIL is created by Py_Initialize() since Python 3.7, and so calling PyEval_InitThreads() explicitly was useless since Python 3.7. Deprecated in 3.9, PyEval_InitThreads() did nothing

[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Sure, I’ll do it after dinner :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Petr Viktorin
Petr Viktorin added the comment: *facepalm* Yes, that's it. If you have the time now, could you send he PR? -- ___ Python tracker ___

[issue39228] traceback.FrameSummary does not handle exceptions from `repr()`

2021-05-12 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43656] StackSummary.format fails if repr(value) fails

2021-05-12 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: I created a quick-and-dirty patch. I can clean it up and make it into a PR if you want. -- ___ Python tracker ___

[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Adding GC to _csv types: $ cat import sys import gc for i in range(10): import csv del sys.modules['_csv'] del sys.modules['csv'] del csv gc.collect() print(sys.gettotalrefcount()) $ ./python.exe bug.py 73164 73164 73166 73166

[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Erlend E. Aasland
Change by Erlend E. Aasland : Added file: https://bugs.python.org/file50038/gc.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue43656] StackSummary.format fails if repr(value) fails

2021-05-12 Thread Martin
Martin added the comment: Thanks for the explanations. I think this issue can be closed then. -- title: StackSummary.format fails if str(value) fails -> StackSummary.format fails if repr(value) fails ___ Python tracker

[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Could it be that the _csv heap types are not garbage collected? Ref. bpo-42972. -- nosy: +erlendaasland ___ Python tracker ___

[issue38908] Troubles with @runtime_checkable protocols

2021-05-12 Thread Yurii Karabas
Yurii Karabas <1998uri...@gmail.com> added the comment: Please forget my previous msg, this bug still present at 3.11 version. PR contains fix proposed by Kevin. Sorry for making to much noise. -- ___ Python tracker

[issue38908] Troubles with @runtime_checkable protocols

2021-05-12 Thread Yurii Karabas
Yurii Karabas <1998uri...@gmail.com> added the comment: I checked and this bug is not present at 3.11 version. So I simply added test to cover case mentioned by Ivan. -- ___ Python tracker

[issue25479] Increase unit test coverage for abc.py

2021-05-12 Thread Irit Katriel
Irit Katriel added the comment: New changeset bd5dfd6c8c133ccda4dddcba3a8c5a9ea1aa1d6b by Irit Katriel in branch '3.10': [3.10] bpo-25479: add unit test for __subclasshook__ in test_abc.py (GH-24034) (GH-26065)

[issue44089] csv.Error can't be subclassed

2021-05-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: This was also merged in 3.11 https://github.com/python/cpython/commit/2b458c1dba4058c808fde25226bb2d91c5a909ca -- ___ Python tracker ___

[issue44089] csv.Error can't be subclassed

2021-05-12 Thread Senthil Kumaran
Change by Senthil Kumaran : -- assignee: -> orsenthil resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44089] csv.Error can't be subclassed

2021-05-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset 3e44e9af9ea4c5e82912a01f256d4abcae96f32b by Miss Islington (bot) in branch '3.10': bpo-44089: Allow subclassing of ``csv.Error`` (GH-26008) (GH-26066) https://github.com/python/cpython/commit/3e44e9af9ea4c5e82912a01f256d4abcae96f32b

[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Petr Viktorin
Change by Petr Viktorin : -- keywords: +patch pull_requests: +24709 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26068 ___ Python tracker ___

[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Petr Viktorin
Petr Viktorin added the comment: Hm, a similar thing apparently happens with urllib.request. -- ___ Python tracker ___ ___

[issue38908] Troubles with @runtime_checkable protocols

2021-05-12 Thread Yurii Karabas
Yurii Karabas <1998uri...@gmail.com> added the comment: Hi Guido, I decided to help with this issue as far as Kevin did not respond. -- ___ Python tracker ___

[issue38908] Troubles with @runtime_checkable protocols

2021-05-12 Thread Yurii Karabas
Change by Yurii Karabas <1998uri...@gmail.com>: -- keywords: +patch nosy: +uriyyo nosy_count: 3.0 -> 4.0 pull_requests: +24708 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26067 ___ Python tracker

[issue44089] csv.Error can't be subclassed

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

[issue25479] Increase unit test coverage for abc.py

2021-05-12 Thread Irit Katriel
Irit Katriel added the comment: New changeset 1be93960612b29686d42c021f842e63e5143a625 by Miss Islington (bot) in branch '3.9': bpo-25479: add unit test for __subclasshook__ in test_abc.py (GH-24034) (GH-26063)

[issue44070] __file__ is now fully qualified in 3.8 and 3.9

2021-05-12 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

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

2021-05-12 Thread Petr Viktorin
Petr Viktorin added the comment: I opened https://bugs.python.org/issue44116 for the leak when trying to unload _csv. Looks like investigating that will take a while, so I'll send a small PR to unblock the buildbots. -- ___ Python tracker

[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Petr Viktorin
New submission from Petr Viktorin : After `_csv.register_dialect` is called, the csv module is alive even after it's removed from sys.modules. It should be garbage-collected. (It's not that big a deal: unloading _csv isn't something users should do. But it might be hiding a deeper issue.)

[issue25479] Increase unit test coverage for abc.py

2021-05-12 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +24706 pull_request: https://github.com/python/cpython/pull/26065 ___ Python tracker ___

[issue44115] Improve conversions for fractions

2021-05-12 Thread Martin Teichmann
Change by Martin Teichmann : -- keywords: +patch pull_requests: +24705 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26064 ___ Python tracker

[issue44115] Improve conversions for fractions

2021-05-12 Thread Martin Teichmann
New submission from Martin Teichmann : Currently, fraction.Fractions can be generated from floats via their as_integer_ratio method. This had been extended to also work with the Decimals class. It would be more generic - and IMHO more Pythonic - to just allow any data type, as long as it has

[issue25479] Increase unit test coverage for abc.py

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

[issue25479] Increase unit test coverage for abc.py

2021-05-12 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44114] Incorrect function signatures in dictobject.c

2021-05-12 Thread Joe Marshall
Change by Joe Marshall : -- keywords: +patch pull_requests: +24703 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26062 ___ Python tracker ___

[issue44114] Incorrect function signatures in dictobject.c

2021-05-12 Thread Joe Marshall
New submission from Joe Marshall : There's a couple of wrong function signatures in dictobject.c, dictkeys_reversed and dictitems_reversed are defined as single arg functions like so: PyObject *(PyObject *), and are then passed around and called as PyCFunctions, which should be PyObject

[issue37334] Add a cancel method to asyncio Queues

2021-05-12 Thread Martin Teichmann
Martin Teichmann added the comment: This is a years old issue, unfortunately it never got neither merged nor rejected. I just rebased it and hope somebody could finish the review. -- versions: +Python 3.11 -Python 3.8 ___ Python tracker

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

2021-05-12 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +24702 pull_request: https://github.com/python/cpython/pull/26061 ___ Python tracker ___

  1   2   >