Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit ca4b16a

Browse files
author
Anselm Kruis
committed
merge 3.3-slp (Stackless #128, pickling of module stackless)
2 parents 43b9010 + 2aa8771 commit ca4b16a

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

Lib/stackless.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
def __reduce__():
2020
return "stackless"
21-
def __reduce_ex_(*args):
21+
def __reduce_ex__(*args):
2222
return "stackless"
2323

2424
# Backwards support for unpickling older pickles, even from 2.7

Stackless/changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ What's New in Stackless 3.X.X?
99

1010
*Release date: 20XX-XX-XX*
1111

12+
- https://bitbucket.org/stackless-dev/stackless/issues/128
13+
Fix pickling of the module 'stackless'.
14+
1215
- https://bitbucket.org/stackless-dev/stackless/issues/127
1316
Disable the Stackless specific code for pickling 'iterator' and
1417
'callable_iterator' objects. C-Python 3.3 already pickles them.

Stackless/unittests/test_pickle.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,10 @@ def _test(self, obj, *attributes, **kw):
654654
# refer to the same objects
655655
self.assertIs(value_c, value_obj)
656656

657+
def test_module_stackless(self):
658+
# test for issue 128
659+
self.assertIs(stackless, copy.copy(stackless))
660+
657661
def test_code(self):
658662
def f():
659663
pass

0 commit comments

Comments
 (0)