Author serhiy.storchaka
Recipients kristjan.jonsson, lisroach, lycantropos, r.david.murray, rhettinger, serhiy.storchaka, tim.peters, xtreak
Date 2018-09-18.10:34:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1537266882.99.0.956365154283.issue34659@psf.upfronthosting.co.za>
In-reply-to
Content
The first issue, with ignoring initial=None, is complex because Argument Clinic and the inspect module don't support optional parameters without default value. It could be possible to use optional groups, but currently Argument Clinic supports optional groups only when all parameters are positional-only. For now, the only way is getting rid from Argument Clinic.

As for pickling/copying, this task is technically difficult, it but I don't see principal problems. The code is already complex (see issue25718) and will be more complex. Since the reduce protocol doesn't support keyword arguments, we will needs to use either partial() for passing the keyword argument, or chain() for imitating it by creating an equivalent object. I can write this code.

Taking to the account the complexity of the implementation and arguments against this feature (see issue25193 and the discussion on Python-ideas), is it worth to add it?
History
Date User Action Args
2018-09-18 10:34:43serhiy.storchakasetrecipients: + serhiy.storchaka, tim.peters, rhettinger, kristjan.jonsson, r.david.murray, lisroach, xtreak, lycantropos
2018-09-18 10:34:42serhiy.storchakasetmessageid: <1537266882.99.0.956365154283.issue34659@psf.upfronthosting.co.za>
2018-09-18 10:34:42serhiy.storchakalinkissue34659 messages
2018-09-18 10:34:42serhiy.storchakacreate