types and objects attribute description start stop step lower bound of the slicenone if omitted upper bound of the slicenone if omitted stride of the slicenone if omitted slice objects also provide single methods indices(lengththis function takes length and returns tuple (start,stop,stridethat indicates how the slice would be applied to sequence of that length here' an examples slice( , indices( indices( slice object represents [ : returns ( , , --[ : returns ( , , --[ : ellipsis object the ellipsis object is used to indicate the presence of an ellipsis in an index lookup [there is single object of this typeaccessed through the built-in name ellipsis it has no attributes and evaluates as true none of python' built-in types make use of ellipsisbut it may be useful if you are trying to build advanced functionality into the indexing operator [on your own objects the following code shows how an ellipsis gets created and passed into the indexing operatorclass example(object)def _getitem_ (self,index)print(indexe example( [ calls _getitem_ (( ellipsis )object behavior and special methods objects in python are generally classified according to their behaviors and the features that they implement for exampleall of the sequence types such as stringslistsand tuples are grouped together merely because they all happen to support common set of sequence operations such as [ ]len( )etc all basic interpreter operations are implemented through special object methods the names of special methods are always preceded and followed by double underscores ( _these methods are automatically triggered by the interpreter as program executes for examplethe operation is mapped to an internal methodx _add_ ( )and an indexing operationx[ ]is mapped to _getitem_ (kthe behavior of each data type depends entirely on the set of special methods that it implements user-defined classes can define new objects that behave like the built-in types simply by supplying an appropriate subset of the special methods described in this section in additionbuilt-in types such as lists and dictionaries can be specialized (via inheritanceby redefining some of the special methods the next few sections describe the special methods associated with different categories of interpreter features object creation and destruction the methods in table createinitializeand destroy instances _new_ (is class method that is called to create an instance the _init_ (method initializes the lib fl ff