Please consider adding partialclass to functools
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-... I ended up doing the same thing here: https://stackoverflow.com/questions/50143864/is-there-a-nice-way-to-partiall... Adding functools.partialclass would be similar to the addition of partialmethod in 3.4. Best, Neil
On Wed, May 02, 2018 at 02:46:09PM -0700, Neil Girdhar wrote:
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. [...]
I think that ought to be an uncontroversial enough change that it can be taken to the bug tracker. I think you should just raise a feature enhancement request for 3.8 on the tracker, and link to this thread on the mailing list archives in case some discussion follows. -- Steve
Done: https://bugs.python.org/issue33419
On Wed, May 2, 2018 at 10:42 PM Steven D'Aprano
On Wed, May 02, 2018 at 02:46:09PM -0700, Neil Girdhar wrote:
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. [...]
I think that ought to be an uncontroversial enough change that it can be taken to the bug tracker. I think you should just raise a feature enhancement request for 3.8 on the tracker, and link to this thread on the mailing list archives in case some discussion follows.
-- Steve _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/
--
--- You received this message because you are subscribed to a topic in the Google Groups "python-ideas" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/python-ideas/LWGXM1U20vs/unsubscribe. To unsubscribe from this group and all its topics, send an email to python-ideas+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
On 5/3/2018 2:34 PM, Neil Girdhar wrote:
I agree with Steven. Add the functools 'experts' as nosy. And add links to the SO items.
On Wed, May 2, 2018 at 10:42 PM Steven D'Aprano
mailto:steve@pearwood.info> wrote: On Wed, May 02, 2018 at 02:46:09PM -0700, Neil Girdhar wrote: > 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. [...]
I think that ought to be an uncontroversial enough change that it can be taken to the bug tracker. I think you should just raise a feature enhancement request for 3.8 on the tracker, and link to this thread on the mailing list archives in case some discussion follows.
-- Terry Jan Reedy
Thank you. Done.
On Thu, May 3, 2018 at 5:44 PM Terry Reedy
On 5/3/2018 2:34 PM, Neil Girdhar wrote:
I agree with Steven. Add the functools 'experts' as nosy. And add links to the SO items.
On Wed, May 2, 2018 at 10:42 PM Steven D'Aprano
mailto:steve@pearwood.info> wrote: On Wed, May 02, 2018 at 02:46:09PM -0700, Neil Girdhar wrote: > 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. [...]
I think that ought to be an uncontroversial enough change that it can be taken to the bug tracker. I think you should just raise a feature enhancement request for 3.8 on the tracker, and link to this thread on the mailing list archives in case some discussion follows.
-- Terry Jan Reedy
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/
--
--- You received this message because you are subscribed to a topic in the Google Groups "python-ideas" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/python-ideas/LWGXM1U20vs/unsubscribe. To unsubscribe from this group and all its topics, send an email to python-ideas+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
participants (3)
-
Neil Girdhar
-
Steven D'Aprano
-
Terry Reedy