New submission from Marty Alchin <ma...@martyalchin.com>:

PEP 3115 introduced keyword arguments to class definitions and changed 
metaclasses to use them instead. Unfortunately, `type()` doesn't seem to have 
been updated to accept those keyword arguments as well. What this amounts to is 
that using `type()` as a constructor can no longer fully replicate the behavior 
of a class definition. Therefore, classes that use keyword arguments can't be 
created dynamically.

I would attempt a patch, but I don't have a development environment capable of 
compiling Python, so I wouldn't have any chance to test it.

----------
messages: 145190
nosy: gulopine
priority: normal
severity: normal
status: open
title: Using type() as a constructor doesn't support new class keyword arguments
type: feature request

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

Reply via email to