How "return" no return ?

Tim Williams listserver at tdw.net
Thu May 12 11:42:34 EDT 2005


"Ximo" <elrei69 at yahoo.es> wrote in message
news:3ehaurF34ak0U1 at individual.net...
> Hello, I want that the return sentence don't return anything, how can I do
> it?. If i do only return it returns None, and pass don't run too.
>
> Can anyone help me?, thanks.
> XIMO
>

Just don't use a return statement at all,  or do something like

[function body]
if not val = None:
    return val
[end of function]






More information about the Python-list mailing list