[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-11-17 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +22251 pull_request: https://github.com/python/cpython/pull/23358 ___ Python tracker ___

[issue42366] Use MSVC2019 and /Ob3 option to compile Windows builds

2020-11-17 Thread Christian Heimes
Christian Heimes added the comment: Thank you for your thorough testing. It's useful to know that the option does not speed up PGO builds of Python. -- ___ Python tracker

[issue42366] Use MSVC2019 and /Ob3 option to compile Windows builds

2020-11-17 Thread Ma Lin
Ma Lin added the comment: Last benchmark was wrong, \Ob3 option was not enabled. Apply `pgo_ob3.diff`, it slows, so I close this issue. +-++--+ | Benchmark | py39_pgo_a | py39_pgo_b |

[issue42094] isoformat() / fromisoformat() for datetime.timedelta

2020-11-17 Thread Erik Cederstrand
Erik Cederstrand added the comment: There are two conflicting interests: ISO 8601 that allows non-precise durations, and timedelta that assumes precise durations. For me, the non-precise durations only make sense in date arithmetic - to a human, it's pretty clear what adding 3 months or a

[issue2190] MozillaCookieJar ignores HttpOnly cookies

2020-11-17 Thread Senthil Kumaran
Senthil Kumaran added the comment: Yes. The required 'feature' was introduced through https://github.com/python/cpython/pull/17471/ even as the patches were slightly different. But keeping https://github.com/python/cpython/pull/17471/ seems fine and we can close this ticket and the PR.

[issue2190] MozillaCookieJar ignores HttpOnly cookies

2020-11-17 Thread Daniel Lenski
Daniel Lenski added the comment: This can be closed. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41625] Add splice() to the os module

2020-11-17 Thread STINNER Victor
STINNER Victor added the comment: FYI I checked and AIX is fixed. All tests pass again on POWER6 AIX 3.x buildbot. -- ___ Python tracker ___

[issue42392] remove the 'loop' parameter from __init__ in all classes in asyncio.locks

2020-11-17 Thread Yury Selivanov
Yury Selivanov added the comment: > That's good to know and I think more convenient to work with, so +1 from me. > I guess my remaining question though is whether it's okay to `await > lock.acquire()` on a single lock instance from multiple different running > event loops (presumably each

[issue42202] Optimize function annotation

2020-11-17 Thread Inada Naoki
Inada Naoki added the comment: I don't like co_annotations. * It changes PyCode_NewXXX() API. * Many functions don't have annotations. Adding annotation to code object makes code object fatter even if the function doesn't have annotation. * Code object is immutable & hashable. Adding

[issue17854] symmetric difference operation applicable to more than two sets

2020-11-17 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> rejected stage: patch review -> resolved status: pending -> closed ___ Python tracker ___

[issue40656] Clean up detect_socket() in setup.py

2020-11-17 Thread Ned Deily
Ned Deily added the comment: Thanks again for the PR. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40656] Clean up detect_socket() in setup.py

2020-11-17 Thread Ned Deily
Ned Deily added the comment: New changeset ccdcb20cbeb1943f506a422c3fd942651389a187 by Erlend Egeberg Aasland in branch 'master': bpo-40656: Clean up detect_socket() (GH-20148) https://github.com/python/cpython/commit/ccdcb20cbeb1943f506a422c3fd942651389a187 -- nosy: +ned.deily

[issue42392] remove the 'loop' parameter from __init__ in all classes in asyncio.locks

2020-11-17 Thread Kyle Stanley
Kyle Stanley added the comment: > Oh my. FWIW I think that we need to implement this differently. I don't > think it matters where, say, an asyncio.Lock was instantiated. It can be > created anywhere. So IMO its __init__ shouldn't try to capture the current > loop -- there's no need for

[issue40656] Clean up detect_socket() in setup.py

2020-11-17 Thread Ned Deily
Change by Ned Deily : -- versions: +Python 3.10 -Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42392] remove the 'loop' parameter from __init__ in all classes in asyncio.locks

2020-11-17 Thread Yury Selivanov
Yury Selivanov added the comment: Oh my. FWIW I think that we need to implement this differently. I don't think it matters where, say, an asyncio.Lock was instantiated. It can be created anywhere. So IMO its __init__ shouldn't try to capture the current loop -- there's no need for that.

[issue42392] remove the 'loop' parameter from __init__ in all classes in asyncio.locks

2020-11-17 Thread Kyle Stanley
Kyle Stanley added the comment: Sure, I would be interested in helping with this. Although if a newer contributor takes it up before I'm able to, I wouldn't be opposed to that either (my main priority at the moment is helping with PEP 594 since it's a concrete goal of my internship w/ the

[issue42395] aclosing was not added to __all__ in contextlib

2020-11-17 Thread miss-islington
miss-islington added the comment: New changeset d0d4a450679bfc90eae7be4fdb5499e87f661b3e by Tom Gringauz in branch 'master': bpo-42395: Add aclosing to __all__ (GH-23356) https://github.com/python/cpython/commit/d0d4a450679bfc90eae7be4fdb5499e87f661b3e -- nosy: +miss-islington

[issue42396] Add a whatsnew entry about async contextlib.nullcontext

2020-11-17 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10 ___ Python tracker ___

[issue42396] Add a whatsnew entry about async contextlib.nullcontext

2020-11-17 Thread miss-islington
New submission from miss-islington : New changeset 9c98e8cc3ebf56d01183c67adbc000ed19b8e0f4 by Tom Gringauz in branch 'master': bpo-42396: Add a whatsnew entry about async contextlib.nullcontext (GH-23357) https://github.com/python/cpython/commit/9c98e8cc3ebf56d01183c67adbc000ed19b8e0f4

[issue42332] add __weakref__ to types.GenericAlias

2020-11-17 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42332] add __weakref__ to types.GenericAlias

2020-11-17 Thread miss-islington
miss-islington added the comment: New changeset 71ba5f52d2a80e7beffc923c54c0b6345cd0637a by kj in branch '3.9': [3.9] bpo-42332: Add weakref slot to types.GenericAlias (GH-23250) (GH-23309) https://github.com/python/cpython/commit/71ba5f52d2a80e7beffc923c54c0b6345cd0637a --

[issue42396] Add a whatsnew entry about async contextlib.nullcontext

2020-11-17 Thread Tom Gringauz
Change by Tom Gringauz : -- keywords: +patch pull_requests: +22250 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23357 ___ Python tracker ___

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-11-17 Thread STINNER Victor
STINNER Victor added the comment: > For the signal module, see bpo-41713. Done: the _signal module uses again the multi-phase init API. -- ___ Python tracker ___

[issue41713] _signal module leak: test_interpreters leaked [1424, 1422, 1424] references

2020-11-17 Thread STINNER Victor
STINNER Victor added the comment: Done! _signal uses again the multi-phase init API. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue41713] _signal module leak: test_interpreters leaked [1424, 1422, 1424] references

2020-11-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7f9b25a21ab95f8cf8d663396993766307be475c by Victor Stinner in branch 'master': bpo-41713: Port _signal module to multi-phase init (GH-23355) https://github.com/python/cpython/commit/7f9b25a21ab95f8cf8d663396993766307be475c --

[issue42395] aclosing was not added to __all__ in contextlib

2020-11-17 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42396] Add a whatsnew entry about async contextlib.nullcontext

2020-11-17 Thread Tom Gringauz
Change by Tom Gringauz : -- nosy: tomgrin10 priority: normal severity: normal status: open title: Add a whatsnew entry about async contextlib.nullcontext ___ Python tracker

[issue42395] aclosing was not added to __all__ in contextlib

2020-11-17 Thread Tom Gringauz
Change by Tom Gringauz : -- keywords: +patch pull_requests: +22249 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23356 ___ Python tracker ___

[issue17887] docs: summary page - generator vs iterator vs iterable

2020-11-17 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.3, Python 3.4 ___ Python tracker ___

[issue42395] aclosing was not added to __all__ in contextlib

2020-11-17 Thread Tom Gringauz
New submission from Tom Gringauz : Related to this PR https://github.com/python/cpython/pull/21545 -- components: Library (Lib) messages: 381296 nosy: tomgrin10 priority: normal severity: normal status: open title: aclosing was not added to __all__ in contextlib

[issue41625] Add splice() to the os module

2020-11-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1de61d3923840b29e847d311f0c7d4c5821d98e6 by Victor Stinner in branch 'master': bpo-41625: Skip os.splice() tests on AIX (GH-23354) https://github.com/python/cpython/commit/1de61d3923840b29e847d311f0c7d4c5821d98e6 --

[issue41713] _signal module leak: test_interpreters leaked [1424, 1422, 1424] references

2020-11-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22248 pull_request: https://github.com/python/cpython/pull/23355 ___ Python tracker ___

[issue41686] C++ Embedded 'time.sleep()' is not working on Windows host due to 'Py_InitializeEx(0)'

2020-11-17 Thread STINNER Victor
STINNER Victor added the comment: > bpo-41686: Move _Py_RestoreSignals() to signalmodule.c (GH-23353) Sorry, this change was for bpo-41713. -- ___ Python tracker ___

[issue41713] _signal module leak: test_interpreters leaked [1424, 1422, 1424] references

2020-11-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 29aa624047f893b3b3194f00252b2156bbbf4f9b by Victor Stinner in branch 'master': bpo-41686: Move _Py_RestoreSignals() to signalmodule.c (GH-23353) https://github.com/python/cpython/commit/29aa624047f893b3b3194f00252b2156bbbf4f9b --

[issue41686] C++ Embedded 'time.sleep()' is not working on Windows host due to 'Py_InitializeEx(0)'

2020-11-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 29aa624047f893b3b3194f00252b2156bbbf4f9b by Victor Stinner in branch 'master': bpo-41686: Move _Py_RestoreSignals() to signalmodule.c (GH-23353) https://github.com/python/cpython/commit/29aa624047f893b3b3194f00252b2156bbbf4f9b --

[issue42394] Exception handling on boolean comparisons

2020-11-17 Thread Steven D'Aprano
Steven D'Aprano added the comment: This is not a bug, it is normal handling of `and` and `or` operators since Python 1.5 and possibly older. The `and` and `or` operators are *short-cut* operators. This is intentional design, so we can write things like: if mylist and mylist[0] ==

[issue41625] Add splice() to the os module

2020-11-17 Thread STINNER Victor
STINNER Victor added the comment: Nice, AIX can build again Python. But now the 3 tests fail since the test uses a pipe and a file, whereas on AIX, it seems like splice() requires one end to be a socket. I wrote attached PR 23354 to skip the 3 tests on AIX.

[issue41625] Add splice() to the os module

2020-11-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22247 pull_request: https://github.com/python/cpython/pull/23354 ___ Python tracker ___

[issue42394] Exception handling on boolean comparisons

2020-11-17 Thread Christopher Contaxis
New submission from Christopher Contaxis : Python 3.8.6 will not produce an exception when comparing values in an and/or statement that normally produces an exception standalone. val = 0 low = 1 high = "2" The following makes sense: val >= low : False val <= high : Exception, cant compare

[issue12545] os.lseek() and FileIO.seek() does not support offset larger than 2^63-1

2020-11-17 Thread Charles-François Natali
Change by Charles-François Natali : -- nosy: -neologix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41686] C++ Embedded 'time.sleep()' is not working on Windows host due to 'Py_InitializeEx(0)'

2020-11-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22246 pull_request: https://github.com/python/cpython/pull/23353 ___ Python tracker ___

[issue41686] C++ Embedded 'time.sleep()' is not working on Windows host due to 'Py_InitializeEx(0)'

2020-11-17 Thread STINNER Victor
STINNER Victor added the comment: Ok, the issue should now be fixed in 3.8, 3.9 and master branches. Thanks for the bug report hafiz bilal. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue41686] C++ Embedded 'time.sleep()' is not working on Windows host due to 'Py_InitializeEx(0)'

2020-11-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset a702bd4b921167e73f8fc987aa64ada571fdc3f8 by Victor Stinner in branch '3.8': bpo-41686: Always create the SIGINT event on Windows (GH-23344) (GH-23347) (GH-23349) https://github.com/python/cpython/commit/a702bd4b921167e73f8fc987aa64ada571fdc3f8

[issue41713] _signal module leak: test_interpreters leaked [1424, 1422, 1424] references

2020-11-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset a702bd4b921167e73f8fc987aa64ada571fdc3f8 by Victor Stinner in branch '3.8': bpo-41686: Always create the SIGINT event on Windows (GH-23344) (GH-23347) (GH-23349) https://github.com/python/cpython/commit/a702bd4b921167e73f8fc987aa64ada571fdc3f8

[issue37733] Fail to build _curses module of Python 3.7.4 on AIX 7.1 using gcc

2020-11-17 Thread Kevin
Kevin added the comment: Both 3.6 and 3.7 are in security only mode so at this point, so if the issue is fixed in newer versions I think this issue could be closed. -- nosy: +kadler ___ Python tracker

[issue37009] Threading and THREAD_SAFE for AIX

2020-11-17 Thread Kevin
Change by Kevin : -- nosy: +kadler ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42393] Raise overflow errors iso. deprecation warnings in socket.htons and socket.ntohs (was deprecated in 3.7)

2020-11-17 Thread Erlend Egeberg Aasland
New submission from Erlend Egeberg Aasland : Silent truncation was deprecated in Python 3.7 in bpo-28332 with commit 6a7d3480fc8fe4c60538547d2935083ccff0f631 by Serhiy Storchaka. It should be ok to turn these into OverflowError's starting with Python 3.10. -- components: Library

[issue42393] Raise overflow errors iso. deprecation warnings in socket.htons and socket.ntohs (was deprecated in 3.7)

2020-11-17 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11188] test_time error on AIX

2020-11-17 Thread Kevin
Change by Kevin : -- nosy: +kadler ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41625] Add splice() to the os module

2020-11-17 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue13281] Make robotparser.RobotFileParser ignore blank lines

2020-11-17 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.9 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue18122] RuntimeError: not holding the import lock

2020-11-17 Thread Irit Katriel
Irit Katriel added the comment: Closing as this is a python-2 only issue. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue41625] Add splice() to the os module

2020-11-17 Thread miss-islington
miss-islington added the comment: New changeset 2a9eddf070f72060f62db1856a0af2e08729a46c by Pablo Galindo in branch 'master': bpo-41625: Add a guard for Linux for splice() constants in the os module (GH-23350) https://github.com/python/cpython/commit/2a9eddf070f72060f62db1856a0af2e08729a46c

[issue41625] Add splice() to the os module

2020-11-17 Thread miss-islington
miss-islington added the comment: New changeset e59958f8b6815f51f6c33b6a613cf8467ca18a11 by Pablo Galindo in branch 'master': bpo-41625: Specify that Linux >= 2.6.17 *and* glibc >= 2.5 are requir… (GH-23351) https://github.com/python/cpython/commit/e59958f8b6815f51f6c33b6a613cf8467ca18a11

[issue39934] Fatal Python error "XXX block stack overflow" when exception stacks >10

2020-11-17 Thread Mark Shannon
Mark Shannon added the comment: New changeset 48a9c0eb2a3304ea64d1b32fdf9db853d5d8c429 by Irit Katriel in branch '3.9': [3.9] bpo-39934: Account for control blocks in 'except' in compiler. (GH-22395) (GH-23303)

[issue42349] Compiler front-end produces a broken CFG

2020-11-17 Thread Mark Shannon
Mark Shannon added the comment: New changeset 266b462238bddec0213effad3650f19c56511e9f by Mark Shannon in branch 'master': bpo-42349: Compiler clean up. More yak-shaving for PEP 626. (GH-23267) https://github.com/python/cpython/commit/266b462238bddec0213effad3650f19c56511e9f --

[issue42392] remove the 'loop' parameter from __init__ in all classes in asyncio.locks

2020-11-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: This was on my to-do list but I very much appreciate if somebody champions this issue. I should finish sslproto PR first. -- ___ Python tracker

[issue15004] add weakref support to types.SimpleNamespace

2020-11-17 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.9 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue12545] os.lseek() and FileIO.seek() does not support offset larger than 2^63-1

2020-11-17 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.9 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42392] remove the 'loop' parameter from __init__ in all classes in asyncio.locks

2020-11-17 Thread Yury Selivanov
Yury Selivanov added the comment: Kyle, lmk if you want to work on this. -- nosy: +aeros ___ Python tracker ___ ___

[issue42392] remove the 'loop' parameter from __init__ in all classes in asyncio.locks

2020-11-17 Thread Yury Selivanov
Yury Selivanov added the comment: (or alternatively they can cache the running `loop`, but the first loop lookup should be performed with `asyncio.get_running_loop()`) -- ___ Python tracker

[issue42392] remove the 'loop' parameter from __init__ in all classes in asyncio.locks

2020-11-17 Thread Yury Selivanov
New submission from Yury Selivanov : asyncio.Lock and other primitives should no longer accept the `loop` parameter. They should also stop storing the current loop in the `self._loop` attribute. Instead, they should use `get_running_loop()` whenever they need to access the loop. --

[issue42390] Other Python implementations may not expose the module name in datetime type names

2020-11-17 Thread Paul Ganssle
Paul Ganssle added the comment: What is an example of another Python implementation that has this property? Is there a concrete issue open somewhere that this is solving? I am not unsympathetic to the idea of accommodating other implementations of Python, but this is very abstract and I

[issue42094] isoformat() / fromisoformat() for datetime.timedelta

2020-11-17 Thread Paul Ganssle
Paul Ganssle added the comment: This is probably more feasible than the proposal in bpo-41254 since it's a well-defined spec (mostly — it includes an optional alternative format and the number of digits allowed is defined "by agreement", thus defeating the purpose of using a spec in the

[issue42202] Optimize function annotation

2020-11-17 Thread Yurii Karabas
Yurii Karabas <1998uri...@gmail.com> added the comment: I have run tests with different types of function declaration. A function declaration with annotations is more than 2 times faster with the co_annotatins feature. If function doesn't have annotations time almost same as without

[issue42390] Other Python implementations may not expose the module name in datetime type names

2020-11-17 Thread William Meehan
William Meehan added the comment: For Python implementations that change the underlying object structure, it's not necessarily possible to recreate the `tp_name` that would be exposed in CPython. The `datetime` ends up in `__module__`, while only the type name ends up in `__name__`. There's

[issue17854] symmetric difference operation applicable to more than two sets

2020-11-17 Thread Irit Katriel
Irit Katriel added the comment: I agree that the doc is fine as it is. If there will be no objections/suggestions in the next couple of weeks I will close this issue. -- nosy: +iritkatriel status: open -> pending ___ Python tracker

[issue42094] isoformat() / fromisoformat() for datetime.timedelta

2020-11-17 Thread Paul Ganssle
Change by Paul Ganssle : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42390] Other Python implementations may not expose the module name in datetime type names

2020-11-17 Thread Paul Ganssle
Paul Ganssle added the comment: Is this an actual problem for another implementation of Python? Is there some reason to think that we intended the repr of a `datetime` object to be implementation-defined? -- nosy: +p-ganssle ___ Python tracker

[issue41625] Add splice() to the os module

2020-11-17 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +22245 pull_request: https://github.com/python/cpython/pull/23351 ___ Python tracker ___

[issue41625] Add splice() to the os module

2020-11-17 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +22244 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/23350 ___ Python tracker ___

[issue41625] Add splice() to the os module

2020-11-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset fa96608513b6eafe48777f1a5504134939dcbebc by Pablo Galindo in branch 'master': bpo-41625: Add versionadded to os.splice() constants (GH-23340) https://github.com/python/cpython/commit/fa96608513b6eafe48777f1a5504134939dcbebc --

[issue41713] _signal module leak: test_interpreters leaked [1424, 1422, 1424] references

2020-11-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22243 pull_request: https://github.com/python/cpython/pull/23349 ___ Python tracker ___

[issue41686] C++ Embedded 'time.sleep()' is not working on Windows host due to 'Py_InitializeEx(0)'

2020-11-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22242 pull_request: https://github.com/python/cpython/pull/23349 ___ Python tracker ___

[issue41713] _signal module leak: test_interpreters leaked [1424, 1422, 1424] references

2020-11-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 05a5d697f4f097f37c5c1e2ed0e2338a33c3fb6a by Victor Stinner in branch '3.9': bpo-41686: Always create the SIGINT event on Windows (GH-23344) (GH-23347) https://github.com/python/cpython/commit/05a5d697f4f097f37c5c1e2ed0e2338a33c3fb6a

[issue41686] C++ Embedded 'time.sleep()' is not working on Windows host due to 'Py_InitializeEx(0)'

2020-11-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 05a5d697f4f097f37c5c1e2ed0e2338a33c3fb6a by Victor Stinner in branch '3.9': bpo-41686: Always create the SIGINT event on Windows (GH-23344) (GH-23347) https://github.com/python/cpython/commit/05a5d697f4f097f37c5c1e2ed0e2338a33c3fb6a

[issue41686] C++ Embedded 'time.sleep()' is not working on Windows host due to 'Py_InitializeEx(0)'

2020-11-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset cda23be092f4a72e4f335cf182f11e7bd7fd98eb by Victor Stinner in branch 'master': bpo-41686: Refactor signal_exec() (GH-23346) https://github.com/python/cpython/commit/cda23be092f4a72e4f335cf182f11e7bd7fd98eb --

[issue42202] Optimize function annotation

2020-11-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If you want to measure import time, use python -m timeit -s "from sys import modules; modules_copy = modules.copy()" "import black; modules.clear(); modules.update(modules_copy)" But I would be surprised to see significant difference in this case. What

[issue42391] Clarify documentation of TestCase.assertIs

2020-11-17 Thread Ram Rachum
Change by Ram Rachum : -- keywords: +patch pull_requests: +22241 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23348 ___ Python tracker ___

[issue42391] Clarify documentation of TestCase.assertIs

2020-11-17 Thread Ram Rachum
New submission from Ram Rachum : Writing the patch now. -- assignee: docs@python components: Documentation messages: 381263 nosy: cool-RR, docs@python priority: normal severity: normal status: open title: Clarify documentation of TestCase.assertIs type: enhancement versions: Python

[issue42323] [AIX] test_math: test_nextafter(float('nan'), 1.0) does not return a NaN on AIX

2020-11-17 Thread Mark Dickinson
Mark Dickinson added the comment: [Victor] > How can we fix the buildbot? Add #ifdef in mathmodule.c to implement the > special cases, but only on AIX? Skip the test? I'm not super-keen on using #ifdefs to implement the special-case handling _just_ for AIX: that opens the door to a

[issue41625] Add splice() to the os module

2020-11-17 Thread STINNER Victor
STINNER Victor added the comment: > The splice() system call first appeared in Linux 2.6.17; > library support was added to glibc in version 2.5. There is no emulation. It's just a function which wraps the syscall:

[issue42323] [AIX] test_math: test_nextafter(float('nan'), 1.0) does not return a NaN on AIX

2020-11-17 Thread STINNER Victor
STINNER Victor added the comment: > "./Modules/posixmodule.c", line 15146.53: 1506-045 (S) Undeclared identifier > SPLICE_F_MOVE. This is unrelated: https://bugs.python.org/issue41625#msg381259 Please continue the discussion this SPLICE there. --

[issue41625] Add splice() to the os module

2020-11-17 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue. This issue broke Python compilation on AIX. https://buildbot.python.org/all/#/builders/302/builds/377 configure: "checking for splice... yes" "./Modules/posixmodule.c", line 15146.53: 1506-045 (S) Undeclared identifier SPLICE_F_MOVE.

[issue13875] Improve description of cmd module

2020-11-17 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41686] C++ Embedded 'time.sleep()' is not working on Windows host due to 'Py_InitializeEx(0)'

2020-11-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22239 pull_request: https://github.com/python/cpython/pull/23347 ___ Python tracker ___

[issue41713] _signal module leak: test_interpreters leaked [1424, 1422, 1424] references

2020-11-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22240 pull_request: https://github.com/python/cpython/pull/23347 ___ Python tracker ___

[issue41686] C++ Embedded 'time.sleep()' is not working on Windows host due to 'Py_InitializeEx(0)'

2020-11-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22238 pull_request: https://github.com/python/cpython/pull/23346 ___ Python tracker ___

[issue41713] _signal module leak: test_interpreters leaked [1424, 1422, 1424] references

2020-11-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0ae323b87f1bed64a7fa70f5a41a5800aca032cc by Victor Stinner in branch 'master': bpo-41686: Always create the SIGINT event on Windows (GH-23344) https://github.com/python/cpython/commit/0ae323b87f1bed64a7fa70f5a41a5800aca032cc --

[issue41686] C++ Embedded 'time.sleep()' is not working on Windows host due to 'Py_InitializeEx(0)'

2020-11-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0ae323b87f1bed64a7fa70f5a41a5800aca032cc by Victor Stinner in branch 'master': bpo-41686: Always create the SIGINT event on Windows (GH-23344) https://github.com/python/cpython/commit/0ae323b87f1bed64a7fa70f5a41a5800aca032cc --

[issue23023] ./Modules/ld_so_aix not found on AIX during test_distutils

2020-11-17 Thread Kevin
Kevin added the comment: Is this issue still relevant? I can't find any current buildbot errors on AIX for this test. -- nosy: +kadler ___ Python tracker ___

[issue42202] Optimize function annotation

2020-11-17 Thread Jakub Stasiak
Jakub Stasiak added the comment: Yurii, I don't believe that benchmark measures what you need to measure (once imported module is kept imported forever until unloaded, so successive imports are no-ops). See how the side effects of importing bbb only happen once: % cat bbb.py import time

[issue42264] Deprecate or remove sqlite3.OptimizedUnicode

2020-11-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42385] Should enum.auto's behavior be adjusted for StrEnum to return the enum name?

2020-11-17 Thread Ethan Furman
Ethan Furman added the comment: A good idea. Since the Python opinion of enum members is that they be upper-cased, and every magic string constant I have seen is lower-case, `StrEnum._generate_next_value_` should lower case the name. Users can substitute their own `_gnv_` for different

[issue42202] Optimize function annotation

2020-11-17 Thread Yurii Karabas
Yurii Karabas <1998uri...@gmail.com> added the comment: I have just implemented `co_annotations` field for `CodeObject`. I wrote a simple benchmark to measure the time required to import black module (I took black because it contains a log of annotations). Benchmark simply run `python -m

[issue42390] Other Python implementations may not expose the module name in datetime type names

2020-11-17 Thread William Meehan
Change by William Meehan : -- keywords: +patch pull_requests: +22237 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23345 ___ Python tracker ___

[issue42264] Deprecate or remove sqlite3.OptimizedUnicode

2020-11-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a1f401a58b213e400fbd8f0fa8dc5260a2389dab by Erlend Egeberg Aasland in branch 'master': bpo-42264: Deprecate sqlite3.OptimizedUnicode (GH-23163) https://github.com/python/cpython/commit/a1f401a58b213e400fbd8f0fa8dc5260a2389dab --

[issue42202] Optimize function annotation

2020-11-17 Thread Mark Shannon
Mark Shannon added the comment: For top level functions (functions created once) this isn't going to make any real difference. There might be a small speedup for function creation, but it isn't going to be measurable. For nested functions with annotations, where many functions are created

[issue42386] Update icons for macOS 11

2020-11-17 Thread Forrest Jiang
Forrest Jiang <17jian...@gmail.com> added the comment: On another note, beginning with Big Sur, document icons can be system-generated: https://developer.apple.com/news/?id=5i6jlf4d -- ___ Python tracker

[issue42345] Equality of typing.Literal depends on the order of arguments

2020-11-17 Thread Guido van Rossum
Guido van Rossum added the comment: I recommend adding a whatsnew entry too. You can just add it to this issue. Interestingly you’ll probably need two separate ones, for 3.9 and 3.10. That would become two separate PRs for master, the 3.9 one to be backported. -- resolution: ->

  1   2   >