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 ionelmc
Recipients Claudiu.Popa, belopolsky, christian.heimes, eric.snow, ethan.furman, ionelmc, jedwards, llllllllll, r.david.murray, terry.reedy
Date 2015-04-19.18:28:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
On Sun, Apr 19, 2015 at 9:01 PM, Eric Snow <> 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 :-)

-- Ionel Cristian Mărieș,
Date User Action Args
2015-04-19 18:28:19ionelmcsetrecipients: + ionelmc, terry.reedy, belopolsky, christian.heimes, r.david.murray, Claudiu.Popa, ethan.furman, eric.snow, llllllllll, jedwards
2015-04-19 18:28:19ionelmclinkissue23990 messages
2015-04-19 18:28:19ionelmccreate