How to get outer class name from an inner class?

John Gordon gordon at panix.com
Tue May 8 16:08:24 EDT 2012


In <jobua0$m3f$1 at reader1.panix.com> John Gordon <gordon at panix.com> writes:

> class QuestionTooShortError(NetIDAppsError):
>     """User entered a security question which is too short."""
>     pass

> class QuestionTooLongError(NetIDAppsError):
>     """User entered a security question which is too long."""
>     pass

Oops!  These classes inherit from ApplicationException, not NetIDAppsError.

-- 
John Gordon                   A is for Amy, who fell down the stairs
gordon at panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"




More information about the Python-list mailing list