text_combined: alexandre vassalotti jxtijmapzpeadropcom sun mar 9 2008 721 pm forrest voight wrote would simplify handling list slices slice objects produced list index area would different optionally syntax slices list indexes would expanded work everywhere instead containers start end step numbers would generators similar xranges sure trying propose slice object isnt special regular builtin type slice14 slice1 4 none 123456slice14 2 3 4 dont see introducing new syntax would simplify indexing lists would accept slice objects indexes would also accept list generator lists accept list generator index use case mind optionally 12 syntax would create slice object outside list index areas dont see could useful list15 1 2 3 4 list152 1 3 listrange152 range3015 1517 1 2 3 4 15 16 confusing imho doesnt provide advantage listrange30 s15 s1517 really needed could define custom class fancy __getitem__ class def __getitem__self x return x a1325 slice1 3 none slice2 5 none ps consider using pythonideas httpmailpythonorgmailmanlistinfopythonideas mailing list instead pythondev posting suggestions cheers alexandre _______________________________________________ pythondev mailing list zvlllneumpythonorg httpmailpythonorgmailmanlistinfopythondev unsubscribe httpmailpythonorgmailmanoptionspythondevpythondev40tangomucom wed 06 aug 2008 020009 0400 pythondev pep proposal revised slice objects lists use slice objects indexes