Message145190
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. |
|
Date |
User |
Action |
Args |
2011-10-08 21:53:39 | gulopine | set | recipients:
+ gulopine |
2011-10-08 21:53:38 | gulopine | set | messageid: <1318110818.93.0.631665925826.issue13135@psf.upfronthosting.co.za> |
2011-10-08 21:53:38 | gulopine | link | issue13135 messages |
2011-10-08 21:53:37 | gulopine | create | |
|