[issue44088] traced line number can be None

2021-05-12 Thread Mark Shannon
Mark Shannon added the comment: Duplicate of https://bugs.python.org/issue43933 -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker ___

[issue28528] Pdb.checkline() attribute error when 'curframe' is None

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

[issue28528] Pdb.checkline() attribute error when 'curframe' is None

2021-05-12 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Yes, test.os_helper was introduced in 3.10. I've manually cherry-picked 8563a7052ccd98e6a381d361664ce567afd5eb6e to 3.9 (GH-26053). -- ___ Python tracker ___

[issue28528] Pdb.checkline() attribute error when 'curframe' is None

2021-05-12 Thread miss-islington
miss-islington added the comment: New changeset 6c190b5ae5887d592bc8915148440a63da8b7cdd by Erlend Egeberg Aasland in branch '3.9': [3.9] bpo-28528: Fix pdb.checkline() attribute error when 'curframe' is None (GH-25438) (GH-26053) https://github.com/python/cpython/commit/6c190b5ae5887d592bc8

[issue41620] Python Unittest does not return results object when the test is skipped

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

[issue41620] Python Unittest does not return results object when the test is skipped

2021-05-12 Thread Irit Katriel
Irit Katriel added the comment: Actually I take it back - this looks like a bug. The code updates the result object with skip info but then doesn't return it. But the patch needs a unit test covering this. -- keywords: +easy ___ Python tracker

[issue28528] Pdb.checkline() attribute error when 'curframe' is None

2021-05-12 Thread Irit Katriel
Irit Katriel added the comment: Thank you Erlend! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ 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: +24694 pull_request: https://github.com/python/cpython/pull/26054 ___ Python tracker ___

[issue44112] [buildbot] test_asyncio hangs after 3 hours on Refleak buildbots

2021-05-12 Thread STINNER Victor
New submission from STINNER Victor : Buildbot kills the "test" step because it takes longer than 3 hours, whereas Python regrtest gets a timeout of 3 hour 15 min. Refleak buildbots should get a longer timeout for the "test" step. PPC64LE Fedora Rawhide Refleaks 3.10: https://buildbot.python.or

[issue44112] [buildbot] test_asyncio hangs after 3 hours on Refleak buildbots

2021-05-12 Thread STINNER Victor
STINNER Victor added the comment: It seems to be a real bug in test_asyncio, since in other builds on the same buildbot worker, test_asyncio takes less than 30 minutes: - build 8: test_asyncio: 27 min 48 sec - build 5: test_asyncio: 21 min 44 sec - build 2: test_asyncio: 20 min 42 sec --

[issue40640] Tutorial for Continue missing ... line

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

[issue44112] [buildbot] test_asyncio hangs after 3 hours on Refleak buildbots

2021-05-12 Thread STINNER Victor
STINNER Victor added the comment: I bet that the hang is a duplicate of the old bpo-38323 "asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)" that I reported 2 years ago and is not fixed yet. -- __

[issue44112] [buildbot] test_asyncio hangs (killed after 3 hours) on Refleak buildbots

2021-05-12 Thread STINNER Victor
Change by STINNER Victor : -- title: [buildbot] test_asyncio hangs after 3 hours on Refleak buildbots -> [buildbot] test_asyncio hangs (killed after 3 hours) on Refleak buildbots ___ Python tracker _

[issue44061] Regression in pkgutil: iter_modules stopped taking Path argument in python 3.8.10 and 3.9.5

2021-05-12 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 0cb9775a85a051556461ea9c3089244601b7d4f8 by Steve Dower in branch '3.9': bpo-44061: Fix pkgutil.iter_modules regression when passed a pathlib.Path object (GH-25964) (GH-26052) https://github.com/python/cpython/commit/0cb9775a85a051556461ea9c308924

[issue44061] Regression in pkgutil: iter_modules stopped taking Path argument in python 3.8.10 and 3.9.5

2021-05-12 Thread Łukasz Langa
Change by Łukasz Langa : -- pull_requests: +24696 pull_request: https://github.com/python/cpython/pull/26056 ___ Python tracker ___ _

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

2021-05-12 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 378211f7789c4edf7385ff619fa74d6615bef242 by Steve Dower in branch '3.8': bpo-44070: No longer eagerly makes import filenames absolute, except for extension modules (GH-26025) (#26028) https://github.com/python/cpython/commit/378211f7789c4edf7385ff

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

2021-05-12 Thread Petr Viktorin
Petr Viktorin added the comment: Thanks for the note! This is due to `csv`. Adding a script in Tools/scripts that imports csv will also make the refleak check fail. I'll investigate further. -- ___ Python tracker

[issue37555] _CallList.__contains__ doesn't always respect ANY.

2021-05-12 Thread Irit Katriel
Irit Katriel added the comment: 3.8 is in security fix mode now, so I think this issue can be closed. -- resolution: -> fixed status: open -> pending ___ Python tracker ___ _

[issue44061] Regression in pkgutil: iter_modules stopped taking Path argument in python 3.8.10 and 3.9.5

2021-05-12 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 4844abdd700120120fc76c29d911bcb547700baf by Łukasz Langa in branch '3.8': [3.8] bpo-44061: Fix pkgutil.iter_modules regression when passed a pathlib.Path object (GH-25964). (GH-26056) https://github.com/python/cpython/commit/4844abdd700120120fc76c

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

2021-05-12 Thread STINNER Victor
New submission from STINNER Victor : The https://docs.python.org/dev/c-api/init.html documentation lists many functions which is the legacy way to configure the Python initialization. These functions are kept for backward compatibility but have flaws and are less reliable than the new PyConfi

[issue40640] Tutorial for Continue missing ... line

2021-05-12 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +24697 pull_request: https://github.com/python/cpython/pull/26057 ___ Python tracker _

[issue40640] Tutorial for Continue missing ... line

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

[issue40222] "Zero cost" exception handling

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

[issue40640] Tutorial for Continue missing ... line

2021-05-12 Thread Irit Katriel
Irit Katriel added the comment: New changeset 48cb11bf5b426bd3f1d010f987c03115661261b7 by Miss Islington (bot) in branch '3.10': bpo-40640: doc -- add missing ... in example of Continue (GH-26055) (GH-26057) https://github.com/python/cpython/commit/48cb11bf5b426bd3f1d010f987c03115661261b7 -

[issue44111] 404 link on python webpage

2021-05-12 Thread Christian Heimes
Christian Heimes added the comment: I cannot reproduce the issue either. 0lsimonsen, in case you are still having trouble, please open a bug at https://github.com/python/pythondotorg/ and attach screen shots. This bug tracker is for CPython issues. python.org website is handled by a differen

[issue40640] Tutorial for Continue missing ... line

2021-05-12 Thread Irit Katriel
Irit Katriel added the comment: New changeset ada9cdb94158a101db65af17b62cdd2ae6c3e782 by Miss Islington (bot) in branch '3.9': bpo-40640: doc -- add missing ... in example of Continue (GH-26055) (GH-26058) https://github.com/python/cpython/commit/ada9cdb94158a101db65af17b62cdd2ae6c3e782 --

[issue40640] Tutorial for Continue missing ... line

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

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

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

[issue43956] C-API: Incorrect default value for Py_SetProgramName

2021-05-12 Thread STINNER Victor
STINNER Victor added the comment: I created bpo-44113: "[C API] Deprecate legacy API for configure Python initialization". -- nosy: +vstinner ___ Python tracker ___ _

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

2021-05-12 Thread Jouke Witteveen
Change by Jouke Witteveen : -- nosy: +joukewitteveen nosy_count: 2.0 -> 3.0 pull_requests: +24701 pull_request: https://github.com/python/cpython/pull/24876 ___ 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 ___

[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

[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 *(PyO

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

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

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

[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

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

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

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

[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

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

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

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

[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

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

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

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

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

[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: This was also merged in 3.11 https://github.com/python/cpython/commit/2b458c1dba4058c808fde25226bb2d91c5a909ca -- ___ 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) https://github.com/python/cpython/commit/bd5dfd6c8c133ccda4dddcba3a8c5a9ea1aa1d6b

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

[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

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

[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
Change by Erlend E. Aasland : Added file: https://bugs.python.org/file50038/gc.diff ___ 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 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 7316

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

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

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

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

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

[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

[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
Change by STINNER Victor : -- pull_requests: +24711 pull_request: https://github.com/python/cpython/pull/26071 ___ 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 ___

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

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

[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
Erlend E. Aasland added the comment: Also, for some reason two first iterations of the reproducer prints 2 less ref counts. -- ___ Python tracker ___

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[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

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

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

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

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

[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

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

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

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

[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

  1   2   >