mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Fixed "u#" parser marker to pass through Unicode objects as-is without
going through the buffer interface API. Added tests for this to the _testcapi module and updated docs.
This commit is contained in:
parent
e0b1e6af58
commit
3e3eacb5fc
4 changed files with 61 additions and 2 deletions
|
|
@ -669,6 +669,8 @@ address you pass.
|
|||
\item[\samp{u\#} (Unicode object) {[Py_UNICODE *, int]}]
|
||||
This variant on \samp{u} stores into two C variables, the first one
|
||||
a pointer to a Unicode data buffer, the second one its length.
|
||||
Non-Unicode objects are handled by interpreting their read buffer
|
||||
pointer as pointer to a Py_UNICODE array.
|
||||
|
||||
\item[\samp{es} (string, Unicode object or character buffer compatible
|
||||
object) {[const char *encoding, char **buffer]}]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue