Can any explain the datatype conversions in ACM methods?
Submitted by GeorgeS on Thu, 01/22/2009 - 07:17
I would like to understand how ACM datatypes are handled? And what datatype conversions are necessary between PRIME and Python.
ACM datatypes
As ACM objects are handled directly as python objects there is little datatype conversions necessary between PRIME and python when these objects are required as arguments to methods or are returned by theses methods. However, there is a mapping between the two systems for some ACM objects and for ordinary datatypes which you may be interested to note.
Python ACM Python
-----------------------------------
integer int integer
integer id integer
float double float
any truth value bool integer(0 or 1)