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 cjw296
Recipients cjw296
Date 2013-02-11.08:26:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1360571201.2.0.86006347662.issue17179@psf.upfronthosting.co.za>
In-reply-to
Content
>>> 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.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)
History
Date User Action Args
2013-02-11 08:26:41cjw296setrecipients: + cjw296
2013-02-11 08:26:41cjw296setmessageid: <1360571201.2.0.86006347662.issue17179@psf.upfronthosting.co.za>
2013-02-11 08:26:41cjw296linkissue17179 messages
2013-02-11 08:26:41cjw296create