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 iritkatriel
Recipients Ramchandra Apte, cjw296, daniel.urban, docs@python, eric.araujo, iritkatriel, ncoghlan, terry.reedy
Date 2021-11-24.16:23:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1637770986.66.0.127389915282.issue17179@roundup.psfhosted.org>
In-reply-to
Content
This seems to have been fixed by now. I get this on 3.11:

>>> from types import new_class
>>> from datetime import datetime
>>> new_class('tdatetime', (datetime, ), kwds={'foo':'bar'})
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/iritkatriel/src/cpython-1/Lib/types.py", line 77, in new_class
    return meta(name, resolved_bases, ns, **kwds)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: tdatetime.__init_subclass__() takes no keyword arguments
History
Date User Action Args
2021-11-24 16:23:06iritkatrielsetrecipients: + iritkatriel, terry.reedy, ncoghlan, cjw296, eric.araujo, daniel.urban, docs@python, Ramchandra Apte
2021-11-24 16:23:06iritkatrielsetmessageid: <1637770986.66.0.127389915282.issue17179@roundup.psfhosted.org>
2021-11-24 16:23:06iritkatriellinkissue17179 messages
2021-11-24 16:23:06iritkatrielcreate