Why not 3.__class__ ?

Martin von Loewis loewis at informatik.hu-berlin.de
Tue Oct 9 23:22:11 CEST 2001

Markus Jais <info at mjais.de> writes:

> it would be more consise.
> in Ruby, everything is an object and I can invoke methods on everything
> with object.method

In Python, everything is an object and you can invoke everything with
object . method (this includes the literal 3).


More information about the Python-list mailing list