[New-bugs-announce] [issue7069] inspect.isabstract to return boolean values only

Gabriel Genellina report at bugs.python.org
Tue Oct 6 06:32:42 CEST 2009

New submission from Gabriel Genellina <gagsl-py2 at yahoo.com.ar>:

Currently, inspect.isabstract() may return an integer like 1048576 
instead of True, or 0 instead of False.

Although technically correct, no other isXXX function behaves that way; 
also, isgeneratorfunction() uses a similar code construct but casts the 
result into a boolean.

The attached patch makes inspect.isabstract() return a boolean value 

components: Library (Lib)
files: inspect.diff
keywords: patch
messages: 93631
nosy: gagenellina
severity: normal
status: open
title: inspect.isabstract to return boolean values only
type: behavior
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file15052/inspect.diff

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list