-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document strpath
attribute of LocalPath
object
#187
Comments
it shouldnt be used to begin with |
pytest uses it: https://github.com/pytest-dev/pytest/search?q=strpath&unscoped_q=strpath It has one benefit over >>> # python 2
>>> local.LocalPath(u'bar').strpath
u'/private/tmp/py/bar'
>>> # python 3
>>> LocalPath(b'foo').strpath
b'/private/tmp/py/foo' |
@asottile pytest will completely remove all internal py.path.local usage in the next few months |
once thats done we will deprecate all local path based apis ^^ |
@asottile on a extra note - py.path.local is unreasonably unaware of unicode vs bytest, its at best irresponsible to rely on it for that distinction |
Sure, but it's going to be incredibly difficult to remove due to |
oh, we won't remove it, just deprecate it ^^ |
In the meantime (especially since it's used) can we improve this from a public undocumented attribute to a documented one? |
as long as the broken fundamentals of it are documented as well |
seems even |
im not exactly surprised, im going to be really happy once its gone ^^ |
lots of code uses this attribute, but it is not documented
how do I convince the sphinx docs to include this 😆
(note that it is included for
svnwc
)Originally noticed here
The text was updated successfully, but these errors were encountered: