Lines Matching defs:objects
839 """Utility method to verify if two objects are copies of each others.
961 # Exception objects without arguments pickled from 2.x with protocol 2
1490 # is a mystery. cPickle also suppresses PUT for objects with a refcount
2458 # Test that attribute names of pickled objects are interned when
2535 Note that binary objects that are larger than FRAME_SIZE_TARGET are not
2551 # Only short bytes and str objects should be written
2621 # A single frame for small objects between
2622 # first two large objects.
2651 # Large byte objects (dict values) intermittent with small objects
2680 objects = [(str(i).encode('ascii'), i % 42, {'i': str(i)})
2683 objects.append('0123456789abcdef' *
2686 # Protocol 4 packs groups of small objects into frames and issues
2692 self.pickler(writer, proto).dump(objects)
2699 self.assertEqual(reconstructed, objects)
2703 del objects
2905 # Yield buffer-like objects with the bytestring "abcdef" in them
3198 # Protocol 3 does not support large bytes objects.
3626 # Reset the Pickler and BytesIO objects.
3774 """Custom state setter for BBB objects
3778 allows for custom state setting behavior of BBB objects. One can think of
3854 # inside the Pickler object, that could prevent all serialized objects
3965 # state_setter is to tweak objects reduction behavior.