def _is_pyrsistent(obj):
 return isinstance(obj, (PRecord, PClass, PMap, PSet, PVector))

def _is_pyrsistent ( obj ) : return isinstance ( obj , ( PRecord , PClass , PMap , PSet , PVector ) )
boolean check if an object is an instance of a pyrsistent object .