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 jemfinch
Recipients
Date 2003-08-26.14:19:27
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
It's a bit frustrating not to be able to catch 
exceptions raised by re.compile with just the re 
module.  The fact that sre_constants.error is 
raised is a bit too much implementation showing 
through, IMO. 
 
Anyway, I suggest a exception be added to the re 
module that subclasses sre_constants.error for 
backwards compatibility.  So users can simply 
import re and catch re.error instead of having to 
import re and sre_constants and catch 
sre_constants.error. 
History
Date User Action Args
2007-08-23 14:16:25adminlinkissue795379 messages
2007-08-23 14:16:25admincreate