SWIG:Examples:python:enum

`SWIG/Examples/python/enum/`

## Wrapping enumerations

`$Header: /cvs/projects/SWIG/Examples/python/enum/index.html,v 1.1 2000/09/19 22:28:15 beazley Exp $`

This example tests SWIG's ability to wrap enumerations. By default, SWIG converts enumeration specifications into integer constants. Further use of enumerated types are handled as integers.

- example.h. Header file containing some enums.
- example.i. Interface file.
- example.py. Sample Python script.

## Notes

- SWIG allows arbitrary integers to be passed as enum values. However, the result of passing an integer not corresponding to any of the values specified in the `enum` specification is undefined.