A C-like if statement

Terry Hancock hancock at anansispaceworks.com
Thu Feb 23 21:41:52 EST 2006


On Fri, 24 Feb 2006 09:14:53 +1100
"Steven D'Aprano" <steve at REMOVETHIScyber.com.au> wrote:
> There are *reasons* why Python discourages functions with
> side-effects. Side-effects make your code hard to test and
> harder to debug.

You of course meant "expressions with side-effects".  Python
is pretty good at making functions with side-effects. At
least it is if you want them. ;-)

-- 
Terry Hancock (hancock at AnansiSpaceworks.com)
Anansi Spaceworks http://www.AnansiSpaceworks.com




More information about the Python-list mailing list