def IsPrimitiveType(obj):
 return (isinstance(obj, types.bool) or isinstance(obj, types.byte) or isinstance(obj, types.short) or isinstance(obj, six.integer_types) or isinstance(obj, types.double) or isinstance(obj, types.float) or isinstance(obj, six.string_types) or isinstance(obj, types.PropertyPath) or isinstance(obj, types.ManagedMethod) or isinstance(obj, types.datetime) or isinstance(obj, types.URI) or isinstance(obj, type))

def IsPrimitiveType ( obj ) : return ( isinstance ( obj , types . bool ) or isinstance ( obj , types . byte ) or isinstance ( obj , types . short ) or isinstance ( obj , six . integer_types ) or isinstance ( obj , types . double ) or isinstance ( obj , types . float ) or isinstance ( obj , six . string_types ) or isinstance ( obj , types . PropertyPath ) or isinstance ( obj , types . ManagedMethod ) or isinstance ( obj , types . datetime ) or isinstance ( obj , types . URI ) or isinstance ( obj , type ) )
see if the passed in type is a primitive type .