if (!PyArg_ParseTuple(args, "iiOO&:addch", &y, &x, &ch, attr_converter, &attr)) {
goto exit;
}
- group_right_1 = 1;
group_left_1 = 1;
+ group_right_1 = 1;
break;
default:
PyErr_SetString(PyExc_TypeError, "_curses.window.addch requires 1 to 4 arguments");
if (!PyArg_ParseTuple(args, "iiOO&:addstr", &y, &x, &str, attr_converter, &attr)) {
goto exit;
}
- group_right_1 = 1;
group_left_1 = 1;
+ group_right_1 = 1;
break;
default:
PyErr_SetString(PyExc_TypeError, "_curses.window.addstr requires 1 to 4 arguments");
if (!PyArg_ParseTuple(args, "iiOiO&:addnstr", &y, &x, &str, &n, attr_converter, &attr)) {
goto exit;
}
- group_right_1 = 1;
group_left_1 = 1;
+ group_right_1 = 1;
break;
default:
PyErr_SetString(PyExc_TypeError, "_curses.window.addnstr requires 2 to 5 arguments");
if (!PyArg_ParseTuple(args, "iiOiO&:hline", &y, &x, &ch, &n, attr_converter, &attr)) {
goto exit;
}
- group_right_1 = 1;
group_left_1 = 1;
+ group_right_1 = 1;
break;
default:
PyErr_SetString(PyExc_TypeError, "_curses.window.hline requires 2 to 5 arguments");
if (!PyArg_ParseTuple(args, "iiOO&:insch", &y, &x, &ch, attr_converter, &attr)) {
goto exit;
}
- group_right_1 = 1;
group_left_1 = 1;
+ group_right_1 = 1;
break;
default:
PyErr_SetString(PyExc_TypeError, "_curses.window.insch requires 1 to 4 arguments");
if (!PyArg_ParseTuple(args, "iiOO&:insstr", &y, &x, &str, attr_converter, &attr)) {
goto exit;
}
- group_right_1 = 1;
group_left_1 = 1;
+ group_right_1 = 1;
break;
default:
PyErr_SetString(PyExc_TypeError, "_curses.window.insstr requires 1 to 4 arguments");
if (!PyArg_ParseTuple(args, "iiOiO&:insnstr", &y, &x, &str, &n, attr_converter, &attr)) {
goto exit;
}
- group_right_1 = 1;
group_left_1 = 1;
+ group_right_1 = 1;
break;
default:
PyErr_SetString(PyExc_TypeError, "_curses.window.insnstr requires 2 to 5 arguments");
if (!PyArg_ParseTuple(args, "iiOiO&:vline", &y, &x, &ch, &n, attr_converter, &attr)) {
goto exit;
}
- group_right_1 = 1;
group_left_1 = 1;
+ group_right_1 = 1;
break;
default:
PyErr_SetString(PyExc_TypeError, "_curses.window.vline requires 2 to 5 arguments");
#ifndef _CURSES_ASSUME_DEFAULT_COLORS_METHODDEF
#define _CURSES_ASSUME_DEFAULT_COLORS_METHODDEF
#endif /* !defined(_CURSES_ASSUME_DEFAULT_COLORS_METHODDEF) */
-/*[clinic end generated code: output=cb5525c88ae5c440 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=c1f85ec415c303bf input=a9049054013a1b77]*/
""")
continue
- group_ids = {p.group for p in subset} # eliminate duplicates
+ # A set would eliminate duplicates too, but the iteration
+ # order of small negative integers depends on the platform.
+ group_ids = dict.fromkeys(p.group for p in subset)
d: dict[str, str | int] = {}
d['count'] = count
d['name'] = f.name
p.converter.parse_argument(parse_arguments)
d['parse_arguments'] = ", ".join(parse_arguments)
- group_ids.discard(0)
+ group_ids.pop(0, None)
lines = "\n".join([
self.group_to_variable_name(g) + " = 1;"
for g in group_ids