[Python-ideas] hookable assertions - to support testing utilities and debugging
Ronny Pfannschmidt
opensource at ronnypfannschmidt.de
Thu Feb 19 14:41:21 CET 2015
the idea is to call the method with the assertionerror instance
so instead of directly doing a raise theerror,
python would call __raise_assertion__(theerror)
this composes nicely with the proposal for introspectable assertions
On Thursday, February 19, 2015 1:54:06 PM CEST, Antoine Pitrou wrote:
> On Thu, 19 Feb 2015 08:25:34 +0100
> Ronny Pfannschmidt
> <opensource at ronnypfannschmidt.de> wrote:
>>
>> Hi,
>>
>> the idea is to have the assert statement call a global method,
>> just like import does
>
> How would that work? Does it give the AST to the global method?
> Something else?
>
> Regards
>
> Antoine.
>
>
More information about the Python-ideas
mailing list