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

Function atomp

Lib/test/test_buffer.py:268–270  ·  view source on GitHub ↗

Tuple items (representing structs) are regarded as atoms.

(lst)

Source from the content-addressed store, hash-verified

266# ======================================================================
267
268def atomp(lst):
269 """Tuple items (representing structs) are regarded as atoms."""
270 return not isinstance(lst, list)
271
272def listp(lst):
273 return isinstance(lst, list)

Callers 7

_caFunction · 0.85
_faFunction · 0.85
_flattenFunction · 0.85
flattenFunction · 0.85
slice_shapeFunction · 0.85
multisliceFunction · 0.85
m_assignFunction · 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…