[Python-bugs-list] [Bug #117241] class.method(*([self]+args)) gave me a 'unbound method must be called with class instance 1st argument" error message.

noreply@sourceforge.net noreply@sourceforge.net
Thu, 19 Oct 2000 20:28:51 -0700


Bug #117241, was updated on 2000-Oct-18 15:28
Here is a current snapshot of the bug.

Project: Python
Category: Parser/Compiler
Status: Open
Resolution: None
Bug Group: None
Priority: 7
Summary: class.method(*([self]+args)) gave me a 'unbound method must be called with class instance 1st argument" error message.

Details: I have some 1.5 code like this:

apply(BaseMsgTemplate.__call__,[self]+args)

This works great and does what I want, calls the base class call method
with the current instance as self.  I thought I'd convert it to the
new calling syntax:

BaseMsgTemplate.__call__(*([self]+args))

But this gave me the error message:

'unbound method must be called with class instance 1st argument'

I *think* the * argument method is supposed to be functionally
equivalent to apply, so I think this is a bug. 


For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=117241&group_id=5470