New submission from Gautier Portet:

When using xml.sax.make_parser(), there is a potential problem with
the parser_list default value. 
If another module used a default value, like the problematic parser from PyXML, 
your module will also use it as default parser.

You should change this:
   def make_parser(parser_list = []):

by this :
   def make_parser(parser_list = None):

And change the following code accordingly.

BTW, I fixed by problem by simply using xml.sax.make_parser([])

----------
components: XML
messages: 250303
nosy: Gautier Portet
priority: normal
severity: normal
status: open
title: xml.sax.make_parser makes bad use of parser_list argument default value
type: behavior

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25040>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to