Message408172
On Fri, Dec 10, 2021 at 12:03:15AM +0000, Gabriele N Tornetta wrote:
> class Side(object):
> def __getattribute__(self, name):
> ValueError(name)
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 isinstance() do not work the same way. type()
does not inspect the `__class__` attribute. |
|
Date |
User |
Action |
Args |
2021-12-10 02:36:15 | steven.daprano | set | recipients:
+ steven.daprano, rhettinger, paul.moore, r.david.murray, ethan.furman, bup, Gabriele Tornetta |
2021-12-10 02:36:15 | steven.daprano | link | issue32683 messages |
2021-12-10 02:36:15 | steven.daprano | create | |
|