[issue19225] lack of PyExc_BufferError doc
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
New submission from hiroaki itoh: http://docs.python.org/2.7/c-api/exceptions.html#standard-exceptions Python2.7 (at least 2.7.5) has PyExc_BufferError, but the document does not tell it. ---------- assignee: docs@python components: Documentation messages: 199458 nosy: docs@python, xwhhsprings priority: normal severity: normal status: open title: lack of PyExc_BufferError doc type: behavior versions: Python 2.7 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19225> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
hiroaki itoh added the comment: also: * GeneratorExit * StopIteration * VMSError (#ifdef __VMS) * UnboundLocalError * IndentationError * TabError * UnicodeError * UnicodeDecodeError * UnicodeEncodeError * UnicodeTranslateError * Warning; * UserWarning; * DeprecationWarning; * PendingDeprecationWarning; * SyntaxWarning; * RuntimeWarning; * FutureWarning; * ImportWarning; * UnicodeWarning; * BytesWarning; Or, erase `For completeness, here are all the variables' statement...? ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19225> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Changes by Berker Peksag <berker.peksag@gmail.com>: ---------- keywords: +easy stage: -> needs patch type: behavior -> enhancement versions: +Python 3.5, Python 3.6 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19225> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Gedai Tamás Bence added the comment: Let me try to solve this issue. Will be back in 4 days. ---------- nosy: +beng94 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19225> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Gedai Tamás Bence added the comment: I've created a new table for warnings and added the missing exceptions to the exceptions table. I did not find a link for VMSError, but I added it to the table. Note that the exceptions table is not absolutely in alphabetical order, I can fix it as well, if it's needed. ---------- keywords: +patch Added file: http://bugs.python.org/file41688/doc_exceptions.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19225> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Martin Panter added the comment: General approach looks good. I left some review comments. VMSError: I think this is Python 2 only, where it seems to be in a similar situation to WindowsError. According to Issue 16136 it was removed in Python 3.4. But it looks like your patch is against Python 3. If you want to fix the alphabetical order, I think that is okay to do in the same patch. Otherwise, the current state is okay, but please put your BufferError in the right place :) ---------- nosy: +martin.panter stage: needs patch -> patch review _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19225> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Gedai Tamás Bence added the comment: Thanks Martin for the review! I tried to fix the problems, I hope now it'll be good. Changes: - fixed uppercase 'B' - removed VMSError - moved notes after versionchanged - added two indices for the different tables * put BufferError in it's place I didn't fix the alphabetical order to keep the patch clean. If you find this patch good, I'll fix that as well if it's needed. ---------- Added file: http://bugs.python.org/file41727/doc_exceptions_v1.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19225> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Tomohiko Kinebuchi added the comment: This issue seems pending.
beng94
Would you create a pull request? ---------- nosy: +cocoatomo _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19225> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Kinebuchi Tomohiko added the comment: I will create a pull request based on the patch created by beng94. In addition, I will have its contents up-to-date. ---------- versions: +Python 3.7 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19225> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Changes by Kinebuchi Tomohiko <cocoatomo77@gmail.com>: ---------- pull_requests: +783 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19225> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Serhiy Storchaka added the comment: New changeset e8c763128fb459c5c98194e4312f31493c0f12df by Serhiy Storchaka (cocoatomo) in branch 'master': bpo-19225: Add a table of warning names and missed exception names in C API doc (#881) https://github.com/python/cpython/commit/e8c763128fb459c5c98194e4312f31493c0... ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19225> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Serhiy Storchaka added the comment: Thank you for your patch Kinebuchi. Do you mind to backport it to other branches? ---------- stage: patch review -> backport needed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19225> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Changes by Kinebuchi Tomohiko <cocoatomo77@gmail.com>: ---------- pull_requests: +1143 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19225> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Changes by Kinebuchi Tomohiko <cocoatomo77@gmail.com>: ---------- pull_requests: +1144 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19225> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Changes by Kinebuchi Tomohiko <cocoatomo77@gmail.com>: ---------- pull_requests: +1145 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19225> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Kinebuchi Tomohiko added the comment: I created backporting pull requests for 2.7, 3.5 and 3.6. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19225> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Changes by Mariatta Wijaya <mariatta.wijaya@gmail.com>: ---------- pull_requests: +1146 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19225> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Changes by Mariatta Wijaya <mariatta.wijaya@gmail.com>: ---------- pull_requests: +1147 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19225> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Serhiy Storchaka added the comment: New changeset 2cfe583ac8d3eaa98e3d2aca597577ce4787ca20 by Serhiy Storchaka (cocoatomo) in branch '3.5': [3.5] bpo-19225: Lack of c api exceptions doc (#965) https://github.com/python/cpython/commit/2cfe583ac8d3eaa98e3d2aca597577ce478... ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19225> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Serhiy Storchaka added the comment: Sorry, but I just found that warning categories are enumerated near the documentation of PyErr_WarnEx(). I think that that enumeration is no longer needed and can be removed. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19225> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Serhiy Storchaka added the comment: New changeset 7f85947106aff5b1f166a57f644f987db4d38bf0 by Serhiy Storchaka (cocoatomo) in branch '2.7': [2.7] bpo-19225: Lack of c api exceptions doc (#964) https://github.com/python/cpython/commit/7f85947106aff5b1f166a57f644f987db4d... ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19225> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
KINEBUCHI Tomohiko added the comment: Oh, I have overlooked these sentences. I will create an additional pull request to remove duplication. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19225> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Changes by KINEBUCHI Tomohiko <cocoatomo77@gmail.com>: ---------- pull_requests: +1214 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19225> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Berker Peksag added the comment: New changeset eaeda64c2fd2abd33e59b03298f9cdc9e8efef89 by Berker Peksag (cocoatomo) in branch 'master': bpo-19225: Remove duplicated description for standard warning categories (GH-1068) https://github.com/python/cpython/commit/eaeda64c2fd2abd33e59b03298f9cdc9e8e... ---------- nosy: +berker.peksag _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19225> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Changes by KINEBUCHI Tomohiko <cocoatomo77@gmail.com>: ---------- pull_requests: +1324 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19225> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Changes by KINEBUCHI Tomohiko <cocoatomo77@gmail.com>: ---------- pull_requests: +1325 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19225> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Changes by KINEBUCHI Tomohiko <cocoatomo77@gmail.com>: ---------- pull_requests: +1326 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19225> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Berker Peksag added the comment: New changeset 5fb4bf91e78e128a22b5b58da179f09d0b307f2d by Berker Peksag (cocoatomo) in branch '3.6': bpo-19225: Remove duplicated description for standard warning categories (GH-1068) https://github.com/python/cpython/commit/5fb4bf91e78e128a22b5b58da179f09d0b3... ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19225> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Berker Peksag added the comment: New changeset 7e56fe35efe3aef0b9aac989255c4f13dfc01b09 by Berker Peksag (cocoatomo) in branch '3.5': bpo-19225: Remove duplicated description for standard warning categories (GH-1068) https://github.com/python/cpython/commit/7e56fe35efe3aef0b9aac989255c4f13dfc... ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19225> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Berker Peksag added the comment: New changeset 450a69c6a4bfee6a10cbcc0c43b221bb135689c8 by Berker Peksag (cocoatomo) in branch '2.7': bpo-19225: Remove duplicated description for standard warning categories (GH-1068) https://github.com/python/cpython/commit/450a69c6a4bfee6a10cbcc0c43b221bb135... ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19225> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Berker Peksag added the comment: Thanks for the backport PRs! ---------- resolution: -> fixed stage: backport needed -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19225> _______________________________________
participants (9)
-
Berker Peksag
-
Gedai Tamás Bence
-
hiroaki itoh
-
Kinebuchi Tomohiko
-
KINEBUCHI Tomohiko
-
Mariatta Wijaya
-
Martin Panter
-
Serhiy Storchaka
-
Tomohiko Kinebuchi