Why is Python popular, while Lisp and Scheme aren't?
Michael Hudson
mwh at python.net
Thu Nov 28 05:03:23 EST 2002
Chad Netzer <cnetzer at mail.arc.nasa.gov> writes:
> On Wednesday 27 November 2002 15:02, holger krekel wrote:
> > Michael Hudson wrote:
> > > For what it's worth (not much) I'm forever writing
> > >
> > > for k, v in d:
> > > ....
> > >
> > > I can see the arguments for consistency, but I think this is my most
> > > reliable Python error at the moment.
> >
> > TypeError: unpack non-sequence
> >
> > is also my number one "basic" error i am producing.
>
> The way it works just seems natural to me:
>
> Python 2.2.2 (#1, Nov 21 2002, 08:18:14)
> >>> d = [ (1,2), (3,4) ]
> >>> for x,y in d:
> ... print "x,y: ", x, y
> ...
> x,y: 1 2
> x,y: 3 4
>
Holger and I are talking about d being a dict!
Don't the letters k, v and d mean /anything/ to you? <wink>
Cheers,
M.
--
Ability to type on a computer terminal is no guarantee of sanity,
intelligence, or common sense.
-- Gene Spafford's Axiom #2 of Usenet
More information about the Python-list
mailing list