Commit 749d07b9 authored by Robert Bradshaw's avatar Robert Bradshaw

Merge branch 'finally-fix'

parents 21678da9 114fe16b
...@@ -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:
......
...@@ -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__");
......
# 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)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment