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

Py_SIZE() macro used as an lvalue #46065

Closed
rhettinger opened this issue Jan 2, 2008 · 2 comments
Closed

Py_SIZE() macro used as an lvalue #46065

rhettinger opened this issue Jan 2, 2008 · 2 comments
Assignees
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs)

Comments

@rhettinger
Copy link
Contributor

BPO 1724
Nosy @loewis, @rhettinger

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/loewis'
closed_at = <Date 2008-01-02.23:46:36.522>
created_at = <Date 2008-01-02.23:43:19.960>
labels = ['interpreter-core', 'invalid']
title = 'Py_SIZE() macro used as an lvalue'
updated_at = <Date 2008-01-02.23:46:36.521>
user = 'https://github.com/rhettinger'

bugs.python.org fields:

activity = <Date 2008-01-02.23:46:36.521>
actor = 'loewis'
assignee = 'loewis'
closed = True
closed_date = <Date 2008-01-02.23:46:36.522>
closer = 'loewis'
components = ['Interpreter Core']
creation = <Date 2008-01-02.23:43:19.960>
creator = 'rhettinger'
dependencies = []
files = []
hgrepos = []
issue_num = 1724
keywords = []
message_count = 2.0
messages = ['59111', '59112']
nosy_count = 2.0
nosy_names = ['loewis', 'rhettinger']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1724'
versions = ['Python 2.6']

@rhettinger
Copy link
Contributor Author

Don't know if this was intended. Here's a example from rev 56476 in
arraymodule.c:

  •   op-\>ob_size = size;
    

+ Py_Size(op) = size;

@rhettinger rhettinger added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Jan 2, 2008
@loewis
Copy link
Mannequin

loewis mannequin commented Jan 2, 2008

Certainly. This macro definitely *is* an lvalue.

@loewis loewis mannequin closed this as completed Jan 2, 2008
@loewis loewis mannequin added the invalid label Jan 2, 2008
@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
interpreter-core (Objects, Python, Grammar, and Parser dirs)
Projects
None yet
Development

No branches or pull requests

1 participant