summaryrefslogtreecommitdiffstats
path: root/Lib/pickletools.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-01-24 21:46:33 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-01-24 21:46:33 (GMT)
commitcddcf444b257478eb940c50c78eb86ef40eae16f (patch)
tree6594818ecf14ab507cd08f13e756a90693ed2637 /Lib/pickletools.py
parent3dfe55b6ff9e7a74bca94d5b95dbfafb9aa2a987 (diff)
downloadcpython-cddcf444b257478eb940c50c78eb86ef40eae16f.zip
cpython-cddcf444b257478eb940c50c78eb86ef40eae16f.tar.gz
cpython-cddcf444b257478eb940c50c78eb86ef40eae16f.tar.bz2
Merged revisions 68903,68906 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r68903 | mark.dickinson | 2009-01-24 16:40:29 +0000 (Sat, 24 Jan 2009) | 5 lines Issue #1672332: Fix unpickling of subnormal floats, which was raising ValueError on some platforms as a result of the platform strtod setting errno on underflow. ........ r68906 | mark.dickinson | 2009-01-24 21:08:38 +0000 (Sat, 24 Jan 2009) | 2 lines Issue #3657: fix occasional test_pickletools failures. ........
Diffstat (limited to 'Lib/pickletools.py')
-rw-r--r--Lib/pickletools.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/pickletools.py b/Lib/pickletools.py
index 6614df7..cfd5fcc 100644
--- a/Lib/pickletools.py
+++ b/Lib/pickletools.py
@@ -2128,11 +2128,11 @@ highest protocol among opcodes = 1
Exercise the INST/OBJ/BUILD family.
->>> import random
->>> dis(pickle.dumps(random.getrandbits, 0))
- 0: c GLOBAL 'random getrandbits'
- 20: p PUT 0
- 23: . STOP
+>>> import pickletools
+>>> dis(pickle.dumps(pickletools.dis, 0))
+ 0: c GLOBAL 'pickletools dis'
+ 17: p PUT 0
+ 20: . STOP
highest protocol among opcodes = 0
>>> from pickletools import _Example