slicings: 3 questions

Alan G Isaac alan.isaac at gmail.com
Thu Jan 29 13:01:17 EST 2009


1. I seem not to understand something obvious at
http://docs.python.org/3.0/reference/expressions.html#slicings
(I assume I'm just not reading this right.)
What is an example of a slicing using a "slice_list"?

2. It seems that slice objects and range objects are
awfully similar in many ways.  Is this "appearance only",
or was there any discussion of unifying them?
Curious for insight...

3. Why are slicings not directly listed among the built-in types?
(I know they are discussed here: http://docs.python.org/3.0/reference/datamodel.html#types).
What makes them "internal"?
http://docs.python.org/3.0/library/stdtypes.html#internal-objects

Thanks,
Alan Isaac



More information about the Python-list mailing list