Take the 2-minute tour ×

In IronPython I can do:


where int is not a variable but rather System.Int32. I get back:

Max of int: 2137483647

Yet if I try something similar for double (System.Double), I get:

NameError: name 'double' is not defined.

Similary for char (System.Char). How come?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

See Mapping between Python builtin types and .NET types

int is not a keyword, it is a builtin type in Python, and IronPython implements it using System.Int32. Similarly float is implemented using System.Double.

double and char are not builtin types in Python.

share|improve this answer
add comment

Your Answer


