[issue37884] Optimize Fraction() and statistics.mean()

2019-08-23 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > FWIW, the entire point of us having recently added as_integer_ratio() methods > to so many concrete classes is to avoid the need for helper functions in > favor of a simple try/except around a single call. But what about PEP 3141? The fractions.Fraction co

[issue37932] ConfigParser.items(section) with allow_no_value returns empty strings

2019-08-23 Thread Sean Robertson
New submission from Sean Robertson : Hello and thanks for reading. I've also experienced this in Python 3.7, and I believe it to be around since 3.2. The allow_no_value option of ConfigParser allows None values when (de)serializing configuration files. Yet calling the "items(section)" method

[issue37933] faulthandler causes segfaults

2019-08-23 Thread Thomas Caswell
New submission from Thomas Caswell : Changing faulthandler to only allocate it's stack when use causes python to segfault with import faulthandler faulthandler.cancel_dump_traceback_later() https://bugs.python.org/issue37851 https://github.com/python/cpython/pull/15358 -- components:

[issue37933] faulthandler causes segfaults

2019-08-23 Thread Thomas Caswell
Change by Thomas Caswell : -- components: +Extension Modules -Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37585] Comparing PyDictValues does not give expected results

2019-08-23 Thread Kyle Stanley
Change by Kyle Stanley : -- stage: resolved -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue37934] Docs: Clarify NotImplemented use cases

2019-08-23 Thread Kyle Stanley
New submission from Kyle Stanley : In the documentation for the NotImplemented constant (https://docs.python.org/3/library/constants.html#NotImplemented), the only use case mentioned is for binary special methods, (such as object.__eq__(other)). However, based on a conversation in a recent PR

[issue37933] faulthandler causes segfaults

2019-08-23 Thread Thomas Caswell
Change by Thomas Caswell : -- keywords: +patch pull_requests: +15133 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15440 ___ Python tracker ___ _

[issue22001] containers "same" does not always mean "__eq__".

2019-08-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue29352] provide the authorative source for s[i:j] negative slice indices (<-len(s)) behavior for standard sequences

2019-08-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue18078] threading.Condition to allow notify on a specific waiter

2019-08-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Marking this as closed/rejected for the reasons listed above. Thank you all for the thoughtful and intelligent discussion. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracke

[issue37798] Add C fastpath for statistics.NormalDist.inv_cdf()

2019-08-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +15134 pull_request: https://github.com/python/cpython/pull/15441 ___ Python tracker ___ __

[issue37798] Add C fastpath for statistics.NormalDist.inv_cdf()

2019-08-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 0a18ee4be7ba215f414bef04598e0849504f9f1e by Raymond Hettinger (Dong-hee Na) in branch 'master': bpo-37798: Add C fastpath for statistics.NormalDist.inv_cdf() (GH-15266) https://github.com/python/cpython/commit/0a18ee4be7ba215f414bef04598e0849

[issue37798] Add C fastpath for statistics.NormalDist.inv_cdf()

2019-08-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 5779c536321e1405b4c17654a85b8f9221be765e by Raymond Hettinger (Miss Islington (bot)) in branch '3.8': bpo-37798: Add C fastpath for statistics.NormalDist.inv_cdf() (GH-15266) (GH-15441) https://github.com/python/cpython/commit/5779c536321e14

[issue37798] Add C fastpath for statistics.NormalDist.inv_cdf()

2019-08-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for doing the work one this. Nice work :-) There's one more step. Can you please amend to the tests to run both the pure python and C versions. See Lib/test/test_heapq.py for an example of how to this. -- __

[issue37798] Add C fastpath for statistics.NormalDist.inv_cdf()

2019-08-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue37798] Add C fastpath for statistics.NormalDist.inv_cdf()

2019-08-23 Thread Dong-hee Na
Dong-hee Na added the comment: > There's one more step. Can you please amend to the tests to run both the > pure python and C versions. Sure, I will take look at it! -- ___ Python tracker _

[issue9985] difflib.SequenceMatcher has slightly buggy and undocumented caching behavior

2019-08-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: This was fixed for Python 2.7 and Python 3.4 and later. -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue17794] Add a key parameter to PriorityQueue

2019-08-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Starting in Python 3.7, dataclasses made it trivially easy to work around this issue. The PriorityQueue docs have a worked out example of how to do this: https://docs.python.org/3/library/queue.html#queue.PriorityQueue -- resolution: -> out of d

[issue34259] Improve docstring of list.sort

2019-08-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-08-23 Thread Open Close
Open Close added the comment: For me, since GH-14080, It's been fixed. (arch linux) -- ___ Python tracker ___ ___ Python-bugs-list

[issue35235] Access violation on alloc in Windows x86-64 python, pymalloc_alloc

2019-08-23 Thread Victor Milovanov
Victor Milovanov added the comment: This reproduces stably for me when running unit tests in Python.NET project at commit 5e276d9. -- nosy: +Victor Milovanov ___ Python tracker _

[issue35235] Access violation on alloc in Windows x86-64 python, pymalloc_alloc

2019-08-23 Thread Victor Milovanov
Victor Milovanov added the comment: In my case it always happens in pymalloc_alloc when size == 5, e.g. when accessing usedpools[10]. Specifically freeblock pointer in usedpools[10] is wy off (essentially, seemingly random number looking like 0xX000) where it is supposed to be (e.g.

[issue19119] duplicate test name in Lib/test/test_heapq.py

2019-08-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +15135 pull_request: https://github.com/python/cpython/pull/15442 ___ Python tracker ___ ___

[issue37461] email.parser.Parser hang

2019-08-23 Thread George Zhang
Change by George Zhang : -- pull_requests: +15136 pull_request: https://github.com/python/cpython/pull/15430 ___ Python tracker ___

[issue37461] email.parser.Parser hang

2019-08-23 Thread Ned Deily
Ned Deily added the comment: New changeset 799e4e527019d9429fdef12d08a0c03b08a1fb59 by Ned Deily (GeeTransit) in branch '3.7': [3.7] bpo-37461: Fix typo (inifite -> infinite) (GH-15430) https://github.com/python/cpython/commit/799e4e527019d9429fdef12d08a0c03b08a1fb59 -- ___

[issue37461] email.parser.Parser hang

2019-08-23 Thread George Zhang
Change by George Zhang : -- pull_requests: +15137 pull_request: https://github.com/python/cpython/pull/15432 ___ Python tracker ___

[issue37461] email.parser.Parser hang

2019-08-23 Thread Ned Deily
Ned Deily added the comment: New changeset f1f9c0c532089824791cfc18e6d6f29e1cd62596 by Ned Deily (GeeTransit) in branch '3.6': [3.6] bpo-37461: Fix typo (inifite -> infinite) (#15432) https://github.com/python/cpython/commit/f1f9c0c532089824791cfc18e6d6f29e1cd62596 -- _

[issue37461] email.parser.Parser hang

2019-08-23 Thread Ned Deily
Ned Deily added the comment: xtreak, would you be willing to make the PR for 3.5? That will make it easier for Larry to decide whether to include it in a 3.5 security release. -- ___ Python tracker ___

[issue14010] deeply nested itertools objects segfault

2019-08-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: [Armin] > It's just one of many places where CPython does a recursion > without checking the recursion depth. CPython still works, > based on the resonable assumption that doing such a recursion > here is obscure. I agree with that assessment and am goin

[issue37461] email.parser.Parser hang

2019-08-23 Thread Abhilash Raj
Change by Abhilash Raj : -- pull_requests: +15138 pull_request: https://github.com/python/cpython/pull/15446 ___ Python tracker ___

[issue37461] email.parser.Parser hang

2019-08-23 Thread Abhilash Raj
Abhilash Raj added the comment: I manually created a backport PR for 3.5 and added Larry as a reviewer. https://github.com/python/cpython/pull/15446 -- ___ Python tracker ___

[issue19119] duplicate test name in Lib/test/test_heapq.py

2019-08-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +15139 pull_request: https://github.com/python/cpython/pull/15447 ___ Python tracker ___ __

[issue19119] duplicate test name in Lib/test/test_heapq.py

2019-08-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 4101181fd87c2fab6456663d3c8cc99377cf0463 by Raymond Hettinger in branch 'master': bpo-19119: Remove invalid test and rename a misnamed test (GH-15442) https://github.com/python/cpython/commit/4101181fd87c2fab6456663d3c8cc99377cf0463 ---

[issue19119] duplicate test name in Lib/test/test_heapq.py

2019-08-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset ef3ccd737020a0bb49ea0bfe48069f89bb5370a1 by Raymond Hettinger (Miss Islington (bot)) in branch '3.8': bpo-19119: Remove invalid test and rename a misnamed test (GH-15442) (GH-15447) https://github.com/python/cpython/commit/ef3ccd737020a0bb49e

[issue19119] duplicate test name in Lib/test/test_heapq.py

2019-08-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Removed the bogus test -- it was a cut-and-paste error from a scratch file. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue37812] Make implicit returns explicit in longobject.c (in CHECK_SMALL_INT)

2019-08-23 Thread Greg Price
Change by Greg Price : -- pull_requests: +15140 pull_request: https://github.com/python/cpython/pull/15448 ___ Python tracker ___ __

[issue37754] Persistence of Shared Memory Segment after process exits

2019-08-23 Thread Vinay Sharma
Change by Vinay Sharma : -- versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue37812] Make implicit returns explicit in longobject.c (in CHECK_SMALL_INT)

2019-08-23 Thread Greg Price
Greg Price added the comment: Thanks, Raymond, for the review on GH-15216! Shortly after posting this issue, I noticed a very similar story in CHECK_BINOP. I've just posted GH-15448 to similarly make returns explicit there. It basically consists of a number of repetitions of -CHECK_BI

[issue37812] Make implicit returns explicit in longobject.c (in CHECK_SMALL_INT)

2019-08-23 Thread Kyle Stanley
Kyle Stanley added the comment: > python-dev likely isn't the right place. That is a forum for more mature > ideas. Agreed, that idea should be posted to python-list if they're having issues posting to python-ideas. Python-dev certainly wouldn't be appropriate for that. -- ___

[issue32118] Doc for comparison of sequences with non-orderable elements

2019-08-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +15141 pull_request: https://github.com/python/cpython/pull/15450 ___ Python tracker ___ ___

[issue37935] Improve performance of pathlib.scandir()

2019-08-23 Thread Shai
New submission from Shai : I recently have taken a look in the source code of the pathlib module, and I saw something weird there: when the module used the scandir function, it first converted its iterator into a list and then used it in a for loop. The list wasn't used anywhere else, so I t

[issue37812] Make implicit returns explicit in longobject.c (in CHECK_SMALL_INT)

2019-08-23 Thread Kyle Stanley
Change by Kyle Stanley : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

<    1   2