[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 added the comment: > What about AbstractPath instead of _PurePath ? I will use this, thanks. -- ___ Python tracker <https://bugs.python.org/issu

[issue24132] Direct sub-classing of pathlib.Path

2018-03-27 Thread qb-cea
qb-cea 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 proper test. I will try to

[issue24132] Direct sub-classing of pathlib.Path

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

[issue24132] Direct sub-classing of pathlib.Path

2018-01-31 Thread qb-cea
Change by qb-cea : -- nosy: +qb-cea ___ Python tracker <https://bugs.python.org/issue24132> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

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

2018-01-26 Thread qb-cea
qb-cea added the comment: Typo in the code of the previous comment: - __slots__ = ("new_attr",) + __slots__ = ("_new_attr",) -- type: -> behavior ___ Python tracker <https://

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

2018-01-25 Thread qb-cea
New submission from qb-cea : 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 errno import ENODATA from os