[Numpy-tickets] [NumPy] #981: problem with locales

NumPy numpy-tickets@scipy....
Thu Jan 8 10:32:47 CST 2009

#981: problem with locales
 Reporter:  chanley     |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  normal      |   Milestone:  1.3.0   
Component:  numpy.core  |     Version:  none    
 Severity:  normal      |    Keywords:          
 Seen in latest version of numpy svn on multiple platforms.

 >>> import numpy as np
 >>> import locale
 >>> locale.format_string("%f",np.double(1.2))
 Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/stsci/pyssgdev/Python-2.5.1/lib/python2.5/locale.py", line
 188, in format_string
    val[key] = format(perc.group(), val[key], grouping)
 TypeError: 'numpy.float64' object does not support item assignment

Ticket URL: <http://scipy.org/scipy/numpy/ticket/981>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.

More information about the Numpy-tickets mailing list