Nice way to cast a homogeneous tuple
Lie Ryan
lie.1296 at gmail.com
Thu Aug 5 06:27:15 EDT 2010
On Wed, 28 Jul 2010 15:58:29 +0200, Ulrich Eckhardt
<eckhardt at satorlaser.com> 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
builtin
> 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
either.
More information about the Python-list
mailing list