Hi Thomas,
On Fri, Jul 09, 2021 at 05:54:27PM -0000, Thomas Grainger wrote: > It's been brought up a few times eg: > https://github.com/python/cpython/pull/12465 > > but I really think it's time to be re-considered. Has anything changed since the last time it was discussed? If nothing has changed, and there are no new arguments in favour of the change, why do you think the result will be any different? Why not just subclass pathlib.Path and add the method yourself? class MyPath(pathlib.Path): def json(self): ... Or for that matter, you can add an extension method to pathlib.Path: def json(self): ... pathlib.Path.json = json _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/MWTA3BGUWDT74LIFPT47TGUZZIDSB47H/ Code of Conduct: http://python.org/psf/codeofconduct/
