News for hackers. Stuff that matters.
Re:Python: copying a list the right way by Peaker on Saturday November 05, 2011 @07:49PM (#3201282)
You can't copy a generator that way.

Using list(gen) will fully consume the generator, which may be undesirable, but at least it will generate a list with the correct values.

There are no comments on this comment yet.