We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3ecd2c commit 10085c6Copy full SHA for 10085c6
1 file changed
βLib/pickletools.pyβ
@@ -2083,11 +2083,11 @@ def __init__(self, value):
2083
2084
Exercise the INST/OBJ/BUILD family.
2085
2086
->>> import random
2087
->>> dis(pickle.dumps(random.random, 0))
2088
- 0: c GLOBAL 'random random'
2089
- 15: p PUT 0
2090
- 18: . STOP
+>>> import pickletools
+>>> dis(pickle.dumps(pickletools.dis, 0))
+ 0: c GLOBAL 'pickletools dis'
+ 17: p PUT 0
+ 20: . STOP
2091
highest protocol among opcodes = 0
2092
2093
>>> from pickletools import _Example
0 commit comments