Why instancemethod when I can add functions to classes outside class body?

Ben Finney bignose-hates-spam at and-benfinney-does-too.id.au
Fri Jul 25 01:40:53 EDT 2003


On 25 Jul 2003 07:18:15 +0200, Martin v. Löwis wrote:
> rimbalaya at yahoo.com (Rim) writes:
>> So what problem is the new.instancemethod() trying to solve?
> 
> It has no side effects on the class it is an instancemethod of.

So what side effects (i.e. what problem) is the new.instancemethod()
trying to solve?

-- 
 \        "I spent a lot of money on wine and women, and like a fool I |
  `\                              squandered the rest."  -- Benny Hill |
_o__)                                                                  |
http://bignose.squidly.org/ 9CFE12B0 791A4267 887F520C B7AC2E51 BD41714B




More information about the Python-list mailing list