[issue1154351] add get_current_dir_name() to os module

STINNER Victor report at bugs.python.org
Mon Sep 9 06:12:41 EDT 2019


STINNER Victor <vstinner at python.org> added the comment:

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.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue1154351>
_______________________________________


More information about the Python-bugs-list mailing list