On Jan 13, 2005, at 04:13, Bob Gailer wrote:

I like Kent's response.

foobar(item)/0 is a "valid" expression. It fits the grammar of expressions. The fact that it raises an exception does not make it an invalid expression.

Consider foobar(item)/xyz. It is valid. If xyz == 0 then it will also raise an exception.

You have a point, I hadn't thought of it that way.

-- Max
maxnoel_fr at yahoo dot fr -- ICQ #85274019
"Look at you hacker... A pathetic creature of meat and bone, panting and sweating as you run through my corridors... How can you challenge a perfect, immortal machine?"


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to