Christophe BAL added the comment: Hello.
I will give a real example in 5 hours after my job. I will try tomorrow a solution to ease the subclassing using another dedicazted class PathPlus, sorry for the name. The idea would be to use this new class for customization, and also to define WindowsPath and PosixPath sub-classing this new class. By default PathPlus would be an empty class. I do not know if this works well. Maybe my idea is a bad one. *Christophe BAL* *Enseignant de mathématiques en Lycée **et développeur Python amateur* *---* *French math teacher in a "Lycée" **and **Python **amateur developer* 2015-05-06 13:05 GMT+02:00 Antoine Pitrou <rep...@bugs.python.org>: > > Antoine Pitrou added the comment: > > The Path classes were not designed to be subclassable by the user. > I'm not against making subclassing easier, but someone will have to > propose a viable approach for that. > > ---------- > versions: +Python 3.5 -Python 3.4 > > _______________________________________ > Python tracker <rep...@bugs.python.org> > <http://bugs.python.org/issue24132> > _______________________________________ > ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24132> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com