[issue42939] Linux's chattr i.e. ioctl(FS_IOC_SETFLAGS) is not supported in os.chflags()

2021-01-17 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42952] Incorrect handling of EC_KEY_new_by_curve_name() in the _ssl module

2021-01-17 Thread Christian Heimes
Christian Heimes added the comment: Thanks! The block is dead code. OpenSSL 1.0.2 and newer always defines SSL_CTX_set_ecdh_auto. All supported LibreSSL versions define SSL_CTX_set_ecdh_auto, too. I'll remove the block when PEP 644 is accepted. --

[issue42953] After the subclass of enum.Enum is imported in some diffenent ways, the same enumeration value is judged as False

2021-01-17 Thread Chenxi Liu
New submission from Chenxi Liu : When you run the test.py in attachment, it will print a False but the two enumeration value which are acquired in different ways is same -- components: Library (Lib) files: test.zip messages: 385174 nosy: Lcx994611818 priority: normal severity: normal

[issue42950] Incorrect exception behavior in handling recursive call.

2021-01-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +Mark.Shannon, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42952] Incorrect handling of EC_KEY_new_by_curve_name() in the _ssl module

2021-01-17 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +23059 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24237 ___ Python tracker ___

[issue42952] Incorrect handling of EC_KEY_new_by_curve_name() in the _ssl module

2021-01-17 Thread Zackery Spytz
New submission from Zackery Spytz : A EC_KEY_new_by_curve_name() call in the _ssl__SSLContext_impl() function is not checked for failure. -- assignee: christian.heimes components: Extension Modules, SSL messages: 385173 nosy: ZackerySpytz, christian.heimes priority: normal severity:

[issue42717] The python interpreter crashed with "_enter_buffered_busy"

2021-01-17 Thread Xinmeng Xia
Xinmeng Xia added the comment: It seems that this bug won't be fixed. Should this issue be closed now? -- ___ Python tracker ___

[issue42951] Random and infinite loop in dealing with recursion error for "try-except "

2021-01-17 Thread Xinmeng Xia
New submission from Xinmeng Xia : In issue 42500, recursive calls in "Try-except" are resolved. This PR has fixed the crashes of some programs, such as program 1. And the core dump error is replaced with RecursiveError. However, program 2 will not report a RecursiveError. The program will

[issue42950] Incorrect exception behavior in handling recursive call.

2021-01-17 Thread Xinmeng Xia
New submission from Xinmeng Xia : Seeing the following programs, we try to catch a recursive call error in exception handling. The behaviors between Python 3.10.0a4 and older version are inconsistent. The outputs are attached in the end. The output on Python 3.10.0a4 is very weird. Two

[issue41972] bytes.find consistently hangs in a particular scenario

2021-01-17 Thread Dennis Sweeney
Dennis Sweeney added the comment: PR 22904 now adds a text document explaining how the Two-Way algorithm works in much more detail. I was looking at more benchmarking results, and I came to a couple of conclusions about cutoffs. There's a consistent benefit to using the two-way algorithm

[issue42949] pdb & multiprocessing.Pool: AttributeError: module '__main__' has no attribute '__spec__'

2021-01-17 Thread Freek Dijkstra
New submission from Freek Dijkstra : Summary: multiprocessing.Pool contains a bug when the script is invoked with pdb. Steps to reproduce: Consider the following script: ``` from multiprocessing import Pool def f(x): return x*x if __name__ == '__main__': with Pool(5) as p:

[issue42948] bytearray.copy is undocumented

2021-01-17 Thread Patrick Haller
Patrick Haller added the comment: You will see this on every bytes and bytearray type as the behaviour described is the same for both. -- nosy: +HallerPatrick ___ Python tracker

[issue42942] Feature request: Add decdigest() to hashlib

2021-01-17 Thread Arnim Rupp
Arnim Rupp added the comment: oh, you're absolutely right about digest(), sorry, mixed the representation with the data. closing this, thanks. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue42942] Feature request: Add decdigest() to hashlib

2021-01-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: Agreed, using a dict or set hash table lookup is more appropriate for such an algorithm. Also agreed: comparing python integers (30-bit digit bignums internally) cannot be faster than comparing a binary bytes object. --

[issue42948] bytearray.copy is undocumented

2021-01-17 Thread wim glenn
New submission from wim glenn : bytearray type has a copy method which seems to be undocumented https://docs.python.org/3/library/stdtypes.html#bytes-and-bytearray-operations -- assignee: docs@python components: Documentation messages: 385164 nosy: docs@python, wim.glenn priority:

[issue42947] email: Handling when both extended/ascii parameter (filename*/filename) are present?

2021-01-17 Thread Florian Bruhin
New submission from Florian Bruhin : Consider this reproducer: >>> import email.headerregistry >>> reg = email.headerregistry.HeaderRegistry() >>> parsed = reg('Content-Disposition', """attachment; filename="foo-ae.html"; filename*=UTF-8''foo-%c3%a4.html""") >>> parsed.defects

[issue42946] email: ValueError in get_section when parsing header with non-ASCII digit

2021-01-17 Thread Florian Bruhin
New submission from Florian Bruhin : Found mostly by accident: >>> import email.headerregistry >>> reg = email.headerregistry.HeaderRegistry() >>> h = reg('Content-Disposition', 'inline; 0*²') Traceback (most recent call last): File "", line 1, in File

[issue42923] Py_FatalError(): dump the list of extension modules

2021-01-17 Thread STINNER Victor
STINNER Victor added the comment: Example of a Pillow crash in Python 3.10: https://mail.python.org/archives/list/python-...@python.org/message/5DCR2R6POCOHTPFUOY4F5G7GTBYX6OPO/ -- ___ Python tracker

[issue42705] Intercepting thread lock objects not working under context managers

2021-01-17 Thread Jeremy Kloth
Change by Jeremy Kloth : -- components: -Distutils ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42942] Feature request: Add decdigest() to hashlib

2021-01-17 Thread Christian Heimes
Christian Heimes added the comment: Is there any particular reason you are using bisect search with sorted list of integers? Why don't you use a simple approach with a dict of digest bytes? bisect search is O(log(n)), dict lookup is O(1) and therefore scales much better. --

[issue42942] Feature request: Add decdigest() to hashlib

2021-01-17 Thread Christian Heimes
Christian Heimes added the comment: Do you have any benchmarks that back up your claim that integers are faster than using digest or hexdigests? Python's str and bytes types are highly optimized. Hash digests don't fit into native integers, because they are larger than uint64_t and

[issue42944] random.Random.sample bug when counts is not None

2021-01-17 Thread Jon FRANCO
Jon FRANCO added the comment: PR submitted. Let me know if I missed something, this is also my first PR. Regards. -- ___ Python tracker ___

[issue42944] random.Random.sample bug when counts is not None

2021-01-17 Thread Jon FRANCO
Change by Jon FRANCO : -- keywords: +patch pull_requests: +23058 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24235 ___ Python tracker ___