Nice way to cast a homogeneous tuple

Lie Ryan lie.1296 at
Thu Aug 5 12:27:15 CEST 2010

On Wed, 28 Jul 2010 15:58:29 +0200, Ulrich Eckhardt 
<eckhardt at> wrote:
> wheres pythonmonks wrote:
> > Thanks ... I thought int was a type-cast (like in C++) so I 
assumed I
> > couldn't reference it.
> Firstly, "int" is a class. Python doesn't make a distinction 
between builtin
> types and class types like C++, where you e.g. can't derive from 
> types.

That wasn't true until recently with class and type unification. In 
some older versions of python you cannot derive from build in types 

More information about the Python-list mailing list