raise None

Johannes Bauer dfnsonfsduifb at gmx.de
Thu Dec 31 11:17:56 EST 2015


On 31.12.2015 01:09, Steven D'Aprano wrote:

> Obviously this doesn't work now, since raise None is an error, but if it did
> work, what do you think?

I really like the idea. I've approached a similar problem with a similar
solution (also experimented with decorators), but the tracebacks really
are unintuitive.

Unless I missed something, this seems like a nice feature.

Cheers,
Johannes

-- 
>> Wo hattest Du das Beben nochmal GENAU vorhergesagt?
> Zumindest nicht öffentlich!
Ah, der neueste und bis heute genialste Streich unsere großen
Kosmologen: Die Geheim-Vorhersage.
 - Karl Kaos über Rüdiger Thomas in dsa <hidbv3$om2$1 at speranza.aioe.org>



More information about the Python-list mailing list