diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2011-11-07 12:00:05 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2011-11-07 12:00:05 (GMT) |
commit | d10759f6edb713e945d1caf19d74ea4e12da7894 (patch) | |
tree | 81ca1ffcbe397faaa4119100a44dc3c21668da9c /Include | |
parent | e9b11c1cd8ad68e829ae627ef48bdbc940f8e7fb (diff) | |
download | cpython-d10759f6edb713e945d1caf19d74ea4e12da7894.zip cpython-d10759f6edb713e945d1caf19d74ea4e12da7894.tar.gz cpython-d10759f6edb713e945d1caf19d74ea4e12da7894.tar.bz2 |
Make _PyUnicode_FromId return borrowed references.
http://mail.python.org/pipermail/python-dev/2011-November/114347.html
Diffstat (limited to 'Include')
-rw-r--r-- | Include/unicodeobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index 58c1f55..c445ad6 100644 --- a/Include/unicodeobject.h +++ b/Include/unicodeobject.h @@ -2024,7 +2024,7 @@ PyAPI_FUNC(int) _PyUnicode_CheckConsistency( shutdown, all strings are released (through _PyUnicode_ClearStaticStrings). Alternatively, _Py_static_string allows to choose the variable name. - _PyUnicode_FromId returns a new reference to the interned string. + _PyUnicode_FromId returns a borrowed reference to the interned string. _PyObject_{Get,Set,Has}AttrId are __getattr__ versions using _Py_Identifier*. */ typedef struct _Py_Identifier { |