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
Xavier Thompson
cython
Commits
64aafe56
Commit
64aafe56
authored
4 years ago
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '0.29.x'
parents
e87a5559
56262e29
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
Cython/Includes/cpython/unicode.pxd
Cython/Includes/cpython/unicode.pxd
+11
-0
Cython/Utility/ImportExport.c
Cython/Utility/ImportExport.c
+1
-1
No files found.
Cython/Includes/cpython/unicode.pxd
View file @
64aafe56
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Cython/Utility/ImportExport.c
View file @
64aafe56
...
...
@@ -300,7 +300,7 @@ __Pyx_import_all_from(PyObject *locals, PyObject *v)
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.
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