[Tutor] Tutor Digest, Vol 134, Issue 32 - amazing range

Jim Mooney cybervigilante at gmail.com
Sun Apr 12 08:41:59 CEST 2015


> Range objects are special: not only do they produce values lazily as
> needed, but they also support len(), indexing, slicing, and membership
> testing, none of which generators are capable of doing:
>
> Steve
-----

That's really cool. Worth making a dumb mistake to find it out ;')

Jim
Today is the day that would have been yesterday if today was tomorrow


More information about the Tutor mailing list