Skip to content

[C API] Add private "CAST" macros to clean up casts in C code#91320

@vstinner

Description

@vstinner
BPO47164
Nosy@gpshead, @vstinner, @markshannon, @corona10, @Fidget-Spinner
PRs
  • bpo-47164: Add _PyCFunctionObject_CAST() macro #32190
  • bpo-47164: Add _PyASCIIObject_CAST() macro #32191
  • bpo-47164: Add _PyCFunction_CAST() macro #32192
  • bpo-47164: Argument Clinic uses _PyCFunction_CAST() #32210
  • 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=<Date2022-03-30.12:28:10.065>labels= ['expert-C-API', '3.11'] title='[C API] Add private "CAST" macros to clean up casts in C code'updated_at=<Date2022-04-05.06:59:30.735>user='https://github.com/vstinner'

    bugs.python.org fields:

    activity=<Date2022-04-05.06:59:30.735>actor='gregory.p.smith'assignee='none'closed=Falseclosed_date=Nonecloser=Nonecomponents= ['C API'] creation=<Date2022-03-30.12:28:10.065>creator='vstinner'dependencies= [] files= [] hgrepos= [] issue_num=47164keywords= ['patch'] message_count=14.0messages= ['416350', '416353', '416354', '416357', '416358', '416361', '416362', '416363', '416365', '416372', '416417', '416418', '416419', '416420'] nosy_count=5.0nosy_names= ['gregory.p.smith', 'vstinner', 'Mark.Shannon', 'corona10', 'kj'] pr_nums= ['32190', '32191', '32192', '32210'] priority='normal'resolution=Nonestage='patch review'status='open'superseder=Nonetype=Noneurl='https://bugs.python.org/issue47164'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