Show off your Python chops and compete with others
Gregory Ewing
greg.ewing at canterbury.ac.nz
Fri Nov 8 01:47:46 EST 2013
alex23 wrote:
> In [2]: import dis
> In [3]: dis.dis(foo)
> 2 0 LOAD_GLOBAL 0 (Exception)
> 3 RAISE_VARARGS 1
> 6 LOAD_CONST 0 (None)
> 9 RETURN_VALUE
>
> Seeing as we're being pedantic, the function *does* return None, it's
> just that the return value is never seen because an exception is raise.
Koan for the day:
If a man goes into the forest and never returns,
does he bring back nothing?
--
Greg
More information about the Python-list
mailing list