Mercurial > cpython-lru_cache-weakref
comparison Modules/arraymodule.c @ 81178:3ca72d4e9762 3.3
Make indentation consistent and remove dead commented-out code.
| author | Eli Bendersky <eliben@gmail.com> |
|---|---|
| date | Mon, 31 Dec 2012 15:34:20 -0800 |
| parents | 757cc49ced54 |
| children | ebeed44702ec 0a095821c74e |
comparison
equal
deleted
inserted
replaced
| 81173:d89891f3f769 | 81178:3ca72d4e9762 |
|---|---|
| 2112 }; | 2112 }; |
| 2113 | 2113 |
| 2114 static PyMethodDef array_methods[] = { | 2114 static PyMethodDef array_methods[] = { |
| 2115 {"append", (PyCFunction)array_append, METH_O, | 2115 {"append", (PyCFunction)array_append, METH_O, |
| 2116 append_doc}, | 2116 append_doc}, |
| 2117 {"buffer_info", (PyCFunction)array_buffer_info, METH_NOARGS, | 2117 {"buffer_info", (PyCFunction)array_buffer_info, METH_NOARGS, |
| 2118 buffer_info_doc}, | 2118 buffer_info_doc}, |
| 2119 {"byteswap", (PyCFunction)array_byteswap, METH_NOARGS, | 2119 {"byteswap", (PyCFunction)array_byteswap, METH_NOARGS, |
| 2120 byteswap_doc}, | 2120 byteswap_doc}, |
| 2121 {"__copy__", (PyCFunction)array_copy, METH_NOARGS, | 2121 {"__copy__", (PyCFunction)array_copy, METH_NOARGS, |
| 2122 copy_doc}, | 2122 copy_doc}, |
| 2123 {"count", (PyCFunction)array_count, METH_O, | 2123 {"count", (PyCFunction)array_count, METH_O, |
| 2124 count_doc}, | 2124 count_doc}, |
| 2125 {"__deepcopy__",(PyCFunction)array_copy, METH_O, | 2125 {"__deepcopy__", (PyCFunction)array_copy, METH_O, |
| 2126 copy_doc}, | 2126 copy_doc}, |
| 2127 {"extend", (PyCFunction)array_extend, METH_O, | 2127 {"extend", (PyCFunction)array_extend, METH_O, |
| 2128 extend_doc}, | 2128 extend_doc}, |
| 2129 {"fromfile", (PyCFunction)array_fromfile, METH_VARARGS, | 2129 {"fromfile", (PyCFunction)array_fromfile, METH_VARARGS, |
| 2130 fromfile_doc}, | 2130 fromfile_doc}, |
| 2131 {"fromlist", (PyCFunction)array_fromlist, METH_O, | 2131 {"fromlist", (PyCFunction)array_fromlist, METH_O, |
| 2132 fromlist_doc}, | 2132 fromlist_doc}, |
| 2140 index_doc}, | 2140 index_doc}, |
| 2141 {"insert", (PyCFunction)array_insert, METH_VARARGS, | 2141 {"insert", (PyCFunction)array_insert, METH_VARARGS, |
| 2142 insert_doc}, | 2142 insert_doc}, |
| 2143 {"pop", (PyCFunction)array_pop, METH_VARARGS, | 2143 {"pop", (PyCFunction)array_pop, METH_VARARGS, |
| 2144 pop_doc}, | 2144 pop_doc}, |
| 2145 {"__reduce_ex__", (PyCFunction)array_reduce_ex, METH_O, | 2145 {"__reduce_ex__", (PyCFunction)array_reduce_ex, METH_O, |
| 2146 reduce_doc}, | 2146 reduce_doc}, |
| 2147 {"remove", (PyCFunction)array_remove, METH_O, | 2147 {"remove", (PyCFunction)array_remove, METH_O, |
| 2148 remove_doc}, | 2148 remove_doc}, |
| 2149 {"reverse", (PyCFunction)array_reverse, METH_NOARGS, | 2149 {"reverse", (PyCFunction)array_reverse, METH_NOARGS, |
| 2150 reverse_doc}, | 2150 reverse_doc}, |
| 2151 /* {"sort", (PyCFunction)array_sort, METH_VARARGS, | |
| 2152 sort_doc},*/ | |
| 2153 {"tofile", (PyCFunction)array_tofile, METH_O, | 2151 {"tofile", (PyCFunction)array_tofile, METH_O, |
| 2154 tofile_doc}, | 2152 tofile_doc}, |
| 2155 {"tolist", (PyCFunction)array_tolist, METH_NOARGS, | 2153 {"tolist", (PyCFunction)array_tolist, METH_NOARGS, |
| 2156 tolist_doc}, | 2154 tolist_doc}, |
| 2157 {"tostring", (PyCFunction)array_tostring, METH_NOARGS, | 2155 {"tostring", (PyCFunction)array_tostring, METH_NOARGS, |
| 2158 tostring_doc}, | 2156 tostring_doc}, |
| 2159 {"tobytes", (PyCFunction)array_tobytes, METH_NOARGS, | 2157 {"tobytes", (PyCFunction)array_tobytes, METH_NOARGS, |
| 2160 tobytes_doc}, | 2158 tobytes_doc}, |
| 2161 {"tounicode", (PyCFunction)array_tounicode, METH_NOARGS, | 2159 {"tounicode", (PyCFunction)array_tounicode, METH_NOARGS, |
| 2162 tounicode_doc}, | 2160 tounicode_doc}, |
| 2163 {"__sizeof__", (PyCFunction)array_sizeof, METH_NOARGS, | 2161 {"__sizeof__", (PyCFunction)array_sizeof, METH_NOARGS, |
| 2164 sizeof_doc}, | 2162 sizeof_doc}, |
| 2165 {NULL, NULL} /* sentinel */ | 2163 {NULL, NULL} /* sentinel */ |
| 2166 }; | 2164 }; |
