added a method which returns all the stuff in an iterator

This commit is contained in:
David Halter
2012-08-10 18:23:01 +02:00
parent 9b80dab77b
commit 7fc13bde48
3 changed files with 52 additions and 4 deletions

View File

@@ -202,3 +202,11 @@ lst.append({})
#? dict() int() float() str()
lst[0]
# should work with tuple conversion, too.
#? dict() int() float() str()
tuple(lst)[0]
# but not with an iterator
#?
iter(lst)[0]