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 rhettinger
Recipients
Date 2004-09-13.04:18:29
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=80475

The attached patch implements an augmented error message
that preserves the traceback and detailed message while
providing a hint about the high level routine that called it.

Here's a sample run:

>>> class T(bool):
	pass


Traceback (most recent call last):
  File "<pyshell#2>", line 1, in -toplevel-
    class T(bool):
TypeError: Error when calling the metaclass bases
    type 'bool' is not an acceptable base type
History
Date User Action Args
2007-08-23 14:25:40adminlinkissue1014215 messages
2007-08-23 14:25:40admincreate