Py2.3: Feedback on Sets

Borcis borcis at users.ch
Mon Aug 18 11:39:58 EDT 2003


Michael Hudson wrote:
> 
>>>+ isn't totally silly (strings and lists are
>>>monoids, at least :-).  list * int, OTOH, seems a bit smelly to me
>>>(though I'm not sure what a better spelling would be...).
>>
>>But strings/lists form a non-commutative monoid, so  list * list
>>would be better imho, and a corresponding   list ** int
> 
> Hmm, you're right of course,, but for some reason I prefer +.  Maybe
> it's the commutation with len()?

renaming it to log() would make the *2+ homomorphism natural.

> 
> Anyhoo, this is all pointless gassing :-)

Right.





More information about the Python-list mailing list