]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
SF bug #759889: Pickling of Random is broken
authorRaymond Hettinger <python@rcn.com>
Tue, 24 Jun 2003 20:29:04 +0000 (20:29 +0000)
committerRaymond Hettinger <python@rcn.com>
Tue, 24 Jun 2003 20:29:04 +0000 (20:29 +0000)
commit5f078ff7f0c6bb5086fae077379fc79729c34d2d
tree77471542e4966c70b2076b500f53014f3afc6d5d
parent663219a8cc0501791c45aa18986770c38c6430da
SF bug #759889:  Pickling of Random is broken

* Implement __reduce__() to support pickling.
* Add a test case to prove a successful roundtrip through pickle.
Lib/random.py
Lib/test/test_random.py