(original) (raw)
On 06/15/2012 11:46 AM, R. David Murray wrote:Adding a os.have\_openat seems more reasonable than adding is\_implemented 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?I feel this interface lacks civility.
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.
/arry