Why not 3.__class__ ?

Yukihiro Matsumoto matz at ruby-lang.org
Wed Oct 10 05:23:41 CEST 2001


"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.


More information about the Python-list mailing list