Re: decimal.py ver 2.6,2.7 not working with python 2.7

2010-11-05 Thread Terry Reedy
On 11/5/2010 3:14 PM, robert roze wrote: Aha! yes, you figured it out. My PYTHONPATH env variable had an old experiment in it, which happened to be called numbers.py. Take it out, and decimal.py works fine. Python has a large test suite in Lib/test, which includes test_decimal.py. It is run d

RE: decimal.py ver 2.6,2.7 not working with python 2.7

2010-11-05 Thread robert roze
Hi Chris, Aha! yes, you figured it out. My PYTHONPATH env variable had an old experiment in it, which happened to be called numbers.py. Take it out, and decimal.py works fine. Thank you, Bob >What does the following output for you?: > >import numbers >print(numbers.__file__) >print(dir(numbe

Re: decimal.py ver 2.6,2.7 not working with python 2.7

2010-11-05 Thread Chris Rebert
On Fri, Nov 5, 2010 at 10:50 AM, robert roze wrote: > I have a 'Python 2.7' installed. > > It seems like the decimal.py module that comes with the Python2.7 package is > not working. I hope I'm wrong, but here's why I think so: > > If I simply try to import the module, I get this error: > imp