Cannot import Decimal module
<p>I am trying to do some simple decimal math to practice with the Tkinter GUI, but for some reason I cannot import Decimal:</p>

<pre><code>&gt;&gt;&gt; from decimal import Decimal
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/decimal.py", line 139, in &lt;module&gt;
    import math as _math
  File "math.py", line 3, in &lt;module&gt;
    from decimal import Decimal
ImportError: cannot import name Decimal
</code></pre>

<p>I am using Python 2.7.11
This is making me feel pretty stupid since it seems like a simple thing to do. Is Decimal not supported or am I doing this wrong?</p>

<p>You called a file <code>math.py</code>, meaning it overrides the built-in <code>math</code> module and breaks everything that uses that module. Pick a different name, and the problem will go away.</p>

python python-2.7 import decimal