getlist question

Victor Subervi victorsubervi at gmail.com
Fri Dec 25 13:15:42 EST 2009


On Fri, Dec 25, 2009 at 12:59 PM, Benjamin Kaplan
<benjamin.kaplan at case.edu>wrote:

> On Fri, Dec 25, 2009 at 12:40 PM, Victor Subervi
> <victorsubervi at gmail.com> wrote:
> >
> > It returns nothing. I believe I've stated that three times now.
>
> In Python, that's not possible. Every function returns something. If
> you think it returns nothing, it probably returns None.
>
> >>> def foo() : pass
> ...
> >>> a = foo()
> >>> print a
> None
>

Thanks. It was returning an empty set which I have logged.
beno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20091225/bd7c4b8d/attachment-0001.html>


More information about the Python-list mailing list