Re: [Python-Dev] Sub-claasing pathlib.Path seems impossible

2015-05-05 Thread Ned Deily
In article , Christophe Bal wrote: > In this post > 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 >

Re: [Python-Dev] Sub-claasing pathlib.Path seems impossible

2015-05-03 Thread Guido van Rossum
It does sound like subclassing Path should be made easier. On Sat, May 2, 2015 at 1:30 PM, Ryan Gonzalez wrote: > http://stackoverflow.com/a/29880095/2097780 > > My favorite thing about Python is that it's so easy to be evil. ;) > > > On Fri, May 1, 2015 at 2:30 PM, Christophe Bal > wrote: > >>

Re: [Python-Dev] Sub-claasing pathlib.Path seems impossible

2015-05-03 Thread Ryan Gonzalez
http://stackoverflow.com/a/29880095/2097780 My favorite thing about Python is that it's so easy to be evil. ;) On Fri, May 1, 2015 at 2:30 PM, Christophe Bal wrote: > Hello. > > In this post >

[Python-Dev] Sub-claasing pathlib.Path seems impossible

2015-05-02 Thread Christophe Bal
Hello. In this post , I have noticed a problem with the following code. from pathlib import Path > class PPath(Path): > def __init__(self, *args, **kwargs): > super().__init__(