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
11d636dc
Commit
11d636dc
authored
May 18, 2020
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '0.29.x'
parents
78b799d0
a57de922
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
CHANGES.rst
CHANGES.rst
+1
-1
Cython/Shadow.py
Cython/Shadow.py
+3
-3
Cython/Utility/ExtensionTypes.c
Cython/Utility/ExtensionTypes.c
+1
-0
No files found.
CHANGES.rst
View file @
11d636dc
...
...
@@ -396,7 +396,7 @@ Other changes
* Support for Python 2.6 was removed.
0.29.18 (2020-0
?-??
)
0.29.18 (2020-0
5-18
)
====================
Bugs fixed
...
...
Cython/Shadow.py
View file @
11d636dc
...
...
@@ -165,13 +165,13 @@ def cmod(a, b):
def
cast
(
t
,
*
args
,
**
kwargs
):
kwargs
.
pop
(
'typecheck'
,
None
)
assert
not
kwargs
if
isinstance
(
t
,
typedef
):
return
t
(
*
args
)
elif
isinstance
(
t
,
type
):
#Doesn't work with old-style classes of Python 2.x
if
len
(
args
)
!=
1
or
not
(
args
[
0
]
is
None
or
isinstance
(
args
[
0
],
t
)):
return
t
(
*
args
)
return
args
[
0
]
def
sizeof
(
arg
):
...
...
@@ -187,7 +187,7 @@ def address(arg):
def
_is_value_type
(
t
):
if
isinstance
(
t
,
typedef
):
return
_is_value_type
(
t
.
_basetype
)
return
isinstance
(
t
,
type
)
and
issubclass
(
t
,
(
StructType
,
UnionType
,
ArrayType
))
def
declare
(
t
=
None
,
value
=
_Unspecified
,
**
kwds
):
...
...
Cython/Utility/ExtensionTypes.c
View file @
11d636dc
...
...
@@ -57,6 +57,7 @@ static int __Pyx_PyType_Ready(PyTypeObject *t) {
#if PY_VERSION_HEX >= 0x03050000
{
// Make sure GC does not pick up our non-heap type as heap type with this hack!
// For details, see https://github.com/cython/cython/issues/3603
PyObject
*
ret
,
*
py_status
;
int
gc_was_enabled
;
PyObject
*
gc
=
PyImport_Import
(
PYUNICODE
(
"gc"
));
...
...
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