Override a method in another module
Brian Quinlan
brian at sweetapp.com
Tue Oct 1 19:14:17 EDT 2002
More information about the Python-list mailing list
Tue Oct 1 19:14:17 EDT 2002
- Previous message (by thread): Override a method in another module
- Next message (by thread): Override a method in another module
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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: lambda self: None Cheers, Brian
- Previous message (by thread): Override a method in another module
- Next message (by thread): Override a method in another module
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list