Enum class with ToString functionality
bignose+hates-spam at benfinney.id.au
Tue Sep 11 02:18:11 CEST 2007
bg_ie at yahoo.com writes:
> But it would be much nicer if I had a function to covert to string
> as part of the TestOutcomes class. How would I implement this?
Others have given ad hoc implementations that may do what you want.
I'd like to know if the Cheeseshop package 'enum' is useful to
you. Any constructive feedback would be appreciated.
\ "Remorse: Regret that one waited so long to do it." -- Henry |
`\ L. Mencken |
More information about the Python-list