|
|
@ -1081,7 +1081,7 @@ Hello World! |
|
|
|
|
|
|
|
|
|
|
|
<div><h3 id="sequence">Sequence</h3><ul> |
|
|
|
<li><strong>Only required methods are len() and getitem().</strong></li> |
|
|
|
<li><strong>Only required methods are getitem() and len().</strong></li> |
|
|
|
<li><strong>Getitem() should return an item at the passed index or raise IndexError.</strong></li> |
|
|
|
<li><strong>Iter() and contains() automatically work on any object that has getitem() defined.</strong></li> |
|
|
|
<li><strong>Reversed() automatically works on any object that has getitem() and len() defined.</strong></li> |
|
|
|