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 serhiy.storchaka
Recipients JelleZijlstra, Jim Fasarakis-Hilliard, brett.cannon, pitrou, serhiy.storchaka
Date 2017-03-21.17:25:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1490117134.73.0.584193139602.issue29847@psf.upfronthosting.co.za>
In-reply-to
Content
I don't know whether it was the intension of Antoine or just an oversight. I don't know whether it is used in the wild. But we can at least raise a TypeError for concrete classes PosixPath and WindowsPath if ignoring keyword arguments is a problem. Many extension types don't take keyword arguments, but their subclasses accept and ignore keyword arguments. For example:

>>> filter(None, [], foo=123)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: filter() does not take keyword arguments
>>> class X(filter): pass
... 
>>> X(None, [], foo=123)
<__main__.X object at 0xb6fdcacc>
History
Date User Action Args
2017-03-21 17:25:34serhiy.storchakasetrecipients: + serhiy.storchaka, brett.cannon, pitrou, JelleZijlstra, Jim Fasarakis-Hilliard
2017-03-21 17:25:34serhiy.storchakasetmessageid: <1490117134.73.0.584193139602.issue29847@psf.upfronthosting.co.za>
2017-03-21 17:25:34serhiy.storchakalinkissue29847 messages
2017-03-21 17:25:34serhiy.storchakacreate