[SciPy-dev] scipy_core bugs

Travis Oliphant oliphant at ee.byu.edu
Wed Sep 28 03:45:23 CDT 2005


Robert Kern wrote:

>I don't like the fact that scipy.{bool,int,float,complex,object,unicode}
>conflict with builtins. That was a bit surprising at the prompt.
>Unfortunately, they don't cleanly inherit from the Python counterparts.
>
>In [48]: from scipy import *
>
>In [49]: s = 'This is text.'
>
>In [50]: u = unicode(s)
>
>In [51]: len(u)
>  
>

Try it now.  I just fixed the inheritance for string and unicode to come 
from the Python object first.

This gives better usability, I think...

-Travis




More information about the Scipy-dev mailing list