MCPcopy Index your code
hub / github.com/ipython/ipython / eval_formatter_list_comprehension_check

Function eval_formatter_list_comprehension_check

tests/test_text.py:31–34  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

29
30
31def eval_formatter_list_comprehension_check(f):
32 ns = dict(n=12)
33 s = f.format("{[n//i for i in range(1,8)]}", **ns)
34 assert s == "[12, 6, 4, 3, 2, 2, 1]"
35
36
37def eval_formatter_check(f):

Callers 2

test_eval_formatterFunction · 0.85
test_full_eval_formatterFunction · 0.85

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…