[Python-Dev] Re: How to specify optional support of arguments

2020年6月14日 18:16:14 -0700

Instead of a bunch of ad-hoc mechanisms for finding out about
platform-dependent arguments, maybe there should be a function
in the inspect module for testing whether a function has a given
argument. Then you could say something like
 if inspect.hasargument(glob.glob, 'dir_fd'):
 ...
--
Greg
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/EPXHZ54KPWUP6MAEDUEPXA2VK4SBH7EC/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to