List Comprehensions Enhancement
Magnus L. Hetland
mlh at idt.ntnu.no
Tue Sep 14 18:07:29 EDT 1999
philh at vision25.demon.co.uk (Phil Hunt) writes:
> In article <slrn7tqhq4.cl9.wtanksle at dolphin.openprojects.net>
> wtanksle at dolphin.openprojects.net "William Tanksley" writes:
> > >print [(i,s) for i in nums, for s in strs]
> > >or similar.
> >
> > I agree -- my initial reaction was to put 'and' as the seperator. Amazing
> > how great minds think alike :).
> >
> > print [(i,s) for i in nums and for s in strs]
>
> That's horrible. ``and'' already means something in Python.
>
And? So does for and in...
--
Magnus
Lie Please forward all spam to
Hetland uce at ftc.org
More information about the Python-list
mailing list