Symbols as parameters?

Ben Finney ben+python at
Thu Jan 21 10:10:34 CET 2010

Martin Drautzburg <Martin.Drautzburg at> writes:

> When passing parameters to a function, you sometimes need a paramter
> which can only assume certain values

You might like to try the ‘enum’ library for this

 \       “You could augment an earwig to the point where it understood |
  `\     nuclear physics, but it would still be a very stupid thing to |
_o__)                              do!” —The Doctor, _The Two Doctors_ |
Ben Finney

More information about the Python-list mailing list