# Make pathlib extensible

**URL:** <https://discuss.python.org/t/make-pathlib-extensible/3428>\
**Category:** Ideas\
**Created:** [February 24, 2020, 12:15am UTC](https://discuss.python.org/t/make-pathlib-extensible/3428 "2020-02-24T00:15:07Z")\
**Posts on this page:** 1\
**Showing post:** 94

<div class="post-metadata">

**Author:** ![pitrou](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/pitrou/32/28_2.png) [@pitrou](https://discuss.python.org/u/pitrou)\
**Post date:** [May 22, 2023, 1:39pm UTC](https://discuss.python.org/t/make-pathlib-extensible/3428/94 "2023-05-22T13:39:56Z")

</div>

> [@barneygale](#):
>
> However, in order to add a **public** `AbstractPath` class, I’m pretty sure we’ll need to move three methods from `PurePath` to `Path`, which effectively removes them from the `AbstractPath` interface.

What would be the resulting class hierarchy?

I think you may want an intermediate class `PureLocalPath` such that those three methods can simply be exposed on `PurePath`.

---

_[View the full topic](https://discuss.python.org/t/make-pathlib-extensible/3428)._
