cosmologicon / pywat

Python wats
1.22k stars 99 forks source link

"Fun with iterators" section is not a WAT #27

Closed apragacz closed 8 years ago

apragacz commented 8 years ago

The sorted function returns a list instead of an iterator. It's explicitly written in the documentation and therefore explains the behavior (you can compare lists structurally, but you can't do that obviously with the iterators without iterating them).

apragacz commented 8 years ago

Hmm, I see this one was already mentioned in #10 and #23, so I'm closing this as a duplicate.