Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Gregory Ewing Newsgroups: comp.lang.python Subject: Re: Show off your Python chops and compete with others Date: Fri, 08 Nov 2013 19:47:46 +1300 Lines: 18 Message-ID: References: <82328ec8-7178-4a17-abfe-13d444fab9cf@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net YHttGdGHcykm7Y1JzTQrAw3hgE3+bzC/1jATKl9a/i3i5J/MeR Cancel-Lock: sha1:9f5r2LOPBs0xFJ8YONyjebpDxRc= User-Agent: Mozilla Thunderbird 1.0.5 (Macintosh/20050711) X-Accept-Language: en-us, en In-Reply-To: Xref: csiph.com comp.lang.python:58754 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