Re: How do I create user-defined warnings?

2008-06-18 Thread Andrii V. Mishkovskyi
2008/6/18 Clay Hobbs <[EMAIL PROTECTED]>: > I already know how to make user-defined exceptions, like this one: > >class MyException(Exception): >pass > > But for a module I'm making, I would like to make a warning (so it just > prints the warning to stderr and doesn't crash the

Re: How do I create user-defined warnings?

2008-06-17 Thread Hans Nowak
Clay Hobbs wrote: I already know how to make user-defined exceptions, like this one: class MyException(Exception): pass But for a module I'm making, I would like to make a warning (so it just prints the warning to stderr and doesn't crash the program). I have tried this:

How do I create user-defined warnings?

2008-06-17 Thread Clay Hobbs
I already know how to make user-defined exceptions, like this one: class MyException(Exception): pass But for a module I'm making, I would like to make a warning (so it just prints the warning to stderr and doesn't crash the program). I have tried this: class MyWarni