Core and builtins
-----------------
+- Bug #1365916: Fix an int/long mismatch in the sorted() built-in.
+
- Fix memory leak of coding spec in Parser/tokenizer.c.
- Overflow checking code in integer division ran afoul of new gcc
PyObject *newlist, *v, *seq, *compare=NULL, *keyfunc=NULL, *newargs;
PyObject *callable;
static char *kwlist[] = {"iterable", "cmp", "key", "reverse", 0};
- long reverse;
+ int reverse;
if (args != NULL) {
+ /* args 1-4 should match listsort in Objects/listobject.c */
if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|OOi:sorted",
kwlist, &seq, &compare, &keyfunc, &reverse))
return NULL;