Skip to content

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

@vstinner

Description

@vstinner
BPO45476
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=Noneclosed_at=Nonecreated_at=<Date2021-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=<Date2022-01-27.20:29:40.417>user='https://github.com/vstinner'

    bugs.python.org fields:

    activity=<Date2022-01-27.20:29:40.417>actor='vstinner'assignee='none'closed=Falseclosed_date=Nonecloser=Nonecomponents= ['C API'] creation=<Date2021-10-14.21:17:31.326>creator='vstinner'dependencies= [] files= ['50462'] hgrepos= [] issue_num=45476keywords= ['patch'] message_count=41.0messages= ['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.0nosy_names= ['lemburg', 'rhettinger', 'vstinner', 'gdr@garethrees.org', 'erlendaasland', 'arhadthedev'] pr_nums= ['28961', '28976', '29860', '29866'] priority='normal'resolution=Nonestage='patch review'status='open'superseder=Nonetype=Noneurl='https://bugs.python.org/issue45476'versions= ['Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions