News for hackers. Stuff that matters.
Re:Python List Comprehensions Explained Visually by icebraining on Wednesday December 02, 2015 @07:53PM (#10667013)
To make it even more clear, you can store the generator in a variable and pass it around:

    >>> x = (a*a for a in range(3))
    >>> type(x)
    <type 'generator'>

There are no comments on this comment yet.