serge-sans-paille / pythran

Ahead of Time compiler for numeric kernels
https://pythran.readthedocs.io
BSD 3-Clause "New" or "Revised" License
2.01k stars 193 forks source link

Fix filtering of empty sequence #2106

Closed serge-sans-paille closed 1 year ago

serge-sans-paille commented 1 year ago

As a side effect, syndicate code between builtins.filter iterator and itertools.ifilter iterator, as they basically where the same (itertools.ifilter no longer exist in python3...)