def _psequence_model(klass):
 category = (u'set' if issubclass(klass, CheckedPSet) else u'list')
 record = {u'category': category, u'type': sorted((fqpn(cls) for cls in klass._checked_types))}
 further_classes = set(klass._checked_types)
 return (record, further_classes)

def _psequence_model ( klass ) : category = ( u'set' if issubclass ( klass , CheckedPSet ) else u'list' ) record = { u'category' : category , u'type' : sorted ( ( fqpn ( cls ) for cls in klass . _checked_types ) ) } further_classes = set ( klass . _checked_types ) return ( record , further_classes )
serialize a pvector or pset model to something json-encodable .