[issue15203] Accepting of os functions of (path, dir_fd) pair as argument

2012-06-28 Thread Nick Coghlan
Nick Coghlan added the comment: Correctly avoiding symlink attacks, which is the whole reason the POSIX *at variants and the dir_fd parameters were added, is not trivial in general. os.fwalk and shutil.rmtree went through many iterations before reaching a state where they should successfully

[issue15203] Accepting of os functions of (path, dir_fd) pair as argument

2012-06-27 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue15203] Accepting of os functions of (path, dir_fd) pair as argument

2012-06-27 Thread Larry Hastings
Larry Hastings added the comment: I dislike this and always have. I think it would look ugly and be obnoxious to use. If you really think you can get this in for 3.3, you will have to bring it up with Georg. I think your chances are about zero. -- _

[issue15203] Accepting of os functions of (path, dir_fd) pair as argument

2012-06-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue15203] Accepting of os functions of (path, dir_fd) pair as argument

2012-06-27 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : 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 funct