This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xtreak
Recipients corona10, xtreak
Date 2019-06-16.05:52:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1560664338.94.0.633120883469.issue37303@roundup.psfhosted.org>
In-reply-to
Content
file can be a positional or keyword argument. Someone might be using it as a keyword argument and this would require a deprecation period before renaming could be done.

./python.exe
Python 3.9.0a0 (heads/master:7a68f8c28b, Jun 15 2019, 21:00:05)
[Clang 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import inspect, imghdr
>>> imghdr.what(file="README.rst")
>>> imghdr.what("README.rst")
>>> inspect.signature(imghdr.what).parameters['file'].kind.description
'positional or keyword'
History
Date User Action Args
2019-06-16 05:52:18xtreaksetrecipients: + xtreak, corona10
2019-06-16 05:52:18xtreaksetmessageid: <1560664338.94.0.633120883469.issue37303@roundup.psfhosted.org>
2019-06-16 05:52:18xtreaklinkissue37303 messages
2019-06-16 05:52:18xtreakcreate