You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Huh, results are different if None is passed in than if another value is passed in.
For example, r=repr(array(['s', 5])); print r; eval(r) gives the expected output.
supermank17, that is because the resulting type of the array is string and not object in your example, which has different code for printing.
In any case, this behaviour is fixed starting with 1.7. so that it actually does use repr for object arrays and the examples here work. So I am closing it.
Original ticket http://projects.scipy.org/numpy/ticket/1361 on 2010-01-13 by @yarikoptic, assigned to unknown.
In numpy version shipped with Debian
as well as current trunk
The text was updated successfully, but these errors were encountered: