[Python-bugs-list] [ python-Bugs-475327 ] type() produces incorrect error msg (original) (raw)

noreply@sourceforge.net noreply@sourceforge.net
Fri, 26 Oct 2001 08:13:40 -0700


Bugs item #475327, was opened at 2001-10-26 08:13 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=105470&aid=475327&group_id=5470

Category: Python Interpreter Core Group: Python 2.2 Status: Open Resolution: None Priority: 5 Submitted By: Neal Norwitz (nnorwitz) Assigned to: Nobody/Anonymous (nobody) Summary: type() produces incorrect error msg

Initial Comment: type() takes 1 or 3 arguments, but the error msg is wrong:

type(1) <type 'int'> type('1', (), {}) <class '__main__.1'> type('1', ()) Traceback (most recent call last): File "", line 1, in ? TypeError: type() takes exactly 3 arguments (2 given)


You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=105470&aid=475327&group_id=5470