return None

Michael Hoffman at mh391.invalid
Fri Jul 22 19:47:52 CEST 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

When you execute the statement

a = myfunction()

What do you want to be in a, if not None?
Michael Hoffman

More information about the Python-list mailing list