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.

作者 neologix
收信人 Trundle, draghuram, eric.araujo, giampaolo.rodola, neologix, pitrou, r.david.murray, tarek, techtonik, vstinner
日期 2011-12-23.15:53:56
SpamBayes Score 3.2948594e-10
Marked as misclassified
Message-id <1324655637.21.0.542781097972.issue8828@psf.upfronthosting.co.za>
In-reply-to
内容
I'd prefer an optional flag to rename() too.
I really don't like having different functions that achieve the same thing.
It's not obvious to infer from 'replace' its real intent, since it
doesn't match any standard syscall/library.
Ideally, this should be made an option to rename(), especially since
on Unix this will just perform a standard rename.
Another advantage of options over new functions is that it reduces
boilerplate code (i.e. argument parsing, addition to posix_methods,
repeating OS idiosyncrasies/conditional compilation blocks, docstring,
documentation block...).
But I remember Martin thinks that the os module should just be a thin wrapper around underlying syscalls/libraries (but we already have listdir() and friends).
历史
日期 用户 动作 参数
2011-12-23 15:53:57neologix修改recipients: + neologix, pitrou, vstinner, draghuram, techtonik, giampaolo.rodola, tarek, eric.araujo, r.david.murray, Trundle
2011-12-23 15:53:57neologix修改messageid: <1324655637.21.0.542781097972.issue8828@psf.upfronthosting.co.za>
2011-12-23 15:53:56neologix链接issue8828 messages
2011-12-23 15:53:56neologix创建