This isn't a terrible use of the walrus operator either.
if blue_20 := (color==BLUE and count==20) or red_5 := (color==RED and
count%5==0)
rotate_the_wheel() # Common to the two sub-conditions
if blue_20: # First sub-condition
set_signal()
if red_5: # Second sub-condition
David Mertz ([EMAIL PROTECTED])
Frank McIngvale ([EMAIL PROTECTED])
This release of the Gnosis Utilities contains several new modules,
as well as fixes, enhancements, and speedups in existing
subpackages.
Try it out, have fun, send feedback!
NEW SUBPACKAGES
Python/XML users might be interested in:
http://www-106.ibm.com/developerworks/xml/library/x-matters39.html
Title:
Get the most out of gnosis.xml.objectify
Subtitle:
Use utility functions for enhanced object behavior
Abstract:
The XML binding gnosis.xml.objectify was designed, in many way