Andrew MacKeith wrote:

>I would like to use the built-in array_repr in numpy, because
>I need a fast repr that does not contain new line characters.
>I see no way of doing this without editing the code in numeric.py,
>and I hate to edit other people's libraries.
>
>from numpy import array
>causes numeric.py to be executed, which includes a call to
>multiarray.set_string_function(array_repr, 1)
>
>If I want to "undo" this, there is no way of doing it.
>  
>
Why do want to "undo" this? 

>I would like to unset the repr with:
>numpy.set_string_function(None, 1)
>  
>
I don't understand what you are trying to do.  Why don't you just set 
the string function to an actual callable.  What edits do you propose to 
make?

-Travis



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion

Reply via email to