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
23eb27c6
Commit
23eb27c6
authored
Mar 14, 2022
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '0.29.x'
parents
861cb815
2e38e238
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
tests/run/reduce_pickle.pyx
tests/run/reduce_pickle.pyx
+14
-13
No files found.
tests/run/reduce_pickle.pyx
View file @
23eb27c6
...
@@ -116,14 +116,6 @@ cdef class DefaultReduceSubclass(DefaultReduce):
...
@@ -116,14 +116,6 @@ cdef class DefaultReduceSubclass(DefaultReduce):
def
__repr__
(
self
):
def
__repr__
(
self
):
return
"DefaultReduceSubclass(i=%s, s=%r, x=%s)"
%
(
self
.
i
,
self
.
s
,
self
.
x
)
return
"DefaultReduceSubclass(i=%s, s=%r, x=%s)"
%
(
self
.
i
,
self
.
s
,
self
.
x
)
def
__eq__
(
self
,
other
):
return
(
isinstance
(
other
,
DefaultReduceSubclass
)
and
(
<
DefaultReduceSubclass
>
other
).
i
==
self
.
i
and
(
<
DefaultReduceSubclass
>
other
).
s
==
self
.
s
and
(
<
DefaultReduceSubclass
>
other
).
x
==
self
.
x
)
cdef
class
result
(
DefaultReduceSubclass
):
cdef
class
result
(
DefaultReduceSubclass
):
"""
"""
...
@@ -209,6 +201,16 @@ cdef class NoPyMembers(object):
...
@@ -209,6 +201,16 @@ cdef class NoPyMembers(object):
def
__repr__
(
self
):
def
__repr__
(
self
):
return
"%s(ii=%s, x=%s)"
%
(
type
(
self
).
__name__
,
self
.
ii
,
self
.
x
)
return
"%s(ii=%s, x=%s)"
%
(
type
(
self
).
__name__
,
self
.
ii
,
self
.
x
)
def
__eq__
(
self
,
other
):
return
(
isinstance
(
other
,
NoPyMembers
)
and
(
<
NoPyMembers
>
other
).
ii
[
0
]
==
self
.
ii
[
0
]
and
(
<
NoPyMembers
>
other
).
ii
[
1
]
==
self
.
ii
[
1
]
and
(
<
NoPyMembers
>
other
).
ii
[
2
]
==
self
.
ii
[
2
]
and
(
<
NoPyMembers
>
other
).
x
==
self
.
x
)
class
NoPyMembersPySubclass
(
NoPyMembers
):
class
NoPyMembersPySubclass
(
NoPyMembers
):
"""
"""
>>> import pickle
>>> import pickle
...
@@ -316,10 +318,9 @@ if sys.version_info[:2] >= (3, 5):
...
@@ -316,10 +318,9 @@ if sys.version_info[:2] >= (3, 5):
# Pickled with Cython 0.29.28 (using MD5 for the checksum).
# Pickled with Cython 0.29.28 (using MD5 for the checksum).
OLD_MD5_PICKLE
=
b'''
\
OLD_MD5_PICKLE
=
b'''
\
\
x80
\
x04
\
x95
t
\
x00
\
x00
\
x00
\
x00
\
x00
\
x00
\
x00
\
x8c
\
r
reduce_pickle
\
creduce_pickle
\
n
__pyx_unpickle_NoPyMembers
\
n
q
\
x00
\
\
x94
\
x8c
$__pyx_unpickle_DefaultReduceSubclass
\
x94
\
x93
\
x94
h
\
x00
\
x8c
\
x15
\
(creduce_pickle
\
n
NoPyMembers
\
n
q
\
x01
J
\
xf2
K_
\
n
(]q
\
x02
\
DefaultReduceSubclass
\
x94
\
x93
\
x94
J
\
x8e
Yi
\
x08
N
\
x87
\
x94
R
\
x94
K
\
x0b
\
x8c
\
x03
\
(K
\
x0b
KyM3
\
x05
eG?
\
xf8
\
x00
\
x00
\
x00
\
x00
\
x00
\
x00
tq
\
x03
tq
\
x04
Rq
\
x05
.
\
abc
\
x94
G?
\
xf8
\
x00
\
x00
\
x00
\
x00
\
x00
\
x00
\
x87
\
x94
b.
\
'''
'''
try
:
try
:
...
@@ -331,6 +332,6 @@ else:
...
@@ -331,6 +332,6 @@ else:
"""
"""
>>> import pickle
>>> import pickle
>>> b = pickle.loads(OLD_MD5_PICKLE)
>>> b = pickle.loads(OLD_MD5_PICKLE)
>>> b ==
DefaultReduceSubclass(i=11, s='abc'
, x=1.5) or b
>>> b ==
NoPyMembers(i=11
, x=1.5) or b
True
True
"""
"""
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