Message358059
I am not sure about the new name. "re" is an abbreviation, so if include it in the exception name it should be "RE". I am not sure what name is better: RECompileError, REParseError, RESyntaxError, REError, CompileError, ParseError, SyntaxError or Error.
json raises JSONDecodeError, ElementTree raises ParseError, other xml modules raise ExpatError, csv raises Error, configparser raises subclasses of Error.
Many modules (at least 18: aifc, binhex, concurrent.futures, configparser, copy, cvs, ftplib, locale, mailbox, shutil, sqlite, sunau, test.support, uu, wave, webbrowser, xdrlib, xmlrpc.client) have an exception named just Error for module-specific errors. |
|
Date |
User |
Action |
Args |
2019-12-09 07:32:54 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, gregory.p.smith, ezio.melotti, mrabarnett, mbussonn |
2019-12-09 07:32:54 | serhiy.storchaka | set | messageid: <1575876774.47.0.446740161048.issue38981@roundup.psfhosted.org> |
2019-12-09 07:32:54 | serhiy.storchaka | link | issue38981 messages |
2019-12-09 07:32:54 | serhiy.storchaka | create | |
|