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 serhiy.storchaka
Recipients serhiy.storchaka
Date 2012-06-27.09:27:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1340789239.97.0.934534609374.issue15203@psf.upfronthosting.co.za>
In-reply-to
Content
Since many of os functions were polymorphic in its first argument (path or fd), the logical continuation is to add a (path, dir_fd) pair as yet one case of this argument. In any case dir_fd is incopatible with fd. This simplifies the code of certain functions which takes patch and dir_fd and pass them to lower level without changes, or that use same patch and dir_fd in calls of several functions. This freely adds support of dir_fd to many functions, such as os.path.isdir. This solves the problem of naming multiple dir_fd arguments (src_dir_fd/dst_dir_fd looks ugly). This saves a pre-3.3 signature of some functions, which will facilitate the use of decorators and improve compatibility with alternative implementations.
History
Date User Action Args
2012-06-27 09:27:20serhiy.storchakasetrecipients: + serhiy.storchaka
2012-06-27 09:27:19serhiy.storchakasetmessageid: <1340789239.97.0.934534609374.issue15203@psf.upfronthosting.co.za>
2012-06-27 09:27:19serhiy.storchakalinkissue15203 messages
2012-06-27 09:27:19serhiy.storchakacreate