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 loewis
Recipients amaury.forgeotdarc, docs@python, loewis, nemeskeyd
Date 2012-09-06.11:26:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Dávid: Another (similar) example is the Python for loop. In it's original form, it would increase an index and invoke __getitem__ until that *raised* IndexError. In the current definition, it converts the iterated-over object into an iterator, and keeps calling .next until that *raises* StopIteration.

So raising an exception to indicate that something is finished is an established Python idiom.

In any case, I still think adding StopParser is a useful addition, in particular since that would also allow giving True as the "resumable" argument. Any such change needs to be accompanied by also exposing XML_ResumeParser, and possibly XML_GetParsingStatus.

Since we all agree that this is not an important change, I don't mind keeping this issue around until someone comes along to contribute code for it.
Date User Action Args
2012-09-06 11:26:30loewissetrecipients: + loewis, amaury.forgeotdarc, docs@python, nemeskeyd
2012-09-06 11:26:29loewissetmessageid: <>
2012-09-06 11:26:29loewislinkissue15775 messages
2012-09-06 11:26:28loewiscreate