title: How to find out if Python is compiled with UCS-2 or UCS-4?
body: <p>Just what the title says.</p>
  
  <pre><code>$ ./configure --help | grep -i ucs
    --enable-unicode[=ucs[24]]
  </code></pre>
  
  <p>Searching the official documentation, I found this:</p>
  
  <blockquote>
    <p><strong><a href="http://docs.python.org/3.1/library/sys.html#sys.maxunicode" rel="noreferrer">sys.maxunicode</a></strong>: An integer giving the
    largest supported code point for a
    Unicode character. The <strong>value</strong> of this
    depends on the configuration option
    that specifies whether Unicode
    characters are stored as UCS-2 or
    UCS-4.</p>
  </blockquote>
  
  <p>What is not clear here is - which value(s) correspond to UCS-2 and UCS-4.</p>
  
  <p>The code is expected to work on Python 2.6+.</p>