Larry Hastings added the comment:

> > Also also, I remember specifically that the isinstance(type) code
> > would fail builtin classes.
>
> Could you please find an example of this?

This was during the development of the original feature.  I changed the if 
statement for the from_builtin() call so it'd accept type objects too.  But it 
never got a chance to see any, because the check for type objects above it 
would see that it was a type, see that it was a builtin type, and raise an 
exception.  That's why I moved the if statement with the from_builtin() call to 
the top of the function, so it would get the first chance to examine the 
callable.

This was just historical context, and I'm sure you already solved the problem 
in an equivalent way.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20473>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to