title: how to use enum in swig with python?
body: <p>I have a enum declaration as follows:</p>
  
  <pre class="lang-c prettyprint-override"><code>typedef enum mail_ {
      Out = 0,
      Int = 1,
      Spam = 2
  } mail;
  </code></pre>
  
  <p>Function:</p>
  
  <pre class="lang-c prettyprint-override"><code>mail status;
  int fill_mail_data(int i, &amp;status);
  </code></pre>
  
  <p>In the function above, <code>status</code> gets filled up and will send.</p>
  
  <p>When I am trying this through swig I am facing the following issues:</p>
  
  <ol>
  <li>It is not showing details of <code>mail</code>. When I try to print <code>mail.__doc__</code>  or <code>help(mail)</code>,  it is throwing an error saying there is no such Attribute, though though i am able to use those values (<code>Spam</code>, <code>In</code>, and <code>Out</code>).</li>
  <li>As shown above, the Swig does not know what <code>main</code> is, so it is not accepting any function arguments for that <code>mail</code>.</li>
  </ol>