# Have a \`.realpath\` classmethod in pathlib.Path

**URL:** <https://discuss.python.org/t/have-a-realpath-classmethod-in-pathlib-path/4692>\
**Category:** Ideas\
**Created:** [July 9, 2020, 7:38pm UTC](https://discuss.python.org/t/have-a-realpath-classmethod-in-pathlib-path/4692 "2020-07-09T19:38:12Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![sinoroc](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/sinoroc/32/1607_2.png) [@sinoroc](https://discuss.python.org/u/sinoroc)\
**Post date:** [July 28, 2020, 8:09pm UTC](https://discuss.python.org/t/have-a-realpath-classmethod-in-pathlib-path/4692/19 "2020-07-28T20:09:57Z")

</div>

I also found myself in a situation where it wasn’t entirely clear what `resolve()` is supposed to do.

Would something like the following be meaningful, feasible?

```auto
Path.resolve(
    strict: bool = False,
    make_absolute: bool = True,
    resolve_symlinks: bool = True,
    expand_user: bool = False,
    expand_environment_variables: bool = False,
    # some more, maybe platform specific things
    # (Windows mount points, etc.)
)

```

Give the user the choice.

---

_[View the full topic](https://discuss.python.org/t/have-a-realpath-classmethod-in-pathlib-path/4692)._
