Py2.3: Feedback on Sets
Michael Hudson
mwh at python.net
Mon Aug 18 11:08:59 EDT 2003
Borcis <borcis at users.ch> writes:
> 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, ans a corresponding list ** int
Hmm, you're right of course,, but for some reason I prefer +. Maybe
it's the commutation with len()?
Anyhoo, this is all pointless gassing :-)
Cheers,
mwh
--
My hat is lined with tinfoil for protection in the unlikely event
that the droid gets his PowerPoint presentation working.
-- Alan W. Frame, alt.sysadmin.recovery
More information about the Python-list
mailing list