Message243130
Summary:
Any class that derives from the ABCMeta class doesn't support keyword variable arguments as defined here :https://www.python.org/dev/peps/pep-3115/.
Expected:
If i define a simple class that derives from ABCMeta that has a kwarg the class should be created (see below
from collections import UserDict
class MyDict(UserDict, bar='baz'):
pass
dictionary = MyDict() # Expect this to create a new instance of MyDict.
Actual:
from collections import UserDict
class MyDict(UserDict, bar='baz'):
pass
dictionary = MyDict() # This call fails because UserDict inherits from ABCMeta
Traceback (most recent call last):
File "abc_meta.py", line 4, in <module>
class MyDict(UserDict, bar='baz'): |
|
Date |
User |
Action |
Args |
2015-05-13 23:46:32 | trcarden | set | recipients:
+ trcarden |
2015-05-13 23:46:32 | trcarden | set | messageid: <1431560792.95.0.495596888848.issue24183@psf.upfronthosting.co.za> |
2015-05-13 23:46:32 | trcarden | link | issue24183 messages |
2015-05-13 23:46:32 | trcarden | create | |
|