[issue24132] Direct sub-classing of pathlib.Path

2020-11-18 Thread qb-cea
qb-cea added the comment: Hi, Thanks for reviving this! Feel free to reuse any code I wrote in my PR (or the whole PR itself), I do not think I will ever get around to finishing this work myself. -- ___ Python tracker <https://bugs.python.

[issue24132] Direct sub-classing of pathlib.Path

2018-03-28 Thread qb-cea
qb-cea <quentin.bou...@cea.fr> added the comment: > What about AbstractPath instead of _PurePath ? I will use this, thanks. -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue24132] Direct sub-classing of pathlib.Path

2018-03-27 Thread qb-cea
qb-cea <quentin.bou...@cea.fr> added the comment: Hi all, I made a pull request proposing a fix for this issue. There is still quite a lot to be done: - I exposed some variables (and probably methods too) that used to be hidden; - I did not update the documentation; - I did not add a

[issue24132] Direct sub-classing of pathlib.Path

2018-03-26 Thread qb-cea
Change by qb-cea <quentin.bou...@cea.fr>: -- keywords: +patch pull_requests: +5981 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue24132] Direct sub-classing of pathlib.Path

2018-01-31 Thread qb-cea
Change by qb-cea <quentin.bou...@cea.fr>: -- nosy: +qb-cea ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue24132> ___ __

[issue32665] pathlib.Path._from_parsed_parts should call cls.__new__(cls)

2018-01-26 Thread qb-cea
qb-cea <quentin.bou...@cea.fr> added the comment: Typo in the code of the previous comment: - __slots__ = ("new_attr",) + __slots__ = ("_new_attr",) -- type: -> behavior ___ Python tracker <rep...@bugs.pyth

[issue32665] pathlib.Path._from_parsed_parts should call cls.__new__(cls)

2018-01-25 Thread qb-cea
New submission from qb-cea <quentin.bou...@cea.fr>: Hi, I tried subclassing pathlib.Path and provide it with a new attribute (basically an accessor to an extended attribute). I am rather new to the concept of __slots__ and __new__() but here is how I pictured it should look: from