Message289945
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> |
|
Date |
User |
Action |
Args |
2017-03-21 17:25:34 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, brett.cannon, pitrou, JelleZijlstra, Jim Fasarakis-Hilliard |
2017-03-21 17:25:34 | serhiy.storchaka | set | messageid: <1490117134.73.0.584193139602.issue29847@psf.upfronthosting.co.za> |
2017-03-21 17:25:34 | serhiy.storchaka | link | issue29847 messages |
2017-03-21 17:25:34 | serhiy.storchaka | create | |
|