How "return" no return ?

Ximo elrei69 at yahoo.es
Thu May 12 11:48:05 EDT 2005


I am doing a interpret of lines and it show me a prompt, and I want if I 
write a declaration as "int a" my progrtam return de prompt and nothing 
more, for exemple:

>>> 2+2
4
>>> int a
>>>

Then I'm finding that de function which execute "int a" return me nothing, 
and no

>>> int a
None
>>>



"Joseph Garvin" <k04jg02 at kzoo.edu> escribió en el mensaje 
news:mailman.472.1115911936.29826.python-list at python.org...
> Ximo wrote:
>
>>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
>>
>>
>>
>>
> Returning None is the same as returning nothing. What exactly are you
> trying to do? 





More information about the Python-list mailing list