[Python-ideas] Fix that broken callable builtin

Steven D'Aprano steve at pearwood.info
Sun Apr 19 21:33:15 CEST 2015


On Sun, Apr 19, 2015 at 03:38:57AM +1000, Steven D'Aprano wrote:


> However, I think *this* is a bug in callable:
[snip examples]
> I think callable() is badly broken. (Or at least *was* broken in 3.3 
> -- I don't have 3.4 handy to try it.)

Ah, the embarassment!

It turned out that I had monkey-patched callable() and was calling the 
broken monkey-patched version, not the original.

Sorry for the noise.



-- 
Steve


More information about the Python-ideas mailing list