[Python-Dev] Sub-claasing pathlib.Path seems impossible
Ned Deily
nad at acm.org
Tue May 5 23:18:29 CEST 2015
In article
<CAAb4jGkqyLh4EPgs2tntY1RMaDdig4wROJzX9Ek8ZepxTwq9-A at mail.gmail.com>,
Christophe Bal <projetmbc at gmail.com> wrote:
> In this post
> <http://stackoverflow.com/questions/29850801/simple-subclassing-pathlib-path-d
> oes-not-work/29854141#29854141>,
> I have noticed a problem with the following code.
[...]
> This breaks the sub-classing from Python point of view. In the post
> <http://stackoverflow.com/questions/29850801/simple-subclassing-pathlib-path-d
> oes-not-work/29854141#29854141>,
> I give a hack to sub-class Path but it's a bit Unpythonic.
In article
<CAP7+vJLkrTaVB8Bp34wWTdKX0rA+OPB1Tz+9OJKKWLQwtUPrUQ at mail.gmail.com>,
Guido van Rossum <guido at python.org> wrote:
> It does sound like subclassing Path should be made easier.
Christophe, if you want to pursue this, you should open an issue for it
on the Python bug tracker, bugs.python.org. Otherwise, it will likely
be forgotten here.
--
Ned Deily,
nad at acm.org
More information about the Python-Dev
mailing list