This commit is contained in:
@@ -55,16 +55,16 @@ def sample_function(x):
|
||||
({"key": [{"nested": 1}, (2, 3)]}, "dict"),
|
||||
|
||||
# Fonctions
|
||||
(lambda x: x, "<lambda>"),
|
||||
(sample_function, "sample_function"),
|
||||
(sample_function(10), "nested"),
|
||||
(len, "len"),
|
||||
(sum, "sum"),
|
||||
(lambda x: x, "function"),
|
||||
(sample_function, "function"),
|
||||
(sample_function(10), "function"),
|
||||
(len, "builtin_function_or_method"),
|
||||
(sum, "builtin_function_or_method"),
|
||||
|
||||
# Modules
|
||||
(math, "math"),
|
||||
(sys, "sys"),
|
||||
(types.FunctionType, "FunctionType"),
|
||||
(math, "module"),
|
||||
(sys, "module"),
|
||||
(types.FunctionType, "type"),
|
||||
((i for i in range(3)), "generator"),
|
||||
(iter([1, 2, 3]), "list_iterator"),
|
||||
])
|
||||
Reference in New Issue
Block a user