Hacker News new | past | comments | ask | show | jobs | submit login

The move of reduce to functools makes sense. But it's also inconsistent. map and filter should also be in the functools package tools right alongside partial and reduce. But instead, they're in __builtins__ because .... they're more popular I guess?



I'd actually be OK if map and filter were also in the functools package, but the only way to be consistent while maintaining backwards compatibility is going from the functools package to built-in.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: