Factorials

Tim Rowe tim at remove_if_not_spam.digitig.cix.co.uk
Tue Jun 10 11:07:22 CEST 2003


On Sun, 8 Jun 2003 14:58:07 -0600, Steven Taschuk
<staschuk at telusplanet.net> wrote:

>Quoth Tim Rowe:
>  [...]
>> - Anton's solution barfs on  R = [x*y for x,y in zip(R[::2],R[1::2])],
>> complaining that the sequence index must be an integer.
>
>Try it on Python 2.3, where extended slice notation actually works
>for lists.

Well, I don't have a pressing need for this, so I think I'll wait
until 2.3 comes out of beta :-)




More information about the Python-list mailing list