mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Getting rid of cPickle. Mmm, feels good!
This commit is contained in:
parent
be6fe5476c
commit
99603b0c1e
22 changed files with 38 additions and 5846 deletions
|
@ -58,7 +58,7 @@ def NamedTuple(typename, s):
|
|||
|
||||
if __name__ == '__main__':
|
||||
# verify that instances are pickable
|
||||
from cPickle import loads, dumps
|
||||
from pickle import loads, dumps
|
||||
Point = NamedTuple('Point', 'x y')
|
||||
p = Point(x=10, y=20)
|
||||
assert p == loads(dumps(p))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue