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.

classification
Title: Unnecessary code in the c-api/exceptions.c
Type: Stage: resolved
Components: Interpreter Core Versions: Python 3.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: cocoatomo, louielu, xiang.zhang
Priority: normal Keywords:

Created on 2017-03-28 02:23 by cocoatomo, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 866 merged louielu, 2017-03-28 06:45
Messages (4)
msg290678 - (view) Author: Tomohiko Kinebuchi (cocoatomo) * Date: 2017-03-28 02:23
1. BufferError is PRE_INIT'ed twice, and also POST_INIT'ed twice.
2. Using macros (PRE_INIT, POST_INIT and ADD_ERRNO) with following unnecessary semicolons.

These unnecessary code have no semantic effect, but is somehow confusing.
msg290685 - (view) Author: Louie Lu (louielu) * Date: 2017-03-28 06:37
It seems somehow the patch at #3295 make the mistake, commit faa54a39295 at 2007-08-19 add the PRE_INIT(BufferError) and POST_INIT(BufferError), but in #3295 `buffererror.patch` didn't saw it.
msg290769 - (view) Author: Xiang Zhang (xiang.zhang) * (Python committer) Date: 2017-03-29 05:28
New changeset c431854a0963d4ec2875efab2d2425a738895280 by Xiang Zhang (Louie Lu) in branch 'master':
bpo-29927: Remove duplicate BufferError init and unnecessary semicolons (GH-866)
https://github.com/python/cpython/commit/c431854a0963d4ec2875efab2d2425a738895280
msg290770 - (view) Author: Xiang Zhang (xiang.zhang) * (Python committer) Date: 2017-03-29 05:29
Since the unnecessary codes have no semantic effect, I think they only need to go in 3.7. Thanks for your report and patch!
History
Date User Action Args
2022-04-11 14:58:44adminsetgithub: 74113
2017-03-29 05:31:34xiang.zhangsetversions: - Python 3.5, Python 3.6
2017-03-29 05:31:10xiang.zhangsetstatus: open -> closed
2017-03-29 05:29:51xiang.zhangsetresolution: fixed
messages: + msg290770
stage: resolved
2017-03-29 05:28:18xiang.zhangsetnosy: + xiang.zhang
messages: + msg290769
2017-03-28 06:45:13louielusetpull_requests: + pull_request767
2017-03-28 06:37:53louielusetnosy: + louielu
messages: + msg290685
2017-03-28 02:23:00cocoatomocreate