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

Daπid davidmenhur@gmail....
Sat Oct 20 15:18:30 CDT 2012


On Sat, Oct 20, 2012 at 10:05 PM, Fernando Perez <fperez.net@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