pydash adheres to the following conventions:
- Function names use
- Any Lo-Dash function that shares its name with a reserved Python keyword will have an
_appended after it (e.g.
filterin Lo-Dash would be
callables(). This particular name difference was chosen in order to allow for the
functions.pymodule file to exist at root of the project. Previously,
v2.0.0, it was decided to move everything in
pydash/. Therefore, In to avoid import ambiguities, the
functions()function was renamed.
There are a few differences between extra callback style support:
- Lo-Dash’s property style callback form uses shallow property access while the same form in pydash uses deep property access via the deep path string.
- Pydash has an explicit shallow property access of the form
Some of pydash’s functions behave differently:
pydash.utilities.memoize()uses all passed in arguments as the cache key by default instead of only using the first argument.