Next: 4.4 Mapping for Strings Up: 4. OMG IDL to Previous: 4.2 Mapping for Modules

# 4.3 Mapping for Basic Data Types

Fnorb currently supports all CORBA 2.0 data types. Future releases will add support for the new CORBA 2.1 data types such as ```long long`'' and ```wchar`'' etc. The mapping for IDL basic data types is given in the following table. As there are no type names for built-in Python types, the Python equivalent is given as the result of applying the built-in method `type()`. For the boolean type two predefined values `CORBA.TRUE` and `CORBA.FALSE` are available.

IDL | Python Type
`boolean` | `<type 'int'>`
`char` | `<type 'string'>` (of length 1)
`double` | `<type 'float'>`
`float` | `<type 'float'>`
`long` | `<type 'int'>`
`long long` | `<type 'long'>`
`octet` | `<type 'int'>`
`short` | `<type 'int'>`
`unsigned long` | `<type 'long'>`
`unsigned long long` | `<type 'long'>`
`unsigned short` | `<type 'int'>`