[Python-Dev] Pasting interpreter prompts

Fredrik Lundh Fredrik Lundh" <effbot@telia.com
Tue, 18 Apr 2000 09:44:50 +0200


Ka-Ping Yee wrote:
> On Tue, 18 Apr 2000, Moshe Zadka wrote:
> >=20
> > >>> a=3D[]
> > >>> a[
> > ... ...=20
> > ... ]
> > Traceback (innermost last):
> >   File "<stdin>", line 1, in ?
> > TypeError: sequence index must be integer
> > >>>=20
> >=20
> > Sorry.
>=20
> What was your point?

a[...] is valid syntax, and not the same
thing as a[].

</F>