python 3000 and removal of builtin callable

Nick Coghlan ncoghlan at
Wed Jan 5 08:08:01 EST 2005

Nicolas Fleury wrote:
> Mirko Zeibig wrote:
>> This is not an option for e.g. IDEs as some functions might actually 
>> do something when called ;-) and I like `callable` for introspection.
>> Other ways would be to check for the `__call__` attribute or use 
>> several methods of the `inspect`-Module, both of which are not better 
>> than `callable` IMHO.
> I totally agree with you.  The callable function could be moved to a 
> module and be built-in, but it cannot really be removed.  Calling a 
> callable and know if an object is a callable without calling it is 
> definitely not the same thing.

For many of the builtins to be "removed" in Py3k, I believe the actual intent is 
to move them to a module (e.g. sys), with the removal being "remove from the 
builtins", not "remove from Python".


Nick Coghlan   |   ncoghlan at   |   Brisbane, Australia

More information about the Python-list mailing list