return None
geon
geon at post.cz
Fri Jul 22 13:46:15 EDT 2005
Ximo wrote:
> Can I do a function which don't return anything?
>
> The question is that, if I do a function that have a return or without
> return, it returns always "None", but i want that it doesnt return me
> nothing
Nothing is None, or isnt?
You probably print the function, what you neednt, of course. You can just call it:
def x():
pass
print x() # calling with printing
x() # calling only
x() prints really nothing, even not None ;-)
--
geon
Vyjímka je pravidlo. Rekurzivní.
More information about the Python-list
mailing list