Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Objects/bytesobject.c should include stringdefs.h, instead of defining its own macros #49998

Closed
ericvsmith opened this issue Apr 13, 2009 · 3 comments
Assignees
Labels
easy interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error

Comments

@ericvsmith
Copy link
Member

BPO 5748
Nosy @ericvsmith

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/ericvsmith'
closed_at = <Date 2009-11-30.01:02:16.184>
created_at = <Date 2009-04-13.21:15:08.637>
labels = ['interpreter-core', 'easy', 'type-bug']
title = 'Objects/bytesobject.c should include stringdefs.h, instead of defining its own macros'
updated_at = <Date 2009-11-30.01:02:16.183>
user = 'https://github.com/ericvsmith'

bugs.python.org fields:

activity = <Date 2009-11-30.01:02:16.183>
actor = 'eric.smith'
assignee = 'eric.smith'
closed = True
closed_date = <Date 2009-11-30.01:02:16.184>
closer = 'eric.smith'
components = ['Interpreter Core']
creation = <Date 2009-04-13.21:15:08.637>
creator = 'eric.smith'
dependencies = []
files = []
hgrepos = []
issue_num = 5748
keywords = ['easy']
message_count = 3.0
messages = ['85954', '95828', '95829']
nosy_count = 2.0
nosy_names = ['eric.smith', 'victorpoluceno']
pr_nums = []
priority = 'normal'
resolution = 'accepted'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue5748'
versions = ['Python 3.2']

@ericvsmith
Copy link
Member Author

All of the macros it defines around line 565 should either already be in
stringdefs.h, or they should be added there.

The same issue exists in Objects/bytearrayobject.c. I haven't looked in
2.7, but I assume the same problem exists there.

@ericvsmith ericvsmith self-assigned this Apr 13, 2009
@ericvsmith ericvsmith added interpreter-core (Objects, Python, Grammar, and Parser dirs) easy type-bug An unexpected behavior, bug, or error labels Apr 13, 2009
@ericvsmith
Copy link
Member Author

This does not apply to 2.x. In both py3k and trunk,
Objects/bytearrayobject.c uses stringlib with some private defines. But
since those defines are only used in bytearrayobject.c, there's nothing
to be gained by factoring then out into a bytearraydef.h file.

So, I'm just going to fix this in Objects/bytesobjects.c, which only
appears in py3k.

@ericvsmith
Copy link
Member Author

Fixed in r76595.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant