This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author larry
Recipients larry, ncoghlan, python-dev, yselivanov
Date 2014-02-03.14:22:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> > 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.
Date User Action Args
2014-02-03 14:22:25larrysetrecipients: + larry, ncoghlan, python-dev, yselivanov
2014-02-03 14:22:25larrysetmessageid: <>
2014-02-03 14:22:25larrylinkissue20473 messages
2014-02-03 14:22:25larrycreate