Re: User-defined Exceptions: is self.args OK?

2008-04-19 Thread Gabriel Genellina
En Thu, 17 Apr 2008 19:11:36 -0300, Petr Jakeš <[EMAIL PROTECTED]> escribió: > I am trying to dig through User-defined Exceptions. chapter 8.5 in > http://docs.python.org/tut/node10.html > > > I would like to know, if is it OK to add following line to the __init__ > method of the TransitionErro

User-defined Exceptions: is self.args OK?

2008-04-17 Thread Petr Jakeš
Hi, I have posted this via google.groups, but I have discovered many of you are filtering such a postings. So this is my second try from the mail client. I am trying to dig through User-defined Exceptions. chapter 8.5 in http://docs.python.org/tut/node10.html I would like to know, if is it OK

User-defined Exceptions: is self.args OK?

2008-04-16 Thread petr . jakes . tpc
Hi, I am trying to dig through User-defined Exceptions (http:// docs.python.org/tut/node10.html chapter 8.5) is it OK to add following line to the __init__ method of the TransitionError class? self.args = (self.previous, self.next, self.message) If I do not add this argument to the clas