Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e551cef

Browse filesBrowse files
author
Anselm Kruis
committed
merge 3.5-slp (Stackless python#128, pickling of module stackless)
2 parents eae6aae + cb9a9b5 commit e551cef
Copy full SHA for e551cef

File tree

3 files changed

+8
-1
lines changed
Filter options

3 files changed

+8
-1
lines changed

‎Lib/stackless.py

Copy file name to clipboardExpand all lines: Lib/stackless.py
+1-1Lines 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

Copy file name to clipboardExpand all lines: Stackless/changelog.txt
+3Lines 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-3.5

‎Stackless/unittests/test_pickle.py

Copy file name to clipboardExpand all lines: Stackless/unittests/test_pickle.py
+4Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.