]> granicus.if.org Git - python/commit
SF bug #1014215: Unspecific errors with metaclass
authorRaymond Hettinger <python@rcn.com>
Thu, 16 Sep 2004 16:41:57 +0000 (16:41 +0000)
committerRaymond Hettinger <python@rcn.com>
Thu, 16 Sep 2004 16:41:57 +0000 (16:41 +0000)
commitcfc31926774f876323e64cb13a26de0d7061be4c
tree5cebbafb0e8ddd4b43047a44830e3c66c6ff5c13
parent6543b45b0c0adfd8a91ad64997ffe507e9482b0c
SF bug #1014215:  Unspecific errors with metaclass

High level error message was stomping useful detailed messages from lower
level routines.

The new approach is to augment string error messages returned by the low
level routines.  The provides both high and low level information.  If
the exception value is not a string, no changes are made.

To see the improved messages in action, type:
   import random
   class R(random): pass
   class B(bool): pass
Python/ceval.c