Skip to content

[C API] PEP 674: Disallow using macros (Py_TYPE and Py_SIZE) as l-value #89639

Description

@vstinner
BPO 45476
Nosy @malemburg, @rhettinger, @vstinner, @gareth-rees, @erlend-aasland, @arhadthedev
PRs
  • bpo-45476: Convert PyFloat_AS_DOUBLE() to static inline #28961
  • bpo-45476: Disallow using PyFloat_AS_DOUBLE() as l-value #28976
  • bpo-45476: Add _Py_RVALUE() macro #29860
  • bpo-45476: Disallow using asdl_seq_GET() as l-value #29866
  • Files
  • pep674_regex.py
  • 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 = None
    closed_at = None
    created_at = <Date 2021-10-14.21:17:31.326>
    labels = ['expert-C-API', '3.11']
    title = '[C API] PEP 674: Disallow using macros (Py_TYPE and Py_SIZE) as l-value'
    updated_at = <Date 2022-01-27.20:29:40.417>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2022-01-27.20:29:40.417>
    actor = 'vstinner'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['C API']
    creation = <Date 2021-10-14.21:17:31.326>
    creator = 'vstinner'
    dependencies = []
    files = ['50462']
    hgrepos = []
    issue_num = 45476
    keywords = ['patch']
    message_count = 41.0
    messages = ['403950', '403956', '403961', '403965', '403990', '403995', '403999', '404001', '404010', '404039', '406343', '406344', '406345', '406346', '406348', '406996', '407283', '407358', '407374', '407375', '407395', '407410', '407412', '407416', '407417', '407456', '407463', '407528', '407529', '407531', '407532', '407536', '407872', '407875', '411774', '411802', '411803', '411826', '411827', '411831', '411921']
    nosy_count = 6.0
    nosy_names = ['lemburg', 'rhettinger', 'vstinner', 'gdr@garethrees.org', 'erlendaasland', 'arhadthedev']
    pr_nums = ['28961', '28976', '29860', '29866']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue45476'
    versions = ['Python 3.11']

    Activity

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions