Serhiy Storchaka added the comment:

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>

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29847>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to