Louis-Vincent Boudreault <[email protected]> added the comment:
This is not true, because the classmethod use the library shortcuts the class mro order, to prevent infinite loop inthe __new__. However, it was using __init__ before hand, we would Not have this issue Le jeu. 13 août 2020 à 15:27, Jeffrey Kintscher <[email protected]> a écrit : > > Jeffrey Kintscher <[email protected]> added the comment: > > Adding __init__() to PurePath complicates things and doesn't provide any > benefit. A subclass that calls super.__init__() ends up invoking > object.__init__(), which is perfectly fine. > > I was able to find a solution by calling type(self)() instead of > object.__new__() in most cases. I am working on a PR. > > ---------- > > _______________________________________ > Python tracker <[email protected]> > <https://bugs.python.org/issue41109> > _______________________________________ > ---------- _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue41109> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
