MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / picklers

Function picklers

lib/sqlalchemy/testing/util.py:61–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59
60
61def picklers():
62 nt = namedtuple("picklers", ["loads", "dumps"])
63
64 for protocol in range(-2, pickle.HIGHEST_PROTOCOL + 1):
65 yield nt(pickle.loads, lambda d: pickle.dumps(d, protocol))
66
67
68def unpickle_in_subprocess(obj, code):

Callers 15

test_pickle_quoteMethod · 0.90
test_pickle_typesMethod · 0.90
test_pickle_typesMethod · 0.90
test_pickleMethod · 0.90
test_serializeMethod · 0.90
test_pickleMethod · 0.90
test_pickleMethod · 0.90

Calls 1

dumpsMethod · 0.45

Tested by 15

test_pickle_quoteMethod · 0.72
test_pickle_typesMethod · 0.72
test_pickle_typesMethod · 0.72
test_pickleMethod · 0.72
test_serializeMethod · 0.72
test_pickleMethod · 0.72
test_pickleMethod · 0.72