c[:]()

Dustan DustanGroups at gmail.com
Wed May 30 19:13:51 EDT 2007


On May 30, 5:37 pm, "Warren Stringer" <war... at muse.com> wrote:
> Hey many thanks for the replies!
>
> Ah, so is seems that c[:][:][:][:][:][:][:][:][:][:][:][0]()
> also work ...
>
> Ah well, can't have everything. Guess I was inspired by the alphabetically
> adjacent message "Call for Ruby Champion". Would have been nice for it work
> - a more elegant iterator would be hard to come by. A PEP, perhaps? Maybe
> not; am still a bit new - am probably missing something obvious why this
> isn't an easy fix.
>
> Pretty cool that I can override the list class.
>
> Cheers,

Do a search on "python is not java" (words to live by). You can also
plug in another language you know (like Ruby), but you won't get as
many results.




More information about the Python-list mailing list