Ignore leading '>>>' and ellipsis?
rhodri at wildebst.demon.co.uk
Thu Jan 14 23:23:25 CET 2010
On Thu, 14 Jan 2010 17:13:54 -0000, Reckoner <reckoner at gmail.com> wrote:
> I am studying some examples in a tutorial where there are a lot of
> leading >>> characters and ellipsis in the text. This makes it hard to
> cut and paste into the IPython interpreter since it doesn't like these
> Is there another interpreter I could use that will appropriately
> ignore and interpret these leading terms?
> For example, I cannot paste the following directly into the
>>>> d = dict(x.__array_interface__)
>>>> d['shape'] = (3, 2, 5)
>>>> d['strides'] = (20, 20, 4)
>>>> class Arr:
> ... __array_interface__ = d
> ... base = x
Well don't do that then.
Snippy as that sounds, it's an entirely serious comment. You will learn
more by doing it yourself than if you side-step your brain with cut and
Rhodri James *-* Wildebeeste Herder to the Masses
More information about the Python-list