New submission from Chris Withers: >>> from types import new_class >>> from datetime import datetime >>> new_class('tdatetime', (datetime, ), kwds={'foo':'bar'}) Traceback (most recent call last): File "<console>", line 1, in <module> File "/src/Python-3.3.0/Lib/types.py", line 52, in new_class return meta(name, bases, ns, **kwds) TypeError: type() takes 1 or 3 arguments
I'm guessing ns and kwds should be combined before being passed through to meta? (meta is 'type' in this case) ---------- components: Library (Lib) messages: 181884 nosy: cjw296 priority: normal severity: normal status: open title: TypeError: type() takes 1 or 3 arguments versions: Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17179> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com