Python syntax in Lisp and Scheme

Gerrit Holl gerrit at nl.linux.org
Mon Oct 6 06:05:04 EDT 2003


Jason Creighton wrote:
> I agree with most of the rest of "The Zen of Python", except for the
> "There should be one-- and preferably only one --obvious way to do it."
> bit. I think it should be "There should be one, and preferably only one
> , *easy* (And it should be obvious, if we can manage it) way to do it."

Of course, this rule is not to be taken literally.

a = 2
a = 1 + 1
a = math.sqrt(4)
a = int((sys.maxint+1) ** (1/31))

...all mean the same thing.

Gerrit.

-- 
243. As rent of herd cattle he shall pay three gur of corn to the
owner.
        -- 1780 BC, Hammurabi, Code of Law
--
Asperger Syndroom - een persoonlijke benadering:
	http://people.nl.linux.org/~gerrit/
Kom in verzet tegen dit kabinet:
	http://www.sp.nl/





More information about the Python-list mailing list