Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/sqlalchemy/sqlalchemy
/ picklers
Function
picklers
lib/sqlalchemy/testing/util.py:58–62 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
56
57
58
def
picklers():
59
nt = namedtuple(
"picklers"
, [
"loads"
,
"dumps"
])
60
61
for
protocol in range(-2, pickle.HIGHEST_PROTOCOL + 1):
62
yield
nt(pickle.loads,
lambda
d: pickle.dumps(d, protocol))
63
64
65
def
random_choices(population, k=1):
Callers
15
test_pickle_quote
Method · 0.90
test_pickle_anon_label
Method · 0.90
test_pickle_types
Method · 0.90
test_pickle_td_comparator
Method · 0.90
test_pickle_types
Method · 0.90
_test_stmt_exception_pickleable
Method · 0.90
test_pickle
Method · 0.90
test_serialize
Method · 0.90
test_pickle_w_mutation
Method · 0.90
test_pickle
Method · 0.90
test_pickle
Method · 0.90
test_pickle_immuatbleprops
Method · 0.90
Calls
1
dumps
Method · 0.45
Tested by
15
test_pickle_quote
Method · 0.72
test_pickle_anon_label
Method · 0.72
test_pickle_types
Method · 0.72
test_pickle_td_comparator
Method · 0.72
test_pickle_types
Method · 0.72
_test_stmt_exception_pickleable
Method · 0.72
test_pickle
Method · 0.72
test_serialize
Method · 0.72
test_pickle_w_mutation
Method · 0.72
test_pickle
Method · 0.72
test_pickle
Method · 0.72
test_pickle_immuatbleprops
Method · 0.72