Message351403
I rejected PR 10117 which adds os.get_current_dir_name(). Copy of my comment:
https://github.com/python/cpython/pull/10117#issuecomment-529399532
The os module is thin wrappers to functions of the libc or even system calls. We don't implement heuristic using 2 variants of the same feature: there shutil module is there for that. Compare os.get_terminal_size() to shutil.get_terminal_size() for example.
I close the PR to add os.get_current_dir_name(): IMHO it's more a feature for the shutil module. |
|
Date |
User |
Action |
Args |
2019-09-09 10:12:41 | vstinner | set | recipients:
+ vstinner, loewis, hoffman, serhiy.storchaka, eryksun, Anthony Sottile, bradengroom |
2019-09-09 10:12:41 | vstinner | set | messageid: <1568023961.25.0.722365797325.issue1154351@roundup.psfhosted.org> |
2019-09-09 10:12:41 | vstinner | link | issue1154351 messages |
2019-09-09 10:12:41 | vstinner | create | |
|