[New-bugs-announce] [issue24125] Fix for #23865 breaks docutils

Dmitry Shachnev report at bugs.python.org
Mon May 4 22:36:12 CEST 2015

New submission from Dmitry Shachnev:

Fix for issue #23865 (i.e. https://hg.python.org/cpython/rev/f7ddec2e9e93 in 2.7 branch) introduced a change for xml.sax.expatreader.ExpatParser class that makes its close() method delete _parser object.

This breaks docutils, which handles exceptions in parse() and tries to use getColumnNumber() after it fails. The log is available here: <http://mitya57.me/builds/python-docutils_0.12+dfsg-1_amd64.build>.

I believe that particular chunk should be reverted.

components: Library (Lib)
messages: 242579
nosy: doko, goodger, mitya57, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Fix for #23865 breaks docutils
versions: Python 2.7

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list