[Python-bugs-list] [ python-Bugs-488894 ] bad message for non-string getattr
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 04 Dec 2001 07:56:19 -0800
Bugs item #488894, was opened at 2001-12-04 06:16
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=488894&group_id=5470
>Category: Type/class unification
Group: Python 2.2
>Status: Closed
>Resolution: Fixed
Priority: 7
Submitted By: Guido van Rossum (gvanrossum)
Assigned to: Guido van Rossum (gvanrossum)
Summary: bad message for non-string getattr
Initial Comment:
object.__getattribute__(obj, 1) prints a bizarre error
message, because the error message code assumes the
name argument is always a string.
----------------------------------------------------------------------
>Comment By: Guido van Rossum (gvanrossum)
Date: 2001-12-04 07:56
Message:
Logged In: YES
user_id=6380
I decided to fix this by insisting in
PyObject_Generic{Gete,Set}Attr() that the attribute name be
a string (or ASCII-fiable Unicode), like the other
getattr/setattr functions.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=488894&group_id=5470