A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2001-March/013414.html below:

[Python-Dev] XML runtime errors?

[Python-Dev] XML runtime errors? [Python-Dev] XML runtime errors?Fred L. Drake, Jr. fdrake@acm.org
Mon, 5 Mar 2001 11:15:27 -0500 (EST)
Fredrik Lundh writes:
 > how about adding:
 > 
 >     class XMLError(RuntimeError):
 >         pass

  Looks like someone already added Error for this.

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

  And this still isn't done.  I've made changes in my working copy,
introducting a specific exception which carries useful information
(msg, filename, lineno), so that all syntax exceptions get this
information as well.


  -Fred

-- 
Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Digital Creations




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