UserLinux chooses Python as "interpretive language" of choice

Mel Wilson mwilson at the-wire.com
Sun Dec 21 19:37:56 EST 2003


In article <slrnbuc3no.66b.grey at dmiyu.org>,
Steve Lamb <grey at despair.dmiyu.org> wrote:
>On 2003-12-21, Jarek Zgoda <jzgoda at gazeta.usun.pl> wrote:
>> Jp Calderone <exarkun at intarweb.us> pisze:
>>>   A function must return to have a return value.  When does sys.exit()
>>> return?
>
>> Something, that is of type NoneType.
>
>    He didn't say what, he said when.  Can anyone show a program that will
>evaluate the return of sys.exit() and successfully parse it?  =D

   Cute.  Every function returns something..  None if
nothing else.. except for functions that don't return.

        def v():
            raise ValueError

would be another variation on the theme.

        Regards.        Mel.




More information about the Python-list mailing list