[ python-Bugs-1256010 ] bug in use of __getattribute__ ?
SourceForge.net
noreply at sourceforge.net
Wed Aug 10 18:29:17 CEST 2005
Bugs item #1256010, was opened at 2005-08-10 18:29
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1256010&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Interpreter Core
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: sylvain ferriol (ninou)
Assigned to: Nobody/Anonymous (nobody)
Summary: bug in use of __getattribute__ ?
Initial Comment:
hello, why it do not work:
class xx(object):
def __getattribute__(self,name):
tab = object.__getattribute__(self,'tab')
return tab[name]
def f(self,a):
self.a=a
x=xx()
xx.tab={'f':xx.f}
x.f(3)
unbound method f() must be called with xx instance as
first argument (got int instance instead)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1256010&group_id=5470
More information about the Python-bugs-list
mailing list