[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

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

[issue11188] test_time error on AIX

2020-11-17 Thread Kevin
Change by Kevin : -- nosy: +kadler ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/ma

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

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

[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: https://mail.python.org/ma

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

[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

[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

[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
Change by STINNER Victor : -- pull_requests: +22246 pull_request: https://github.com/python/cpython/pull/23353 ___ Python tracker ___ __

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

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

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

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

[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] == value:

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

[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: > 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
Change by STINNER Victor : -- pull_requests: +22248 pull_request: https://github.com/python/cpython/pull/23355 ___ Python tracker ___ __

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

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

[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
Change by Tom Gringauz : -- keywords: +patch pull_requests: +22249 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23356 ___ Python tracker ___ ___

[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 Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

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

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

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

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

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

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

[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

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

[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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

<    1   2