[issue44814] python 3.9.6 installation installs 0 modules

2021-08-02 Thread nyizel
New submission from nyizel : https://nizel.is-inside.me/NEi7A4aM.png -- messages: 398793 nosy: trambell priority: normal severity: normal status: open title: python 3.9.6 installation installs 0 modules type: behavior versions: Python 3.9 ___ Python

[issue44815] asyncio.gather no DeprecationWarning if task are passed

2021-08-02 Thread Sam Bull
New submission from Sam Bull : When calling asyncio.gather() a DeprecationWarning is only emitted if no tasks are passed (which is probably the exceptional case, rather than the standard one). This has resulted in us missing this deprecated argument in aiohttp until we received a bug report

[issue44782] LRU class given as example in OrderedDict docs not work on pop

2021-08-02 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44815] asyncio.gather no DeprecationWarning if task are passed

2021-08-02 Thread Sam Bull
Change by Sam Bull : -- keywords: +patch pull_requests: +26075 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27568 ___ Python tracker ___ ___

[issue44782] LRU class given as example in OrderedDict docs not work on pop

2021-08-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset c50a672eebb16cf778d9a3b22b72d506c3f54ced by Miss Islington (bot) in branch '3.9': bpo-44782: Improve OrderedDict recipe for LRU cache variants (GH-27536) (GH-27567) https://github.com/python/cpython/commit/c50a672eebb16cf778d9a3b22b72d506c3f

[issue44782] LRU class given as example in OrderedDict docs not work on pop

2021-08-02 Thread miss-islington
miss-islington added the comment: New changeset c6e7c9860d5ac968c7a1073fdbfbd44e0e87f582 by Miss Islington (bot) in branch '3.10': bpo-44782: Improve OrderedDict recipe for LRU cache variants (GH-27536) https://github.com/python/cpython/commit/c6e7c9860d5ac968c7a1073fdbfbd44e0e87f582 --

[issue44815] asyncio.gather no DeprecationWarning if task are passed

2021-08-02 Thread Sam Bull
Sam Bull added the comment: There is another issue with asyncio.sleep() too, if the passed argument is 0. This also tripped up the tests in aiohttp (though I've also used an explicit 0 in production code to yield back to the loop). -- ___ Python t

[issue44808] test_inspect fails in refleak mode

2021-08-02 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- priority: release blocker -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue44814] python 3.9.6 installation installs 0 modules

2021-08-02 Thread Zachary Ware
Zachary Ware added the comment: Posting just an image link makes this look like spam. Please copy and paste text showing your problem into a message instead. -- nosy: +zach.ware ___ Python tracker _

[issue44792] Improve syntax errors for invalid if expressions

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

[issue44792] Improve syntax errors for invalid if expressions

2021-08-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 567176249ea95c074eb80199aaf19f3a55aa3954 by Miss Islington (bot) in branch '3.10': bpo-44792: Improve syntax errors for if expressions (GH-27506) (GH-27565) https://github.com/python/cpython/commit/567176249ea95c074eb80199aaf19f3a55aa3954

[issue44814] python 3.9.6 installation installs 0 modules

2021-08-02 Thread Dennis Sweeney
Dennis Sweeney added the comment: Are you still able to `import heapq` or `import sys`? `requests` and `filetype` are not part of the Python standard library, and must be installed separately. You can check out the tutorial here: https://packaging.python.org/tutorials/installing-packages/ -

[issue42698] Deadlock in pysqlite_connection_dealloc()

2021-08-02 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Thanks! I had to comment out the reg_func() call (it is not defined in test.py, and I don't know what it's supposed to do), and change "with lock.shared_context():" to "with lock:", but I'm unable get a deadlock. I've tried with Python 3.8 though 3.11 (d

[issue42698] Deadlock in pysqlite_connection_dealloc()

2021-08-02 Thread hydroflask
hydroflask added the comment: You did the right thing in terms of editing the code. I was not able to get a deadlock with this code which I think should be representative of the error. In production the error was happening after 30 minutes of so. The major problem is that I don't exactly kn

[issue42698] Deadlock in pysqlite_connection_dealloc()

2021-08-02 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > In production the error was happening after 30 minutes of so. Great, thanks. > The major problem is that I don't exactly know how to provoke SQLite to > acquire an internal lock. IIRC, you can provoke the internal SQLite lock simply by using transaction

[issue42698] Deadlock in pysqlite_connection_dealloc()

2021-08-02 Thread hydroflask
hydroflask added the comment: >> The major problem is that I don't exactly know how to provoke SQLite to >> acquire an internal lock. > IIRC, you can provoke the internal SQLite lock simply by using transaction > control: BEGIN (lock) => COMMIT / ROLLBACK (unlock). Ah okay, so the sequence w

[issue43498] "dictionary changed size during iteration" error in _ExecutorManagerThread

2021-08-02 Thread Thomas Petazzoni
Thomas Petazzoni added the comment: I can confirm we are seeing the same issue when building Python 3.9 in the context of Buildroot. See http://autobuild.buildroot.net/results/ae6/ae6c4ab292589a4e4442dfb0a1286349a9bf4d29/build-end.log for an example build result. This happens since we have a

[issue43498] "dictionary changed size during iteration" error in _ExecutorManagerThread

2021-08-02 Thread Thomas Petazzoni
Thomas Petazzoni added the comment: For the record: we're seeing this issue ~50 times a day on our build infrastructure. -- ___ Python tracker ___ ___

[issue44815] asyncio.gather no DeprecationWarning if task are passed

2021-08-02 Thread Sam Bull
Change by Sam Bull : -- pull_requests: +26076 pull_request: https://github.com/python/cpython/pull/27569 ___ Python tracker ___ ___

[issue34782] Pdb raises exception when code is executed in a mapping that does not define `__contains__`

2021-08-02 Thread Irit Katriel
Change by Irit Katriel : -- title: Pdb crashes when code is executed in a mapping that does not define `__contains__` -> Pdb raises exception when code is executed in a mapping that does not define `__contains__` versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7, Python 3.8

[issue34782] Pdb raises exception when code is executed in a mapping that does not define `__contains__`

2021-08-02 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +iritkatriel nosy_count: 4.0 -> 5.0 pull_requests: +26077 pull_request: https://github.com/python/cpython/pull/27570 ___ Python tracker ___ __

[issue2824] zipfile to handle duplicate files in archive

2021-08-02 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.6, Python 2.7, Python 3.2 ___ Python tracker ___ _

[issue16580] [doc] Add examples to int.to_bytes and int.from_bytes

2021-08-02 Thread Irit Katriel
Change by Irit Katriel : -- title: Add examples to int.to_bytes and int.from_bytes -> [doc] Add examples to int.to_bytes and int.from_bytes versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python t

[issue33008] urllib.request.parse_http_list incorrectly strips backslashes

2021-08-02 Thread Irit Katriel
Change by Irit Katriel : -- type: -> behavior versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker _

[issue33003] [doc] urllib: Document parse_http_list

2021-08-02 Thread Irit Katriel
Change by Irit Katriel : -- title: urllib: Document parse_http_list -> [doc] urllib: Document parse_http_list versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker

[issue18255] CPython setup.py problems

2021-08-02 Thread Irit Katriel
Irit Katriel added the comment: Is this still relevant now that distutils is deprecated? -- nosy: +iritkatriel ___ Python tracker ___ _

[issue22039] PyObject_SetAttr doesn't mention value = NULL

2021-08-02 Thread Irit Katriel
Irit Katriel added the comment: This behaviour is documented as deprecated all the way back to 2.7. Should we repurpose the issue to removing it? Otherwise it can be closed. https://docs.python.org/2.7/c-api/object.html#c.PyObject_SetAttr -- nosy: +iritkatriel resolution: -> duplica

[issue28973] [doc] The fact that multiprocess.Queue uses serialization should be documented.

2021-08-02 Thread Irit Katriel
Irit Katriel added the comment: There is a note mentioning pickle in this section: https://docs.python.org/3/library/multiprocessing.html#pipes-and-queues It starts with "When an object is put on a queue, the object is pickled and..." A comment about the object ids can be added there. -

[issue44816] Folded constants do not trace correctly.

2021-08-02 Thread Brandt Bucher
New submission from Brandt Bucher : PEP 626 says that "all expressions and parts of expressions are considered to be executable code" for the purposes of tracing. However, folding constants at compile-time can lose or change tracing events. For example, these expressions (which can't be folde

[issue43498] "dictionary changed size during iteration" error in _ExecutorManagerThread

2021-08-02 Thread Dennis Sweeney
Dennis Sweeney added the comment: It was mentioned in bpo-40327 that although copy() makes the situation much better, it doesn't solve the problem entirely, since the memory allocation of the copy() call can release the GIL. I don't know enough to know whether it would be worth it to add loc

[issue44808] test_inspect fails in refleak mode

2021-08-02 Thread Andrei Kulakov
Change by Andrei Kulakov : -- pull_requests: +26078 pull_request: https://github.com/python/cpython/pull/27571 ___ Python tracker ___ __

[issue44808] test_inspect fails in refleak mode

2021-08-02 Thread Andrei Kulakov
Andrei Kulakov added the comment: Please disregard my last comment, I think I found a good way to fix it, the PR is up here: https://github.com/python/cpython/pull/27571/files -- ___ Python tracker

[issue39091] _PyErr_CreateException() must check that the result is an exception (CPython Segfault in 5 lines of code)

2021-08-02 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +26079 pull_request: https://github.com/python/cpython/pull/27572 ___ Python tracker _

[issue39091] _PyErr_CreateException() must check that the result is an exception (CPython Segfault in 5 lines of code)

2021-08-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +26080 pull_request: https://github.com/python/cpython/pull/27573 ___ Python tracker ___ __

[issue39091] _PyErr_CreateException() must check that the result is an exception (CPython Segfault in 5 lines of code)

2021-08-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 83ca46b7784b7357d82ec47b33295e09ed7380cb by Noah in branch 'main': closes bpo-39091: Fix segfault when Exception constructor returns non-exception for gen.throw. (#17658) https://github.com/python/cpython/commit/83ca46b7784b7357d82ec47b33295e

[issue44817] os.path.realpath fails with WinError 161

2021-08-02 Thread Michael Förderer
New submission from Michael Förderer : Using os.path.realpath(...) in the MVFS of Clearcase SCM (virtual file system) in Windows 10 a exception occures: X:\my_view\tools\python\3_8>python.exe Python 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:57:54) [MSC v.1924 64 bit (AMD64)] on win32 Type "h

[issue44817] os.path.realpath fails with WinError 161

2021-08-02 Thread Michael Förderer
Change by Michael Förderer : -- keywords: +patch pull_requests: +26081 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27574 ___ Python tracker ___

<    1   2