Hello pje, On Thu, Jan 28, 2010 at 12:43:13PM -0500, P.J. Eby wrote: > At 11:01 AM 1/28/2010 -0600, s...@pobox.com wrote: > >> pje> If you look for a local variable in each frame containing a format >> pje> string, let's say __trace__, you could apply that format string to >> pje> a locals+globals dictionary for the frame, in place of dumping all >> pje> the locals by default.... >>
I like the idea of configuring the list of variables with using a convention like __trace__, though this requires me to specify what variables cause an exception and that would be hard? May be we could add a loglevel or something; or we keep it simple as it is now but respect __trace__ if it is there. Guido and Ian emphasize stability and I guess they are right. Unicode was one of the problems I had in mind when I implemented this: strings are properly backslash-escaped, using sys.locale. Further, if __repr__ fails, the code uses __type__. Tough, there might be problems when variables have unicode names (what hopefully never happens) or similar. Greetings, -- http://benjamin-schweizer.de/contact _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com