Re: Are all classes new-style classes in 2.4+?

2006-12-31 Thread Rene Fleschenberg
Isaac Rodriguez wrote: > I declare property members in both and it seems to work the exact same > way. I am using Python 2.4, and I was wondering if by default, all > classes are assumed to be derived from "object". No, they are not. It's just that the "basic functionality" seems to work the same

Re: I want to see all the variables

2006-12-30 Thread Rene Fleschenberg
johnf wrote: > Very detailed. But I was attempting to debug some code which subclassed > other code. I got a traceback that something like "no > mySubClass.__source.query() did not exist". By (strong) convention, "__" means "not to be accessed from outside the class, not even from subclasses".