| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2070e83 commit a12b682
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -54,6 +54,12 @@ objects: | |||
| 54 | 54 | will see this notation frequently in the Python Library Reference.) | |
| 55 | 55 | ||
| 56 | 56 | ||
| 57 | + .. method:: list.clear() | ||
| 58 | + :noindex: | ||
| 59 | + | ||
| 60 | + Remove all items from the list. Equivalent to ``del a[:]``. | ||
| 61 | + | ||
| 62 | + | ||
| 57 | 63 | .. method:: list.index(x) | |
| 58 | 64 | :noindex: | |
| 59 | 65 | ||
@@ -79,6 +85,12 @@ objects: | |||
| 79 | 85 | Reverse the elements of the list in place. | |
| 80 | 86 | ||
| 81 | 87 | ||
| 88 | + .. method:: list.copy() | ||
| 89 | + :noindex: | ||
| 90 | + | ||
| 91 | + Return a shallow copy of the list. Equivalent to ``a[:]``. | ||
| 92 | + | ||
| 93 | + | ||
| 82 | 94 | An example that uses most of the list methods:: | |
| 83 | 95 | ||
| 84 | 96 | >>> a = [66.25, 333, 333, 1, 1234.5] | |
| Back | FazBrowse Home | New Git URL |
0 commit comments