return None

Roy Smith roy at panix.com
Fri Jul 22 14:08:42 EDT 2005


In article <3kcpbbFtjttlU1 at individual.net>, Ximo <elrei69 at yahoo.es> 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

What do you mean by "don't return anything", as oppossed to returning
None?  Let's say I had one of those functions, and did:

foo = noReturnValue()
print foo

what would you expect (want?) to happen?



More information about the Python-list mailing list