What is not objects in Python?
Steven D'Aprano
steve at REMOVE-THIS-cybersource.com.au
Mon Sep 29 19:26:25 EDT 2008
On Mon, 29 Sep 2008 05:41:02 -0700, George Sakkis wrote:
> For example I would be much less
> opposed to len() being defined as, say, |x| if "|...|" was a valid
> operator.
Arghh! No!!! |x| should be abs(x), not len(x). Just ask mathematicians
and physicists.
*wink*
Actually there's a serious point there. There aren't that many
unambiguous operators that are available on a standard keyboard that
(nearly) everyone can agree on.
--
Steven
More information about the Python-list
mailing list