{"action":"created","issue":{"url":"https://api.github.com/repos/pytest-dev/py/issues/150","repository_url":"https://api.github.com/repos/pytest-dev/py","labels_url":"https://api.github.com/repos/pytest-dev/py/issues/150/labels{/name}","comments_url":"https://api.github.com/repos/pytest-dev/py/issues/150/comments","events_url":"https://api.github.com/repos/pytest-dev/py/issues/150/events","html_url":"https://github.com/pytest-dev/py/issues/150","id":248850702,"number":150,"title":"Add parent and parents attributes","user":{"login":"mshuffett","id":1070545,"avatar_url":"https://avatars3.githubusercontent.com/u/1070545?v=4","gravatar_id":"","url":"https://api.github.com/users/mshuffett","html_url":"https://github.com/mshuffett","followers_url":"https://api.github.com/users/mshuffett/followers","following_url":"https://api.github.com/users/mshuffett/following{/other_user}","gists_url":"https://api.github.com/users/mshuffett/gists{/gist_id}","starred_url":"https://api.github.com/users/mshuffett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mshuffett/subscriptions","organizations_url":"https://api.github.com/users/mshuffett/orgs","repos_url":"https://api.github.com/users/mshuffett/repos","events_url":"https://api.github.com/users/mshuffett/events{/privacy}","received_events_url":"https://api.github.com/users/mshuffett/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-08-08T21:22:53Z","updated_at":"2017-08-10T16:39:51Z","closed_at":null,"body":"I commonly have to access the parent multiple levels above a path, but the `py.path.local` module does not seem to have a convenient way to do it.\r\n\r\nI would like to request / add two new attributes parent and parents which mirror the API of `pathlib`.\r\nhttps://docs.python.org/3/library/pathlib.html#pathlib.PurePath.parents"},"comment":{"url":"https://api.github.com/repos/pytest-dev/py/issues/comments/321606654","html_url":"https://github.com/pytest-dev/py/issues/150#issuecomment-321606654","issue_url":"https://api.github.com/repos/pytest-dev/py/issues/150","id":321606654,"user":{"login":"mshuffett","id":1070545,"avatar_url":"https://avatars3.githubusercontent.com/u/1070545?v=4","gravatar_id":"","url":"https://api.github.com/users/mshuffett","html_url":"https://github.com/mshuffett","followers_url":"https://api.github.com/users/mshuffett/followers","following_url":"https://api.github.com/users/mshuffett/following{/other_user}","gists_url":"https://api.github.com/users/mshuffett/gists{/gist_id}","starred_url":"https://api.github.com/users/mshuffett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mshuffett/subscriptions","organizations_url":"https://api.github.com/users/mshuffett/orgs","repos_url":"https://api.github.com/users/mshuffett/repos","events_url":"https://api.github.com/users/mshuffett/events{/privacy}","received_events_url":"https://api.github.com/users/mshuffett/received_events","type":"User","site_admin":false},"created_at":"2017-08-10T16:39:50Z","updated_at":"2017-08-10T16:39:50Z","body":"I've been using it pretty commonly just in my general code. The ensure\nmethod is particularly convenient. I tried to switch to pathlib but I\nwasn't happy with the codebase and found a breaking bug in the way resolve\nworked which deterred me but I helped to get that fixed so it is probably\nusable now.\n\nThanks for letting me know. If it isn't going to be developed much in the\nfuture I'll probably move away from it.\n\nOn Wed, Aug 9, 2017, 12:46 AM Florian Bruhin <notifications@github.com>\nwrote:\n\n> How are you using py.path? FWIW, we plan to replace it by pathlib in\n> pytest in the long run, and at that point, it'll most likely not see much\n> new development anyways.\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/pytest-dev/py/issues/150#issuecomment-321151586>, or mute\n> the thread\n> <https://github.com/notifications/unsubscribe-auth/ABBV0dGot-yHcunZVBnpeiU_yR-DCE9Dks5sWTmxgaJpZM4OxT7P>\n> .\n>\n"}}
{"actor":{"display_login":"mshuffett"}}