[issue28884] Python 3.5.2 non-segfaulting bugs (from PyPy)

2020-12-05 Thread mattip
mattip added the comment: No, my bad, B6 passes now on CPython -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue28884] Python 3.5.2 non-segfaulting bugs (from PyPy)

2020-12-05 Thread mattip
mattip added the comment: It seems (B6) is still failing (both on PyPy3.7 and on CPython3.8.6) -- nosy: +mattip ___ Python tracker ___

[issue21627] Concurrently closing files and iterating over the open files directory is not well specified

2020-12-05 Thread Irit Katriel
Irit Katriel added the comment: I can't find _posixsubmodules.c or _close_open_fd_range_safe in the codebase. Is this issue out of date? -- nosy: +iritkatriel resolution: -> out of date status: open -> pending ___ Python tracker

[issue17612] hooks/mail.py requires [smtp] host to be set, despite a comment to the contrary

2020-12-05 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> out of date stage: -> resolved status: pending -> closed ___ Python tracker ___ ___

[issue42579] Solution from gh#python/cpython#13236 unnecessarily binds building of documentation to the latest version of Sphinx

2020-12-05 Thread Matej Cepl
Change by Matej Cepl : -- keywords: +patch pull_requests: +22529 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23662 ___ Python tracker ___

[issue42579] Solution from gh#python/cpython#13236 unnecessarily binds building of documentation to the latest version of Sphinx

2020-12-05 Thread Matej Cepl
New submission from Matej Cepl : I think the solution in gh#python/cpython#13236 is the suboptimal one, because it makes Python dependent on the latest version of Sphinx unnecessarily. There are many situations where Python can be built on the older platform and it is too bothersome to

[issue42433] mailbox.mbox fails on non ASCII characters

2020-12-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.7 only gets security fixes. If and when someone merges something, that person will decide whether to backport. -- versions: -Python 3.7, Python 3.8, Python 3.9 ___ Python tracker

[issue17243] The changes made for issue 4074 should be documented

2020-12-05 Thread Irit Katriel
Irit Katriel added the comment: I think this has been fixed here in PR21703. -- nosy: +iritkatriel resolution: -> duplicate status: open -> pending superseder: -> Python Devguide differs from python docs ___ Python tracker

[issue42575] Suggest to add an LinkedList data structure to python

2020-12-05 Thread Dennis Sweeney
Dennis Sweeney added the comment: I'll add that for 98% of the use cases of a linked list (where you just want fast access at the ends), you can use a `collections.deque` instead, and it will be faster (fewer dereferences) and more memory-efficient (fewer pointers to store). In the

[issue42433] mailbox.mbox fails on non ASCII characters

2020-12-05 Thread Florian Klink
Florian Klink added the comment: Based on https://bugs.python.org/issue42433#msg382169 I added back the versions that bug is present. The PR is up to and appropriately linked (I think?) - let me know if there's anything left to be done from my side. -- versions: +Python 3.7, Python

[issue17612] hooks/mail.py requires [smtp] host to be set, despite a comment to the contrary

2020-12-05 Thread Irit Katriel
Irit Katriel added the comment: This seems out of date (pre github?) I couldn't find that comment in the current codebase. -- nosy: +iritkatriel status: open -> pending ___ Python tracker

[issue38780] SysLogHandler crash atexit

2020-12-05 Thread Jason R. Coombs
Jason R. Coombs added the comment: Erlend, inspired by your patches, I created https://github.com/python/cpython/pull/23661/commits/e9723003d49c722d57a69e5016b442d4d752fc6d, which uses a NullSocket instance instead of None, allowing the behavior-suppression to be encapsulated in a single

[issue42576] Passing keyword arguments to types.GenericAlias causes a hard crash

2020-12-05 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks for the quick fix! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38780] SysLogHandler crash atexit

2020-12-05 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +22527 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23661 ___ Python tracker ___

[issue38780] SysLogHandler crash atexit

2020-12-05 Thread Jason R. Coombs
Change by Jason R. Coombs : -- versions: +Python 3.10 -Python 2.7, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue38780] SysLogHandler crash atexit

2020-12-05 Thread Jason R. Coombs
Jason R. Coombs added the comment: I've applied the patches and pushed them to https://github.com/jaraco/cpython/tree/bugfix/bpo-38780. ``` cpython master $ http https://bugs.python.org/file48933/0001-bpo-38780-Harden-socket-use-in-logging.handlers.patch | git apply cpython master $ git

[issue38780] SysLogHandler crash atexit

2020-12-05 Thread Jason R. Coombs
Jason R. Coombs added the comment: I'll take a look at the patch and convert it to a PR. -- assignee: -> jaraco ___ Python tracker ___

[issue42577] Unhelpful syntax error when expression spans multiple lines

2020-12-05 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate superseder: -> Line number of SyntaxError ___ Python tracker ___ ___

[issue42578] Add tip when encountering UnicodeDecode/EncodeError in open()

2020-12-05 Thread Steven D'Aprano
Steven D'Aprano added the comment: "Maybe a helpful tip can be added to the error message." What sort of helpful tip do you have in mind? Remember that the error doesn't occur when the file is opened, but some time later. -- nosy: +steven.daprano

[issue42576] Passing keyword arguments to types.GenericAlias causes a hard crash

2020-12-05 Thread Ken Jin
Change by Ken Jin : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue42576] Passing keyword arguments to types.GenericAlias causes a hard crash

2020-12-05 Thread miss-islington
miss-islington added the comment: New changeset d5c029b1a9b47737efb8966f804d28b99a2de239 by Miss Islington (bot) in branch '3.9': bpo-42576: Raise TypeError when passing in keyword arguments to GenericAlias (GH-23656)

[issue42576] Passing keyword arguments to types.GenericAlias causes a hard crash

2020-12-05 Thread miss-islington
miss-islington added the comment: New changeset 804d6893b801e8f30318afc38c20d4d0e6161db3 by kj in branch 'master': bpo-42576: Raise TypeError when passing in keyword arguments to GenericAlias (GH-23656) https://github.com/python/cpython/commit/804d6893b801e8f30318afc38c20d4d0e6161db3

[issue42576] Passing keyword arguments to types.GenericAlias causes a hard crash

2020-12-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +22526 pull_request: https://github.com/python/cpython/pull/23659 ___ Python tracker ___

[issue42578] Add tip when encountering UnicodeDecode/EncodeError in open()

2020-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 4 of 5 linked questions do not have relation to open(). Half of them are Python 2 specific, and other half is Windows specific and should be fixed in recent Python releases on new Windows. -- nosy: +serhiy.storchaka

[issue42576] Passing keyword arguments to types.GenericAlias causes a hard crash

2020-12-05 Thread Guido van Rossum
Guido van Rossum added the comment: Oh, this looks like I copied the wrong idiom. Good catch! -- ___ Python tracker ___ ___

[issue5054] CGIHTTPRequestHandler.run_cgi() HTTP_ACCEPT improperly parsed

2020-12-05 Thread Senthil Kumaran
Senthil Kumaran added the comment: This was also resolved in 3.10 https://github.com/python/cpython/pull/23638 -- ___ Python tracker ___

[issue5054] CGIHTTPRequestHandler.run_cgi() HTTP_ACCEPT improperly parsed

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

[issue5054] CGIHTTPRequestHandler.run_cgi() HTTP_ACCEPT improperly parsed

2020-12-05 Thread miss-islington
miss-islington added the comment: New changeset b630ca7bc13ba9bdf95cd7dce0ac8e1578fb53a0 by Miss Islington (bot) in branch '3.9': [3.9] bpo-5054: CGIHTTPRequestHandler.run_cgi() HTTP_ACCEPT improperly parsed (GH-23638) (GH-23657)

[issue42578] Add tip when encountering UnicodeDecode/EncodeError in open()

2020-12-05 Thread wyz23x2
Change by wyz23x2 : -- title: Add tip when encountering UnicodeDecode/Encode Error in open() -> Add tip when encountering UnicodeDecode/EncodeError in open() ___ Python tracker

[issue42578] Add tip when encountering UnicodeDecode/Encode Error in open()

2020-12-05 Thread wyz23x2
wyz23x2 added the comment: >>> (1,)(2, 3) :1: SyntaxWarning: 'tuple' object is not callable; perhaps you missed a comma? -- ___ Python tracker ___

[issue42578] Add tip when encountering UnicodeDecode/Encode Error in open()

2020-12-05 Thread wyz23x2
New submission from wyz23x2 : Programmers often stumble over UnicodeDecode/EncodeError during open(), and especially beginners don't know what to do. There are lots of questions on Stackoverflow:

[issue42577] Unhelpful syntax error when expression spans multiple lines

2020-12-05 Thread Christoph Reiter
New submission from Christoph Reiter : I don't know if the bug tracker is the right place for this, please point me to the right place if not. Someone faced to the following code (simplified example here) and asked for help: ``` if 3: if 1: print(((123)) if 2: print(123)

[issue5054] CGIHTTPRequestHandler.run_cgi() HTTP_ACCEPT improperly parsed

2020-12-05 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +22525 pull_request: https://github.com/python/cpython/pull/23657 ___ Python tracker

[issue42576] Passing keyword arguments to types.GenericAlias causes a hard crash

2020-12-05 Thread Ken Jin
Change by Ken Jin : -- keywords: +patch pull_requests: +22524 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23656 ___ Python tracker ___

[issue42576] Passing keyword arguments to types.GenericAlias causes a hard crash

2020-12-05 Thread Ken Jin
New submission from Ken Jin : I noticed that passing keyword arguments to types.GenericAlias's __new__ causes the interpreter to hard crash and exit due to an assertion failure: import types types.GenericAlias(bad=float) Result: Assertion failed: PyTuple_CheckExact(kwnames), file

[issue42573] Installation of Python 3.9 failing with message "User cancelled installation"

2020-12-05 Thread Ronald Oussoren
Change by Ronald Oussoren : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue42573] Installation of Python 3.9 failing with message "User cancelled installation"

2020-12-05 Thread Ronald Oussoren
New submission from Ronald Oussoren : Which OS and version are you trying to install on? -- nosy: +ronaldoussoren ___ Python tracker ___

[issue30459] PyList_SET_ITEM could be safer

2020-12-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22523 pull_request: https://github.com/python/cpython/pull/23654 ___ Python tracker ___

[issue30459] PyList_SET_ITEM could be safer

2020-12-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 556d97f473fa538cef780f84bd29239ecf57d9c5 by Zackery Spytz in branch 'master': bpo-30459: Cast the result of PyList_SET_ITEM() to void (GH-19975) https://github.com/python/cpython/commit/556d97f473fa538cef780f84bd29239ecf57d9c5 --

[issue30459] PyList_SET_ITEM could be safer

2020-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I prefer PR 19975 to PR 23645. It solves the initial issue and is much simpler. -- ___ Python tracker ___

[issue30459] PyList_SET_ITEM could be safer

2020-12-05 Thread Espie Marc
Espie Marc added the comment: On Sat, Dec 05, 2020 at 01:28:33AM +, STINNER Victor wrote: > > STINNER Victor added the comment: > > I propose to merge my PR 23645 change right now. If it breaks too many C > extensions, we still have time before Python 3.10.0 final scheduled at >

[issue42575] Suggest to add an LinkedList data structure to python

2020-12-05 Thread Steven D'Aprano
Steven D'Aprano added the comment: The class you have provided is awkward to use, random access is inefficient, it is not compatible with lists or offer a sequence API, it's not subscriptable or iterable, the API exposes an unnecessary "Proxy" class, and the API is more like what I would