is_primitive

asdf.util.is_primitive(value)[source]

Determine if a value is an instance of a “primitive” type.

Parameters

value : object

the value to test

Returns

bool

True if the value is primitive, False otherwise