News for hackers. Stuff that matters.
Re:Python List Comprehensions Explained Visually by leni536 on Wednesday December 02, 2015 @05:30PM (#10666336)
> You don't get to play with list comprehensions, unless you're using the type that the language has decided to let you play with. If you decide to use a different type for some reason, you... can't.

You can use generator expressions and pass it to your custom type's constructor.

https://www.python.org/dev/peps/pep-0289/

There are no comments on this comment yet.