This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gulopine
Recipients gulopine
Date 2011-10-08.21:53:37
SpamBayes Score 6.940631e-06
Marked as misclassified No
Message-id <1318110818.93.0.631665925826.issue13135@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-10-08 21:53:39gulopinesetrecipients: + gulopine
2011-10-08 21:53:38gulopinesetmessageid: <1318110818.93.0.631665925826.issue13135@psf.upfronthosting.co.za>
2011-10-08 21:53:38gulopinelinkissue13135 messages
2011-10-08 21:53:37gulopinecreate