recognizing empty iterators

Steven Taschuk staschuk at telusplanet.net
Mon Jul 21 21:06:55 EDT 2003


Quoth Michele Simionato:
> [...] In other words I am looking for an
> "isempty" function to use in "if" statements such as
> 
> if isempty(iterator):
>    do_something()
> 
> without side effects. [...]

I don't have anything substantial to add to others' posts, but I
wonder: under what circumstances do you want to do this?

-- 
Steven Taschuk                                7\ 7'Z {&~         .
staschuk at telusplanet.net                        Y r          --/hG-
                                            (__/ )_             1^1`





More information about the Python-list mailing list