forrest voight hnvzdeigmailcom 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 lists would accept slice objects indexes would also accept list generator last slice objects would able added multiple index ranges list new slice object would keep list ranges optionally 12 syntax would create slice object outside list index areas would shorthand slice list would create confusion loops conditionals due colon used end structure see last example would incompatible classes define __setitem__ __getitem__ would need changes slices handled cpython therefore probably proposal python 3000 examples 15 15 list15 1 2 3 4 list152 1 3 13 range5s 1 2 15 1517 15 1517 range3015 1517 1 2 3 4 15 16 range100123 1 2 3 range100125 maybe 1 2 5 x 153 print x maybe 0 3 6 9 12 forrest voight _______________________________________________ pythondev mailing list zvlllneumpythonorg httpmailpythonorgmailmanlistinfopythondev unsubscribe httpmailpythonorgmailmanoptionspythondevpythondev40tangomucom wed 06 aug 2008 015625 0400 pythondev pep proposal revised slice objects lists use slice objects indexes