[issue14588] PEP 3115 compliant dynamic class creation
Nick Coghlan
report at bugs.python.org
Thu Apr 19 00:09:22 CEST 2012
Nick Coghlan <ncoghlan at gmail.com> added the comment:
I thought about that, and I'd prefer a dedicated dictionary to avoid questions of name conflicts.
Wrapping the keyword args in a dict() call is still pretty clean:
C = operator.build_class('C', (A, B), dict(metaclass=MyMeta))
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14588>
_______________________________________
More information about the Python-bugs-list
mailing list