Why not 3.__class__ ?

brueckd at tbye.com brueckd at tbye.com
Tue Oct 9 17:56:36 EDT 2001


> > [snip]
> >> but to write 3.foo is something I would like to have in Python
> > [snip]
> >> It would be great, if this would be possible in Python too
> >
> > Care to elaborate on why it would be "great"? Guido's reply to Marcin
> > points out that there doesn't seem to be any usefulness to it. So.... what
> > problem would it solve or simplifiy?  What exactly would its benefit be,
> > anyway?
>
> it would be more consise.
> in Ruby, everything is an object and I can invoke methods on everything
> with object.method

Uh... that is not any different than Python, but even if it was, the
conciseness of something useless is irrelevant. :)





More information about the Python-list mailing list