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

Antoine Pitrou solipsis at pitrou.net
Fri Jun 15 09:53:55 CEST 2012


On Thu, 14 Jun 2012 21:43:34 -0700 Larry Hastings <larry at hastings.org> wrote:

On 06/14/2012 08:20 PM, Benjamin Peterson wrote: > 2012/6/14 Larry Hastings<larry at hastings.org>: >> Also, it's more granular than that. For example, Python now understands >> symbolic links on Windows--but only haphazardly at best. The >> "followsymlinks" argument works on Windows for os.stat() but not for >> os.chmod(). > Then indeed it's more granular than a parameter being "implemented" or > not. A parameter may have a more restricted or extended meaning on > different operating systems. (sendfile() on files for example).

If you can suggest a representation that can convey this sort of subtle complexity without being miserable to use, I for one would be very interested to see it. I suggest that "isimplemented" solves a legitimate problem in a reasonable way; I wasn't attempting to be all things to all use cases.

I don't think it solves a legitimate problem. As Benjamin pointed out, people want to know whether a functionality is supported, not whether a specific parameter is "implemented". Also, the incantation to look up that information on a signature object is definitely too complicated to be helpful.

Regards

Antoine.



More information about the Python-Dev mailing list