Nils Kattenbeck <nilskem...@gmail.com> added the comment:
A good alternative would be to use pathlib.Path. The only downside would be that one has to manually handle `-` but besides that it solves most problems. Still the fact that file descriptors are kept open should be added as a warning to the docs ---------- nosy: +Nils Kattenbeck _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue13824> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com