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.

Title: type() doesn't accept bases and dict keyword arguments
Type: behavior Stage: test needed
Components: Interpreter Core Versions: Python 2.6
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: barry, georg.brandl, r.david.murray, terry.reedy
Priority: critical Keywords:

Created on 2008-10-23 09:13 by barry, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg75136 - (view) Author: Barry A. Warsaw (barry) * (Python committer) Date: 2008-10-23 09:13
According to bug 1683368, Python 3.0's object.__init__() no longer
accepts arbitrary keyword arguments.  What's new in Python 2.6 says the
same thing has been implemented in 2.6.  However, type() no longer
accepts /any/ keyword arguments, including the documented 'bases' and
'dict' keyword arguments.  This seems to be a bug.

It's not clear to me we no longer want to support type()'s documented
keyword arguments, but even if we do, we should deprecate them in 2.6
and remove them in 2.7.

The work around is fairly easy (pass positional args), but this will
still break existing code.
msg88873 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2009-06-04 10:07
2.6 has been released and out there some time, and there was no cry
about this, so I guess this can be ignored.
msg104400 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2010-04-28 02:25
Since 'pending' is not implemented, should this be 'closed'?
msg104487 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2010-04-29 11:57
Seems reasonable.
Date User Action Args
2022-04-11 14:56:40adminsetgithub: 48436
2010-04-29 11:57:52r.david.murraysetstatus: open -> closed
nosy: + r.david.murray
messages: + msg104487

2010-04-28 02:25:21terry.reedysetstatus: pending -> open
nosy: + terry.reedy
messages: + msg104400

2009-06-04 10:07:34georg.brandlsetstatus: open -> pending

nosy: + georg.brandl
messages: + msg88873

resolution: wont fix
2009-05-16 01:15:43ajaksu2settype: behavior
stage: test needed
2008-10-23 09:13:30barrycreate