raise or not to raise [Newbie]

2007-02-03 Thread Jacol
Hello everybody! I found this: http://mail.python.org/pipermail/python-list/1999-July/006344.html My question concernings "callerFunc" and is more general what is difference between: try: raise "xyz" except "xyz": print "This is smthing" and simpl

Re: raise or not to raise [Newbie]

2007-02-03 Thread Jacol
I understand that author generated exception and than extracted the name of function from the exeption. But is any sens in using exeptions service if we have smthing simpler: just print for example? In my opinion no, it doesn't make sens. Jacek -- http://mail.python.org/mailman/listinfo/python-li

Re: Dlaczego ten destruktor nie dziala [_LONG_]

2007-02-06 Thread Jacol
Sulsa wrote: > Mam klase A po ktorej dziedziczy B i jesli w destruktorze klasy B > wywolam: > self.__class__.__bases__[0].__del__(self) > > to wszytkos jest ok, i destruktor klasy a jest wywolywany, jesli > natomiast napisze: A.__del__(self) to otrzymuje nastepujacy wyjatek: > Exception exceptio

Re: Dlaczego ten destruktor nie dziala [_LONG_]

2007-02-06 Thread Jacol
>> self.__class__.__bases__[0].__del__(self) >> Swoją drogą to nie masz litości pisząc coś takiego ;) -- http://mail.python.org/mailman/listinfo/python-list

How to detect closing of wx.Panel?

2007-02-18 Thread Jacol
Hi everybody, I have poblem with detecting closing of wx.Panel by user. How to detect that event? The wx.EVT_CLOSE event concerns wx.Frame class only. Neither Close() nor Destroy() aren't executed if the event occurs (if user close a panel). Thus extanding these both methods doesn't make sens (I'

Re: How to detect closing of wx.Panel?

2007-02-19 Thread Jacol
Morpheus wrote: > On Mon, 19 Feb 2007 01:18:11 +0000, Jacol wrote: > >> Hi everybody, >> >> I have poblem with detecting closing of wx.Panel by user. How to detect >> that event? > > Don't know why you want to do that, but you could register with