[Numpy-discussion] print array in a form that can then be input

Daπid davidmenhur at gmail.com
Sat Oct 20 16:18:30 EDT 2012

On Sat, Oct 20, 2012 at 10:05 PM, Fernando Perez <fperez.net at gmail.com> wrote:
> Note that you don't need to explicitly call repr() at the interactive
> prompt: by default, Python prints the repr of an object when you type
> its name:

True, and good point to notice. Nevertheless print executes str(), if
present, and it is the output of any non-interactive script.

Just to complete your clarification. :)

More information about the NumPy-Discussion mailing list