3 ms·
It is sometimes hard to justify a dependency - many of toolz/fn.py/funcy functions are not hard to write manually. The great thing about toolz is its https://g
by kmike84 11y ago
It is sometimes hard to justify a dependency - many of toolz/fn.py/funcy functions are not hard to write manually.
The great thing about toolz is its https://github.com/pytoolz/cytoolz https://github.com/pytoolz/cytoolz counterpart which provides an optimized implementation of toolz. It is useful when you have a bottleneck in Python code - e.g. run several functions (functoolz.juxt), merge dictionaries (dicttooz.merge), etc. With cytoolz the code becomes prettier and faster, not only prettier, so it is easier for cytoolz to sneak in.
- mrocklin 11y agoInteresting. What are your thoughts on the costs of dependencies? What about toolz makes you hesitate to depend on it?