added a method which returns all the stuff in an iterator

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

No files matched your search

+8
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]