[issue23304] Unused Superclass in calendar.py

Serhiy Storchaka report at bugs.python.org
Wed Jan 28 22:53:03 CET 2015


Serhiy Storchaka added the comment:

I suppose that calendar.error is here for compatibility. It is an alias to ValueError, so that errors raised by the calendar module can be catched with the "except calendar.error:" statement. Making calendar.error different class will likely break user code. I am inclined to reject this patch.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23304>
_______________________________________


More information about the Python-bugs-list mailing list