title: Python decimal and import: How to use ROUND_UP without 'import *'?
body: <p>As I begin to learn Python, the <a href="http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html#importing%20%5B" rel="nofollow">Idiomatic Python style guide</a> strongly suggests never using <code>from module import *</code>, stating that it is a bad habit.</p>
  
  <p>I am trying to use the decimal package to round up numbers. How can I round up numbers without having to use "from decimal import *"? Even the <a href="http://docs.python.org/2/library/decimal.html" rel="nofollow">documentation</a> for decimal uses "from decimal import *"! </p>
  
  <p>I tried the following, among other things:</p>
  
  <pre><code>#!/usr/bin/python
  import sys
  import decimal
  
  print "UPDATE: Price is %s" % (decimal.Decimal(4233/3600).quantize(decimal.Decimal('.000001'), round=ROUND_UP))
  </code></pre>
  
  <p>Unfortunately, I get the following error: </p>
  
  <blockquote>
    <p>Traceback (most recent call last):   File
    "./calculate_hourly_stats.py", line 4, in 
        print "UPDATE: Price is %s" % (decimal.Decimal(4233/3600).quantize(decimal.Decimal('.000001'),
    round=ROUND_UP)) NameError: name 'ROUND_UP' is not defined</p>
  </blockquote>
  
  <p>In decimal.py, ROUND_UP is a constant. How do I import constants from decimal?</p>