MCPcopy Index your code
hub / github.com/python/cpython / iter_integer_formats

Function iter_integer_formats

Lib/test/test_struct.py:25–30  ·  view source on GitHub ↗
(byteorders=byteorders)

Source from the content-addressed store, hash-verified

23NAN = float('nan')
24
25def iter_integer_formats(byteorders=byteorders):
26 for code in integer_codes:
27 for byteorder in byteorders:
28 if (byteorder not in ('', '@') and code in ('n', 'N')):
29 continue
30 yield code, byteorder
31
32def string_reverse(s):
33 return s[::-1]

Callers 3

test_calcsizeMethod · 0.85
test_integersMethod · 0.85
test_1530559Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…