From: Fernando P. <Fer...@co...> - 2004-11-22 23:14:56
|
John Hunter schrieb: >>>>>>"Fernando" == Fernando Perez <Fer...@co...> writes: > > > >> overridden. I don't see any elegant way to do this. Any > >> ideas? > > Fernando> In [2]: sys.__excepthook__ is sys.excepthook Out[2]: > > Excellent. So if the backends define a function excepthook_backend > and matplotlib.matlab does > > if sys.__excepthook__ is sys.excepthook: > sys.excepthook = excepthook_backend > > would we be in reasonably good standing with the python gods and > others? You'd have to ask the gods directly, but it looks pretty good to me, a mere mortal :) Best, f |