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 -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/EPXHZ54KPWUP6MAEDUEPXA2VK4SBH7EC/ Code of Conduct: http://python.org/psf/codeofconduct/