Skip to content

[C API] Add _Py_Borrow() private function: call Py_XDECREF() and return the object #86688

@vstinner

Description

@vstinner
BPO 42522
Nosy @ronaldoussoren, @vstinner, @lazka, @shihai1991
PRs
  • bpo-42522: Add Py_Borrow() and Py_XBorrow() functions #23591
  • 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 = <Date 2020-12-01.23:47:46.226>
    created_at = <Date 2020-12-01.11:21:37.282>
    labels = ['expert-C-API', '3.10']
    title = '[C API] Add _Py_Borrow() private function: call Py_XDECREF() and return the object'
    updated_at = <Date 2020-12-01.23:47:46.224>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2020-12-01.23:47:46.224>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-12-01.23:47:46.226>
    closer = 'vstinner'
    components = ['C API']
    creation = <Date 2020-12-01.11:21:37.282>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 42522
    keywords = ['patch']
    message_count = 11.0
    messages = ['382237', '382243', '382245', '382247', '382249', '382250', '382252', '382255', '382258', '382270', '382284']
    nosy_count = 4.0
    nosy_names = ['ronaldoussoren', 'vstinner', 'lazka', 'shihai1991']
    pr_nums = ['23591']
    priority = 'normal'
    resolution = 'rejected'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue42522'
    versions = ['Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions