This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author flox
Recipients Arfrever, effbot, eli.bendersky, ezio.melotti, flox, georg.brandl
Date 2012-02-26.12:29:30
SpamBayes Score 6.347417e-09
Marked as misclassified No
Message-id <1330259371.76.0.546520713334.issue14007@psf.upfronthosting.co.za>
In-reply-to
Content
I understand the point about compatibility.
However it is slightly different here, because the method is already deprecated in Python 2.7 and 3.2, with a warning in the documentation and a DeprecationWarning at runtime.
This method was never available in the C version, and the documentation is clear about the recommended way of writing a custom doctype handler.
Arguably, it is not the most popular feature of ElementTree.

I am not opposed to adding the deprecated method in the C implementation, but it will need someone to do the patch, taking care of raising the deprecation warning correctly, and taking care of the case where XMLParser is subclassed. Is it worth the hassle?


Please not that contrary to what is stated in the first message (msg153328), the doctype() method is not defined on the default TreeBuilder (Python) class. The documentation suggests to add it on custom TreeBuilder implementations.
History
Date User Action Args
2012-02-26 12:29:31floxsetrecipients: + flox, effbot, georg.brandl, ezio.melotti, Arfrever, eli.bendersky
2012-02-26 12:29:31floxsetmessageid: <1330259371.76.0.546520713334.issue14007@psf.upfronthosting.co.za>
2012-02-26 12:29:31floxlinkissue14007 messages
2012-02-26 12:29:30floxcreate