Make PyContextVar_Get return a new ref (#525)

This commit is contained in:
Yury Selivanov 2017-12-28 11:58:12 -05:00 committed by GitHub
parent 25324f863f
commit 59eaf3d574
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 *)``: