What's better about Ruby than Python?
mis6 at pitt.edu
Tue Aug 19 00:01:38 CEST 2003
"John Roth" <newsgroups at jhrothjr.com> wrote in message
news:<vk1c89jvdjepa4 at news.supernews.com>...
> 3. Not having to write "self" in the method definition. This falls out of
> item 2: since every function/method has an instance, there's no need to
> declare it. I've thought of writing a PEP for this one.
Out of curiosity: how does Ruby manages inner classes like this?
print c.x.a # =>1
print c.b # =>2
More information about the Python-list