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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
749d07b9
Commit
749d07b9
authored
Jul 06, 2017
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'finally-fix'
parents
21678da9
114fe16b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
117 additions
and
0 deletions
+117
-0
Cython/Compiler/ParseTreeTransforms.py
Cython/Compiler/ParseTreeTransforms.py
+2
-0
Cython/Utility/ExtensionTypes.c
Cython/Utility/ExtensionTypes.c
+2
-0
tests/compile/finally_GH1744.pyx
tests/compile/finally_GH1744.pyx
+113
-0
No files found.
Cython/Compiler/ParseTreeTransforms.py
View file @
749d07b9
...
@@ -1655,6 +1655,8 @@ if VALUE is not None:
...
@@ -1655,6 +1655,8 @@ if VALUE is not None:
checksum
=
'0x%s'
%
hashlib
.
md5
(
' '
.
join
(
all_members_names
).
encode
(
'utf-8'
)).
hexdigest
()[:
7
]
checksum
=
'0x%s'
%
hashlib
.
md5
(
' '
.
join
(
all_members_names
).
encode
(
'utf-8'
)).
hexdigest
()[:
7
]
unpickle_func_name
=
'__pyx_unpickle_%s'
%
node
.
class_name
unpickle_func_name
=
'__pyx_unpickle_%s'
%
node
.
class_name
# TODO(robertwb): Move the state into the third argument
# so it can be pickled *after* self is memoized.
unpickle_func
=
TreeFragment
(
u"""
unpickle_func
=
TreeFragment
(
u"""
def %(unpickle_func_name)s(__pyx_type, long __pyx_checksum, __pyx_state, %(args)s):
def %(unpickle_func_name)s(__pyx_type, long __pyx_checksum, __pyx_state, %(args)s):
if __pyx_checksum != %(checksum)s:
if __pyx_checksum != %(checksum)s:
...
...
Cython/Utility/ExtensionTypes.c
View file @
749d07b9
...
@@ -69,6 +69,8 @@ static int __Pyx_setup_reduce(PyObject* type_obj) {
...
@@ -69,6 +69,8 @@ static int __Pyx_setup_reduce(PyObject* type_obj) {
PyObject
*
reduce_ex
=
NULL
;
PyObject
*
reduce_ex
=
NULL
;
PyObject
*
reduce_cython
=
NULL
;
PyObject
*
reduce_cython
=
NULL
;
if
(
PyObject_HasAttrString
(
type_obj
,
"__getstate__"
))
goto
GOOD
;
if
(
object_reduce_ex
==
NULL
)
{
if
(
object_reduce_ex
==
NULL
)
{
__Pyx_setup_reduce_GET_ATTR_OR_BAD
(
builtin_object
,
__pyx_b
,
"object"
);
__Pyx_setup_reduce_GET_ATTR_OR_BAD
(
builtin_object
,
__pyx_b
,
"object"
);
__Pyx_setup_reduce_GET_ATTR_OR_BAD
(
object_reduce
,
builtin_object
,
"__reduce__"
);
__Pyx_setup_reduce_GET_ATTR_OR_BAD
(
object_reduce
,
builtin_object
,
"__reduce__"
);
...
...
tests/compile/finally_GH1744.pyx
0 → 100644
View file @
749d07b9
# mode: compile
# This caused a "maximum recursion depth exceeded" at some point,
# see https://github.com/cython/cython/issues/1744
cdef
inline
bint
g
(
int
x
,
int
y
):
return
True
cdef
cython_bug
(
int
u
):
try
:
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
g
(
u
,
u
)
finally
:
g
(
u
,
u
)
cython_bug
(
1
)
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