This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients christian.heimes, loewis, pitrou
Date 2008-12-28.20:54:39
SpamBayes Score 7.31451e-05
Marked as misclassified No
Message-id <>
The openat() functions sound useful indeed. However I'm concerned about
the file descriptor requirment for the *at() POSIX functions. In Python
file descriptors can lead to resource leaks because developers are used
to automatic garbage collection. is the only way to get a file
descriptor to a directory. The builtin open() doesn't open directories.
Developers may think that the file descriptor is closed when the integer
object gets out of scope.

I propose the addition of opendir() for the purpose of the *at()
functions. The opendir function should return a wrapper object around
the DIR* pointer returned by opendir(). A function fileno() exposed the
file descriptor of the DIR pointer via dirfd().
Date User Action Args
2008-12-28 20:54:41christian.heimessetrecipients: + christian.heimes, loewis, pitrou
2008-12-28 20:54:41christian.heimessetmessageid: <>
2008-12-28 20:54:40christian.heimeslinkissue4761 messages
2008-12-28 20:54:39christian.heimescreate