3 ms·
BDFL Guido van Rossum is not in favor of adding functional programming stuff to python. So, by fiat, functional programming is not very pythonic. :)
by sp332 12y ago
BDFL Guido van Rossum is not in favor of adding functional programming stuff to python. So, by fiat, functional programming is not very pythonic. :)
- TorKlingberg 12y agoYou are both partially right. List comprehensions are considered pythonic, and they are similar to map and filter from the FP world. However the map and filter functions themselves are somewhat unpythonic.
- GFK_of_xmaspast 12y ago"unpythonic" once again meaning "disliked by van Rossum."
- omaranto 12y agoI guess list comprehensions in Python are, as you say, similar to map and filter from the FP world, but they are even more similar to... list comprehensions from the FP world.