New submission from Timothy Cardenas:

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'):

----------
components: Library (Lib)
files: abc_meta.py
messages: 243130
nosy: trcarden
priority: normal
severity: normal
status: open
title: ABCMeta classes do not support the **kwargs standard class interface
type: behavior
versions: Python 3.2, Python 3.3, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file39364/abc_meta.py

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

Reply via email to