News for hackers. Stuff that matters.
Re:Pattern matching accepted for Python by chriswarbo on Tuesday February 09, 2021 @08:32PM (#26084834)
List comprehensions were changed in Python 3 to avoid this, so I don't think it's quite that simple.
Re:Pattern matching accepted for Python by _nosewings_ on Tuesday February 09, 2021 @08:34PM (#26084851)
In Python 3, list comprehensions use generators behind the scenes.