[Python-Dev] Re: Relaxing Unicode error handling

Martin v. Loewis martin at v.loewis.de
Sat Jan 3 12:37:37 EST 2004


Aahz wrote:

> * How does this work for library writers?

Library writers should avoid using it.
If the application uses it, libraries should not notice,
since they won't get exceptions that they should not have
gotten in the first place.

> * How does this work with threads?

It's shared across all threads, and thread-safe
(i.e. you can continue to not pass error handlers in
any thread, and the thread will use either the old or
the new error handler, not something inbetween - thanks
to the GIL).

Regards,
Martin






More information about the Python-Dev mailing list