Override a method in another module

Chris Liechti cliechti at gmx.net
Tue Oct 1 20:22:49 EDT 2002


Brian Quinlan <brian at sweetapp.com> wrote in 
news:mailman.1033513984.19456.python-list at python.org:

> Chris Liechti wrote:
>> > def F(self): pass
>>
>> hints:
>> 1) setattr needs 3 args
>> 2) eval works only for expressions and "def" is a keyword
> 
> The fact that "def" is a keyword is irrelevant. The following is an
> equivalent expression that begins with a keyword:

yep, sorry wrong word... i meant that with a "def" it's a statement and not 
an expression.

chris

-- 
Chris <cliechti at gmx.net>




More information about the Python-list mailing list