You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This does sound annoying, but I'm unsure about whether there is a sensible solution on our end given the other uses of .fspath. Is there a way to prevent the PyCharm debugger from collecting all properties on the object? I imagine this can't be the only situation where forcing all properties on all objects in scope to compute leads to undesirable side effects.
@pjbull I was thinking about this case some more, and I think this supports the strategy that we want to implement #322and remove support for .fspath.
It's a convention/expectation in Python development that properties should be cheap and not have side effects, so I think we violate the principle of least surprise here by having the .fspath property refresh the cache.
How to replicate:
Alternatively:
CloudPath(...).fspath
Why: Pycharm debugger collects all properties on objects in scope, thus accessing
.fspath
which performs a cache refreshThe text was updated successfully, but these errors were encountered: