Message241530
On Sun, Apr 19, 2015 at 9:01 PM, Eric Snow <report@bugs.python.org> wrote:
> Finally, instead of changing callable, why not use a metaclass that does
> the right thing? I believe MagicMock does something along those lines.
>
What would be the "right thing"? AFAIK this cannot be achieved with a
metaclass, since the check in `callable` just does a dumb check for
`x->ob_type->tp_call`. Seriously, if you know a way to make
`x->ob_type->tp_call` run any python code please let me know :-)
Thanks,
-- Ionel Cristian Mărieș, http://blog.ionelmc.ro |
|
Date |
User |
Action |
Args |
2015-04-19 18:28:19 | ionelmc | set | recipients:
+ ionelmc, terry.reedy, belopolsky, christian.heimes, r.david.murray, Claudiu.Popa, ethan.furman, eric.snow, llllllllll, jedwards |
2015-04-19 18:28:19 | ionelmc | link | issue23990 messages |
2015-04-19 18:28:19 | ionelmc | create | |
|