[Python-Dev] PEP 362 Third Revision (original) (raw)

Larry Hastings larry at hastings.org
Fri Jun 15 21:04:53 CEST 2012


On 06/15/2012 11:46 AM, R. David Murray wrote:

Adding a os.haveopenat seems more reasonable than adding isimplemented to every signature object. And more useful, as well; it provides a much more specific piece of information.

We already have "os.have_openat"; it's spelled sysconfig.get_config_var('HAVE_OPENAT'). But, assuming I land issue 14626, this leads us to:

Q: Can I use the dir_fd parameter to os.open?
A: Only if sysconfig.get_config_var('HAVE_OPENAT') is true.

Q: Can I use the fd parameter to os.utime?
A: Only if sysconfig.get_config_var('HAVE_FUTIMENS') or
sysconfig.get_config_var('HAVE_FUTIMES') is true.

I feel this interface lacks civility.

//arry/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20120615/37ae015c/attachment.html>



More information about the Python-Dev mailing list