Join Nostr
2024-12-13 02:17:36 UTC

Paul Hoffman on Nostr: #python friends: pathlib has inherited the functionality of lots of things from os ...

#python friends: pathlib has inherited the functionality of lots of things from os and os.path, but not from tempfile. Shouldn't there be something like Path.mkstemp() and Path.mkdtemp() or, at a minimum, Path.gettempdir()? It's not hard to do this as a two-step, but it just seems like it should have been there by now.