On Thu, Jun 17, 2004 at 11:52:57AM -0400, John Ehresman wrote:
> Gustavo J. A. M. Carneiro wrote:
> >  I think pygtk should install a log handler to turn all log messages
> >into python warnings.  Then, the pygtk programmer may use the standard
> >'warnings' module to do whatever he wishes to such warnings: hide them,
> >turn them to exceptions, show in a text/list widget, etc.
> 
> Interesting idea; I think this should be an option and maybe should be 
> the default behavior.  The patch I submitted as part of the patch to 
> create a glib module simply wraps the log_set_handler function so that a 
> Python callable can be used as the handler.

Speaking of this patch, we should start discussion on whether we want it
in for 2.4 or not. Johan (and someone else?) has expressed reservations
because he feels that most of it duplicates functionality already in the
Python standard library. I'm sure you have a good argument against that
one already :-)

Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to