The Null Device
switch() in Python
Nifty Python hack of the day:
a C-style
switch()
construct
, implemented without using dictionaries (instead using a class and
yield
).
There are no comments yet on "switch() in Python"