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
215dc8c2ad1a
Commit
215dc8c2ad1a
authored
5 years ago
by
Stefan Behnel
Browse files
Options
Downloads
Plain Diff
Merge branch '0.29.x'
parents
f3d56501367e
5f8a54d033d6
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Cython/Includes/cpython/unicode.pxd
+11
-0
11 additions, 0 deletions
Cython/Includes/cpython/unicode.pxd
Cython/Utility/ImportExport.c
+1
-1
1 addition, 1 deletion
Cython/Utility/ImportExport.c
with
12 additions
and
1 deletion
Cython/Includes/cpython/unicode.pxd
+
11
−
0
View file @
215dc8c2
...
...
@@ -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.
Cython/Utility/ImportExport.c
+
1
−
1
View file @
215dc8c2
...
...
@@ -300,7 +300,7 @@
PyString_AS_STRING
(
name
)[
0
]
==
'_'
)
#else
PyUnicode_Check
(
name
)
&&
PyUnicode_
AS_UNICODE
(
name
)[
0
]
==
'_'
)
__Pyx_
PyUnicode_
READ_CHAR
(
name
,
0
)
==
'_'
)
#endif
{
Py_DECREF
(
name
);
...
...
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