John-Mark Gurney on Nostr: Don't understand why #Python hasn't added pread/pwrite style methods to their IO ...
Don't understand why #Python hasn't added pread/pwrite style methods to their IO classes. Requiring a seek can cause issues in async/multithreading cases and it can make some code more clear.
Published at
2023-05-11 02:31:20Event JSON
{
"id": "5c5c84422f3372b88b45dcd50a3ebd645988c98668ccc49a5f57c2f955555762",
"pubkey": "e675b9ee45632dbdeddf3704bf513a17e49389bbf180ff1c32af9ded83d4ca0b",
"created_at": 1683772280,
"kind": 1,
"tags": [
[
"t",
"python"
],
[
"mostr",
"https://flyovercountry.social/users/encthenet/statuses/110347700182335024"
]
],
"content": "Don't understand why #Python hasn't added pread/pwrite style methods to their IO classes. Requiring a seek can cause issues in async/multithreading cases and it can make some code more clear.",
"sig": "a7bf9c8ef45cac8393ff6993bcd63cfc47ffe11b17805a184d03b25851123df2ef5f6d5a87a8bf4599e34904e3b8008d0d1751b68f0c9d48e297596121215418"
}