Ned Batchelder on Nostr: Since #Python's pathlib.Path lets you use `/` to join paths together, why not this to ...
Published at
2024-06-23 19:50:48Event JSON
{
"id": "b2e31cf14e49b88430ec5ef639770b32587db106da036791c08268412be3ecbb",
"pubkey": "3c1a5dbc82cfc12f65f6bd9e283d71bd4a6f1ca853640666cfd5c856037806b1",
"created_at": 1719172248,
"kind": 1,
"tags": [
[
"t",
"python"
],
[
"proxy",
"https://hachyderm.io/users/nedbat/statuses/112667672498423683",
"activitypub"
]
],
"content": "Since #Python's pathlib.Path lets you use `/` to join paths together, why not this to get absolute paths?\n\n abs(Path.home() / \"my_file\")\n\nhttps://discuss.python.org/t/add-floordiv-to-pathlib-path-for-strict-append/1077/6",
"sig": "6d953cc633b2b5acb468e94f7e579f6be43fa7177c1bfc443ba975815781be6a3bbd0112b4bc7a7720a9ca778adf35cdef6fecc4eb25319c9bb126fce4af532d"
}