MCPcopy Index your code
hub / github.com/RustPython/RustPython / atomp

Function atomp

Lib/test/test_buffer.py:256–258  ·  view source on GitHub ↗

Tuple items (representing structs) are regarded as atoms.

(lst)

Source from the content-addressed store, hash-verified

254# ======================================================================
255
256def atomp(lst):
257 """Tuple items (representing structs) are regarded as atoms."""
258 return not isinstance(lst, list)
259
260def listp(lst):
261 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 1

isinstanceFunction · 0.85

Tested by

no test coverage detected