5 ms·
partial() is really useful and often overlooked
by efrank02 5y ago
partial() is really useful and often overlooked
- teddyh 5y agoBut it’s not a builtin. partial() is in the functools module.
- alanwreath 5y agoI’m confused on this point, isn’t functools part of the standard library? Or has this changed?
- mixmastamyk 5y agoBuilt-ins are available without import. Stdlib are available without separate install.
- selcuka 5y ago> Built-ins are available without import. That distinction is a bit muddy: >>> import os >>> type(os.scandir) <class 'builtin_function_or_method'>