Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
9faf0fd7
Commit
9faf0fd7
authored
Jun 19, 2020
by
Thomas A Caswell
Committed by
Stefan Behnel
Jun 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing "PyUnicode_GET_LENGTH" to unicode.pxd (GH-3692)
parent
bba78fb8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
Cython/Includes/cpython/unicode.pxd
Cython/Includes/cpython/unicode.pxd
+11
-0
No files found.
Cython/Includes/cpython/unicode.pxd
View file @
9faf0fd7
...
...
@@ -10,8 +10,19 @@ cdef extern from *:
# Return the size of the object. o has to be a PyUnicodeObject
# (not checked).
#
# Deprecated since version 3.3, will be removed in version 3.10:
# Part of the old-style Unicode API, please migrate to using
# PyUnicode_GET_LENGTH().
Py_ssize_t
PyUnicode_GET_SIZE
(
object
o
)
# Return the length of the Unicode string, in code points. o has
# to be a Unicode object in the “canonical” representation (not
# checked).
#
# New in version 3.3.
Py_ssize_t
PyUnicode_GET_LENGTH
(
object
o
)
# Return the size of the object's internal buffer in bytes. o has
# to be a PyUnicodeObject (not checked).
Py_ssize_t
PyUnicode_GET_DATA_SIZE
(
object
o
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment