[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2021-02-21 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23389 pull_request: https://github.com/python/cpython/pull/24582 ___ Python tracker ___

[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2020-01-06 Thread Raphaël M
Raphaël M added the comment: Thank you very much! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2020-01-06 Thread Inada Naoki
Inada Naoki added the comment: > I've tried writing some Python code to reproduce this bug, but I'm unable to > -- I should be missing something. Is there a simple snippet showing the > issue? Note that this is a bug from long ago. Why this bug had lived long is it can not happen in

[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2020-01-06 Thread Raphaël M
Raphaël M added the comment: Any pointer would also be welcome, and a piece of code showing the bug would help me a lot. Thank you. -- ___ Python tracker ___

[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2019-10-29 Thread Raphaël M
Raphaël M added the comment: I stumbled upon this issue while reading Python 3.8 and this made me curious. I've tried writing some Python code to reproduce this bug, but I'm unable to -- I should be missing something. Is there a simple snippet showing the issue? Also, the changelog states

[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2019-04-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are few occurrences of PyDict_GetItem(), PyDict_GetItemString() and _PyDict_GetItemId() in cases where they are unlikely failed. These cases will be considered in separate issues. -- resolution: -> fixed stage: patch review -> resolved

[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2019-04-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 7a0630c530121725136526a88c49589b54da6492 by Serhiy Storchaka in branch 'master': Add a What's New entry for bpo-35459. (GH-12706) https://github.com/python/cpython/commit/7a0630c530121725136526a88c49589b54da6492 --

[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2019-04-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +12630 stage: resolved -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2019-04-05 Thread Inada Naoki
Inada Naoki added the comment: Serhiy, can this issue be closed? -- nosy: +inada.naoki ___ Python tracker ___ ___ Python-bugs-list

[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2019-02-26 Thread Josh Rosenberg
Josh Rosenberg added the comment: #36110 was closed as a duplicate; the superseder is #36109 (which has been fixed). The change should still be documented, just in case anyone gets bitten by it. -- nosy: +josh.r ___ Python tracker

[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2019-02-26 Thread STINNER Victor
STINNER Victor added the comment: > It seems like the change introduced a regression: bpo-36110. While the test has been fixed, IMHO we need to better document this subtle behavior change since it can be surprising. The test failed because PyObject_GetAttr() no longer ignores exceptions

[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2019-02-25 Thread STINNER Victor
STINNER Victor added the comment: It seems like the change introduced a regression: bpo-36110. -- ___ Python tracker ___ ___

[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2019-02-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2019-02-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a24107b04c1277e3c1105f98aff5bfa3a98b33a0 by Serhiy Storchaka in branch 'master': bpo-35459: Use PyDict_GetItemWithError() instead of PyDict_GetItem(). (GH-2)

[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2019-02-15 Thread Eric Snow
Eric Snow added the comment: Thanks, Serhiy. While the benchmark suite is our best tool available for measuring performance, I'm not sure what slowdown is significant in those results. @Victor, any thoughts? -- ___ Python tracker

[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2019-02-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Eric requested to run the benchmark suite. Here are results. I do not know how to interpret them. Likely all differences are random. -- Added file: https://bugs.python.org/file48137/pydict-getitem-compare.txt

[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2018-12-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +eric.snow, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2018-12-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Most of changes are straightforward. Just replaced PyDict_GetItem*() with PyDict_GetItem*WithError() and added the check for PyErr_Occurred(). PyDict_GetItemString() with constant argument was replaced with _PyDict_GetItemIdWithError() for performance.

[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2018-12-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Opened issue35461 for documenting flaws of PyDict_GetItem(). -- ___ Python tracker ___ ___

[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2018-12-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +10341 stage: -> patch review ___ Python tracker ___ ___

[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2018-12-11 Thread STINNER Victor
STINNER Victor added the comment: My previous attempt: bpo-20615. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2018-12-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- title: Use PyDict_GetItemWithError() with PyDict_GetItem() -> Use PyDict_GetItemWithError() instead of PyDict_GetItem() ___ Python tracker ___