[issue4761] create Python wrappers for openat() and others

Serhiy Storchaka report at bugs.python.org
Sat Mar 10 18:11:55 CET 2012

Serhiy Storchaka <storchaka at gmail.com> added the comment:

Why use a special value AT_FDCWD instead of None? It is not Pythonish. Clearly, when it is used in C, but in dynamically typed Python we are not limited to only one C-type. 

Such a large number of new functions littering the namespace. Why not just add additional arguments to existing functions? Instead 'fstatat(dirfd, path, flags=0)' let it be 'stat(path, *, dirfd=None, flags=0)' or even better 'stat(path, *, dirfd=None, followlinks=True)' (as in os.fwalk).

nosy: +storchaka

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list