Inheritance and name clashes

Steven D'Aprano steve-REMOVE-THIS at cybersource.com.au
Mon Oct 4 04:08:44 CEST 2010


On Sun, 03 Oct 2010 15:04:17 -0700, Rock wrote:

> Thanks for the reply. No, I was just working with a normal library class
> which was supposed to be derived. So that's what I did, but in the
> process I found myself needing to create an instance variable and it
> dawned on me: "how do I know I'm not clobbering something here???" 

Because then all your tests will start failing.

What's that you say? You have no tests? Then how do you know your program 
does what you think it does?



[...]
> That was a big disappointment with Python for sure. Somehow PHP makes me
> feel a little safer, in that respect at least.

Oh my, that's hilarious! Nice one! PHP feels safer, *grins like a loon*



-- 
Steven



More information about the Python-list mailing list