[Python-ideas] Please consider adding partialclass to functools
Neil Girdhar
mistersheik at gmail.com
Wed May 2 17:46:09 EDT 2018
Essentially, functools.partial is almost good enough for specifying some of
the parameters of an object's initializer, but the partial object doesn't
respond properly to issubclass. Please consider adding something like
partialclass described here:
https://stackoverflow.com/questions/38911146/python-equivalent-of-functools-partial-for-a-class-constructor
I ended up doing the same thing here:
https://stackoverflow.com/questions/50143864/is-there-a-nice-way-to-partially-bind-class-parameters-in-python/50143893#50143893
Adding functools.partialclass would be similar to the addition of
partialmethod in 3.4.
Best,
Neil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180502/d994827a/attachment.html>
More information about the Python-ideas
mailing list