def proxy_object(obj):
 if (type(obj) in (list, tuple)):
  return ArrayCollection(obj)
 if isinstance(obj, dict):
  return ObjectProxy(obj)
 return obj

def proxy_object ( obj ) : if ( type ( obj ) in ( list , tuple ) ) : return ArrayCollection ( obj ) if isinstance ( obj , dict ) : return ObjectProxy ( obj ) return obj
returns a proxied representation of c{obj} conversion - c{list}: l{arraycollection} - c{dict}: l{objectproxy} - everything else: c{obj} @since: 0 .