Why not 3.__class__ ?

Yukihiro Matsumoto matz at ruby-lang.org
Tue Oct 9 23:23:41 EDT 2001


Hi,

"Markus Jais" <mjais at web.de> writes:

|It would be great, if this would be possible in Python too
|on the other side, I understand that this would be a huge impact
|on the language. maybe this is something for Python 3000 ?!?!

I'm not sure Python needs something like 3.method.  Python's
integers have far fewer methods than Ruby (because it uses
functional style).  And it doesn't have idioms like

  100.times {|i|
    puts i
  }

So (3).method is enough for Python.

							matz.



More information about the Python-list mailing list