Re: Can pdb be set to break on warnings?

2006-10-11 Thread LorcanM
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

Re: Can pdb be set to break on warnings?

2006-10-11 Thread LorcanM
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

Can pdb be set to break on warnings?

2006-10-11 Thread LorcanM
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

Re: Can I inherit member variables?

2006-09-22 Thread LorcanM
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

Re: Can I inherit member variables?

2006-09-21 Thread LorcanM
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

Re: Can I inherit member variables?

2006-09-21 Thread LorcanM
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,