[Python-Dev] xml.parsers.expat no userdata in callback functions

Kristian Benoit kbenoit at opersys.com
Thu Aug 11 04:59:12 CEST 2005


In the C version of expat, handlers receive a void *userdata, but it is
not the case in the python version.

This means one cant parse multiple files at the same time using the same
handlers. You cant pass the context current context to the handler, you must
base your code on global variables which is not so nice.

Thanks

Please leave the cc in the mail header as I'm not subscribed to the
list.

Kristian



More information about the Python-Dev mailing list