This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2018年12月11日 13:27 by serhiy.storchaka, last changed 2022年04月11日 14:59 by admin. This issue is now closed.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 11119 | closed | serhiy.storchaka, 2018年12月11日 13:29 | |
| PR 11209 | merged | miss-islington, 2018年12月18日 11:57 | |
| PR 11210 | merged | miss-islington, 2018年12月18日 11:57 | |
| Messages (5) | |||
|---|---|---|---|
| msg331620 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2018年12月11日 13:27 | |
C API functions like PyDict_GetItem() and PyObject_HasAttr() suppresses all errors that may occur, including MemoryError and KeyboardInterrupt. They can return incorrect result when the memory is exhausted or the user presses Ctrl-C. The proposed PR documents such functions and suggests the C API which do not swallow unrelated exceptions. Previous attempt to document this (for PyDict_GetItem() only) was in issue20615. |
|||
| msg332053 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2018年12月18日 11:57 | |
New changeset 3fcc1e08db6fb7e17acc4a8f63be3e42f52f094b by Serhiy Storchaka in branch 'master': bpo-35461: Document C API functions which suppress exceptions. (GH-11119) https://github.com/python/cpython/commit/3fcc1e08db6fb7e17acc4a8f63be3e42f52f094b |
|||
| msg332077 - (view) | Author: miss-islington (miss-islington) | Date: 2018年12月18日 20:24 | |
New changeset f265afec1c2a5acb8cb9c9ddb6cd45f7465c6eb5 by Miss Islington (bot) in branch '3.7': bpo-35461: Document C API functions which suppress exceptions. (GH-11119) https://github.com/python/cpython/commit/f265afec1c2a5acb8cb9c9ddb6cd45f7465c6eb5 |
|||
| msg332114 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2018年12月19日 09:24 | |
There are too much differences in the C API and the documentation between 3.x and 2.7, so backporting to 2.7 is not practical. |
|||
| msg332262 - (view) | Author: Ned Deily (ned.deily) * (Python committer) | Date: 2018年12月20日 21:28 | |
New changeset ff740db42326082fac7d415ae9aff148628a83ed by Ned Deily (Miss Islington (bot)) in branch '3.6': bpo-35461: Document C API functions which suppress exceptions. (GH-11119) (GH-11210) https://github.com/python/cpython/commit/ff740db42326082fac7d415ae9aff148628a83ed |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:59:09 | admin | set | github: 79642 |
| 2018年12月20日 21:28:32 | ned.deily | set | nosy:
+ ned.deily messages: + msg332262 |
| 2018年12月19日 09:24:15 | serhiy.storchaka | set | status: open -> closed versions: - Python 2.7 messages: + msg332114 resolution: fixed stage: patch review -> resolved |
| 2018年12月18日 20:24:43 | miss-islington | set | nosy:
+ miss-islington messages: + msg332077 |
| 2018年12月18日 11:57:47 | miss-islington | set | pull_requests: + pull_request10447 |
| 2018年12月18日 11:57:40 | miss-islington | set | pull_requests: + pull_request10446 |
| 2018年12月18日 11:57:19 | serhiy.storchaka | set | messages: + msg332053 |
| 2018年12月13日 07:39:11 | serhiy.storchaka | set | nosy:
+ eric.snow |
| 2018年12月11日 13:48:48 | serhiy.storchaka | link | issue35460 dependencies |
| 2018年12月11日 13:29:32 | serhiy.storchaka | set | keywords:
+ patch stage: patch review pull_requests: + pull_request10349 |
| 2018年12月11日 13:27:28 | serhiy.storchaka | create | |