advice on programming style: is multiple inheritance bad?
Michael Hudson
mwh at python.net
Thu Feb 5 07:29:20 EST 2004
Uwe Mayer <merkosh at hadiko.de> writes:
> Michael Hudson wrote:
>
> > Uwe Mayer <merkosh at hadiko.de> writes:
> >
> >> BTW: when doing m.i. you can't mix new-style and old-style objects, or
> >> else Python exits with a Segmentation Fault. :)
> >
> > Uhh, really? Example please.
>
> Seems only to occur in connection with Qt. :(
Ah, good, not a problem I can fix <wink>.
> Code as the one below, inheriting from some Qt Widget and using
> m.i. with new-style classes cause a Segmentation Fault on my
> machine:
Weird. I take it you've reported this to the PyQT folks?
Cheers,
mwh
--
7. It is easier to write an incorrect program than understand a
correct one.
-- Alan Perlis, http://www.cs.yale.edu/homes/perlis-alan/quotes.html
More information about the Python-list
mailing list