Why Error is derived from EnvironmentError in shutil.py?

Peng Yu pengyu.ut at gmail.com
Wed Nov 11 23:46:34 EST 2009


I see Error is derived from EnvironmentError in shutil.py.

class Error(EnvironmentError):
    pass

I'm wondering why EnvironmentError can not be raised directly. Why
Error is raised instead?



More information about the Python-list mailing list