A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-September/009328.html below:

[Python-Dev] XML runtime errors?

[Python-Dev] XML runtime errors? [Python-Dev] XML runtime errors?Fredrik Lundh Fredrik Lundh" <effbot@telia.com
Wed, 13 Sep 2000 00:01:36 +0200
> [/F]
> > stoopid question: why the heck is xmllib using
> > "RuntimeError" to flag XML syntax errors?
> 
> Because it's too cheap to declare its own exception?

how about adding:

    class XMLError(RuntimeError):
        pass

(and maybe one or more XMLError subclasses?)

> > what's wrong with "SyntaxError"?
> 
> That would be the wrong exception unless it's parsing Python source
> code.

gotta fix netrc.py then...

</F>




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4