Hello,
I use pdb under Linux to debug my Python code, as in:
python -m pdb myprogram.py
By default it does a postmortem of unhandled exceptions, is there a way
to get it to break on warnings?
Thanks a lot,
Lorcan.
--
http://mail.python.org/mailman/listinfo/python-list
Fredrik Lundh wrote:
> LorcanM wrote:
>
> > I use pdb under Linux to debug my Python code, as in:
> >
> > python -m pdb myprogram.py
> >
> > By default it does a postmortem of unhandled exceptions, is there a way
> > to get it to break on warni
Fredrik Lundh wrote:
> "LorcanM" wrote:
>
> >> python -m pdb -Werror myprogram.py
> >
> > It sounds like what I want, but it doesn't work for me. When I try the
> > above line of code, it replies:
> >
> > Error: -Werror does not exi
Thanks for the reply.
I think there's a basic misunderstanding about the nature of
inheritance on my side.
What I want to do is instantiate the sub class (derived class) from
within the animal class. I then expect the sub class to have inherited
some basic properties that it knows it has (weight,
Thanks a lot folks for all the help. Its a lot clearer now.
If I could summarise my original misunderstanding about inheritance:
I belived that a sub class inherited a *specific instance* of the super
class.
This is clearly not right - the misunderstanding arose as I was
instantiating the super
Thanks Bruno,
That is a more natural way to do it. The code looks a lot cleaner now.
Lorcan.
--
http://mail.python.org/mailman/listinfo/python-list