Author projetmbc
Recipients paul.moore, pitrou, projetmbc
Date 2015-05-06.12:13:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAAb4jGkk7mvyxqPMjgZsmmoLLsnDraS+1TZapPoh=9rWKVus+w@mail.gmail.com>
In-reply-to <1430910357.51.0.369754343322.issue24132@psf.upfronthosting.co.za>
Content
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 <report@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 <report@bugs.python.org>
> <http://bugs.python.org/issue24132>
> _______________________________________
>
History
Date User Action Args
2015-05-06 12:13:25projetmbcsetrecipients: + projetmbc, paul.moore, pitrou
2015-05-06 12:13:25projetmbclinkissue24132 messages
2015-05-06 12:13:25projetmbccreate