Re: [issue32683] isinstance is calling ob.__getattribute__ as a fallback instead of object.__class__.__get__

Dec. 10, 2021
2:53 a.m.
On Fri, Dec 10, 2021 at 12:03:15AM +0000, Gabriele N Tornetta wrote:
You forgot to actually *raise* the exception. That will just instantiate the ValueError instance, and then immediately garbage collect it. In any case, type() and isinsance() do not work the same way. type() does not inspect the `__class__` attribute.
1195
Age (days ago)
1195
Last active (days ago)
0 comments
1 participants
participants (1)
-
Steven D'Aprano