module with __call__ defined is not callable?

Antoon Pardon apardon at forel.vub.ac.be
Thu Feb 9 05:13:13 EST 2006


Op 2006-02-08, Steve Holden schreef <steve at holdenweb.com>:
> Antoon Pardon wrote:
>> Op 2006-02-08, Steve Holden schreef <steve at holdenweb.com>:
>> 
>>>Why should a module be callable? What's the advantage? Should we be able 
>>>to add two modules together, yielding a module that contains all the 
>>>code of both modules? What happens if I multiply a module by two - 
>>>presumably the result should be the same as adding a module to itself? 
>>>Perhaps we should be able to divide a module by a function?
>>>
>>>The pursuit of orthogonality, while admirable, can lead to insanity if 
>>>pushed too far.
>> 
>> 
>> This is not an argument. This doesn't give a clue about where to stop
>> this pursuit en when to go on.
>> 
> Well, let's say we should stop short of unsane behavior. That's a phrase 
> you should understand.

I don't agree, what some consider insane is a stroke of genius by
someone else.

-- 
Antoon Pardon



More information about the Python-list mailing list