[New-bugs-announce] [issue17179] TypeError: type() takes 1 or 3 arguments
Chris Withers
report at bugs.python.org
Mon Feb 11 09:26:41 CET 2013
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 <report at bugs.python.org>
<http://bugs.python.org/issue17179>
_______________________________________
More information about the New-bugs-announce
mailing list