On Thu, Apr 25, 2013 at 3:29 PM, Barry Warsaw<ba...@python.org> wrote:
I just can't get over the weirdness of a class having attributes which are
actual instances of itself.
I wonder how many programmers will even notice that
this characteristic exists.
Exactly the same weirdness occurs in Java, but I
had never thought about it until this discussion
came up, and I wondered "Hmmm... seems like this
ought to happen in Java too", tried it out, and
found that it did.
--
Greg
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com