[Tutor] Class definition confusion
Sivaram Neelakantan
nsivaram.net at gmail.com
Wed Feb 15 19:39:52 CET 2012
On Thu, Feb 16 2012,Alan Gauld wrote:
[snipped 19 lines]
> Python allows instance attributes to be added at runtime.
> In general this is a bad idea IMHO, a dictionary would probably
> be more appropriate, but there can, very occasionally, be valid
> uses for it.
Thanks for that, I kept thinking that the author had made some typos
in the book and was getting progressively confused, till I tried it at
the prompt.
sivaram
--
More information about the Tutor
mailing list