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

[WIP] bpo-42294: Add Py_SetRef() and Py_XSetRef() #23209

Closed
wants to merge 2 commits into from
Closed

[WIP] bpo-42294: Add Py_SetRef() and Py_XSetRef() #23209

wants to merge 2 commits into from

Commits on Nov 9, 2020

  1. bpo-42294: Add Py_SetRef() and Py_XSetRef()

    Add Py_SetRef() and Py_XSetRef() functions to set a strong reference
    to a new object without creating a temporary dangling pointer.
    
    Rewrite the Py_SETREF() and Py_XSETREF() macros using respectively
    Py_SetRef() and Py_XSetRef() functions.
    
    Rewrite the Py_CLEAR() macro using the Py_XSetRef() public.
    vstinner committed Nov 9, 2020
    Configuration menu
    Copy the full SHA
    6cdeb38 View commit details
    Browse the repository at this point in the history
  2. Fix typo in the doc

    vstinner committed Nov 9, 2020
    Configuration menu
    Copy the full SHA
    590e4ac View commit details
    Browse the repository at this point in the history