Make PyContextVar_Get return a new ref (#525)
This commit is contained in:
parent
25324f863f
commit
59eaf3d574
|
@ -290,7 +290,7 @@ C API
|
|||
``value`` pointer. Otherwise, ``value`` will be set to
|
||||
``default_value`` when it is not ``NULL``. If ``default_value`` is
|
||||
``NULL``, ``value`` will be set to the default value of the
|
||||
variable, which can be ``NULL`` too. ``value`` is always a borrowed
|
||||
variable, which can be ``NULL`` too. ``value`` is always a new
|
||||
reference.
|
||||
|
||||
3. ``PyContextToken * PyContextVar_Set(PyContextVar *, PyObject *)``:
|
||||
|
|
Loading…
Reference in New Issue