Lines Matching defs:last
130 "popitem($self, /, last=True)\n"
135 "Pairs are returned in LIFO order if last is true or FIFO order if false.");
141 OrderedDict_popitem_impl(PyODictObject *self, int last);
147 static const char * const _keywords[] = {"last", NULL};
151 int last = 1;
160 last = PyObject_IsTrue(args[0]);
161 if (last < 0) {
165 return_value = OrderedDict_popitem_impl(self, last);
172 "move_to_end($self, /, key, last=True)\n"
175 "Move an existing element to the end (or beginning if last is false).\n"
183 OrderedDict_move_to_end_impl(PyODictObject *self, PyObject *key, int last);
189 static const char * const _keywords[] = {"key", "last", NULL};
194 int last = 1;
204 last = PyObject_IsTrue(args[1]);
205 if (last < 0) {
209 return_value = OrderedDict_move_to_end_impl(self, key, last);