Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenVMS
Python
Modules
cython
Commits
38fdcf586b71
Commit
38fdcf586b71
authored
5 years ago
by
Thomas A Caswell
Browse files
Options
Downloads
Patches
Plain Diff
Add missing "PyUnicode_GET_LENGTH" to unicode.pxd (GH-3692)
parent
25e841a6a4e8
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Cython/Includes/cpython/unicode.pxd
+11
-0
11 additions, 0 deletions
Cython/Includes/cpython/unicode.pxd
with
11 additions
and
0 deletions
Cython/Includes/cpython/unicode.pxd
+
11
−
0
View file @
38fdcf58
...
...
@@ -10,5 +10,9 @@
# 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
)
...
...
@@ -13,5 +17,12 @@
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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment