Commit 18a3e59
Anselm Kruis
Issue python#127: Fix pickling and copying of various types. Fix pickling tests.
This change is based on f5f98595c6cc63b from 2.7-slp, but it is heavily modified for Python 3.
- Pickle 'callable-iterator' objects correctly. Previously the unpickled object had the type '_stackless._wrap.callable-iterator'.
- Fix pickling of 'method-wrapper' objects. Previously pickling them caused a SystemError exception.
- Fix copy.copy() for 'callable-iterator', 'method', 'dict_keys', 'dict_values' and 'dict_items' objects. Previously the copied object had the type '_stackless._wrap....'.
- Fix Stackless pickling tests. The method StacklessTestCase.dumps() didn't pass the pickle protocol to the pickler.
- Remove dead code in prickelpit.c. The code was used in older Stackless versions.1 parent afa7916 commit 18a3e59
File tree
4 files changed
+126
-568
lines changed- Stackless
- pickling
- unittests
4 files changed
+126
-568
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
12 | 17 | | |
13 | 18 | | |
14 | 19 | | |
| |||
0 commit comments