if in for loop

Gary Feldman gafStopSpamData at ziplink.stopallspam.net
Thu Aug 21 13:29:45 CEST 2003

On Wed, 20 Aug 2003 11:16:04 -0400, "Sean Ross"
<sross at connectmail.carleton.ca> wrote:

>... (which would be one
>reason people refactor such things using functions). 


The code is complex because the set of conditions is complex, and there's
no way that pure syntactic sugar can eliminate the semantic complexity.
Refactoring does help, because it adds layers of abstraction, allowing the
author and, more importantly, the subsequent maintainers to focus on small
chunks at a time.  Moving the conditions around within one function, and
eliminating or adding punctuation or keywords doesn't have the same effect.


More information about the Python-list mailing list