[issue36887] Add integer square root, math.isqrt

2019-05-11 Thread Steven D'Aprano
Steven D'Aprano added the comment: Yes please for this! The two usual versions are isqrt and nsqrt: isqrt(n) = largest integer ≤ √n nsqrt(n) = closest integer to √n although to be honest I'm not sure what use cases there are for nsqrt. -- nosy: +steven.daprano _

[issue36887] Add integer square root, math.isqrt

2019-05-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue24758] unittest.mock.Mock's new "unsafe" feature needs a better error message

2019-05-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Closing this as resolved since PR was merged. Thanks Zackery for the PR. -- nosy: +xtreak resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36871] Misleading error from unittest.mock's assert_has_calls

2019-05-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This is little tricky to fix since the call-matcher needs the signature and also the information over whether to add self or not for some cases. Similar open issues. https://bugs.python.org/issue27715 https://bugs.python.org/issue26752 An approach

[issue36725] Reference leak regression with Python3.8a3

2019-05-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: -13139 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36725] Reference leak regression with Python3.8a3

2019-05-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- stage: patch review -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36886] Failed to construct CodeType on Python-3.8.0a4

2019-05-11 Thread Big Stone
Big Stone added the comment: I found a third project that is impacted https://github.com/microsoft/python-language-server/issues/1070. -- ___ Python tracker ___ _

<    1   2