[Python-checkins] r61204 - in python/trunk: Doc/library/inspect.rst Lib/inspect.py Lib/test/regrtest.py Lib/test/test_abc.py Misc/NEWS
Nick Coghlan
ncoghlan at gmail.com
Tue Mar 4 13:10:36 CET 2008
christian.heimes wrote:
> +def isabstract(object):
> + """Return true if the object is an abstract base class (ABC)."""
> + return object.__flags__ & TPFLAGS_IS_ABSTRACT
> +
A try/except catching attribute error may be an idea here :)
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
http://www.boredomandlaziness.org
More information about the Python-checkins
mailing list