Source of T_STRING: https://github.com/python/cpython/blob/
e42b705188271da108de42b55d9344642170aa2b/Python/structmember.cGH-L51
Source of PyUnicode_FromString
https://github.com/python/cpython/blob/master/Include/unicodeobject.hGH-L702
https://bugs.python.org/issue25438
(cherry picked from commit
689d555ec135d4115574addd063c358ac4897cc4)
Co-authored-by: Windson yang <wiwindson@outlook.com>
https://bugs.python.org/issue25438
:attr:`flags` can be ``0`` for write and read access or :c:macro:`READONLY` for
read-only access. Using :c:macro:`T_STRING` for :attr:`type` implies
- :c:macro:`READONLY`. Only :c:macro:`T_OBJECT` and :c:macro:`T_OBJECT_EX`
+ :c:macro:`READONLY`. :c:macro:`T_STRING` data is interpreted as UTF-8.
+ Only :c:macro:`T_OBJECT` and :c:macro:`T_OBJECT_EX`
members can be deleted. (They are set to *NULL*).