New to python, baffled by program output
Lazareth S. Link
Lazareth at gmail.com
Fri Oct 1 08:07:26 CEST 2004
Fuzzyman <fuzzyman at gmail.com> wrote in message news:<61ool05pvjplb3tfe2efefdif4si9fbmaa at 4ax.com>...
> This is your problem.
> You're telling python to print the resultof the function options()
> When called options prints the options - but it doesn't have an
> explicit return value. This means that it returns None when it has
> finished and python duly prints that for you.
> Replace 'print options()' with just 'options()' which will just call
> the options procedure without expecting a return value.
Doh, soo simple, thanks alot Fuzzy =D
I should be more observant in the future.
More information about the Python-list