mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
bpo-29878: Add global instances of int for 0 and 1. (#852)
This commit is contained in:
parent
e6911a44f6
commit
ba85d69a3e
18 changed files with 105 additions and 249 deletions
|
@ -2041,7 +2041,7 @@ match_group(MatchObject* self, PyObject* args)
|
|||
|
||||
switch (size) {
|
||||
case 0:
|
||||
result = match_getslice(self, Py_False, Py_None);
|
||||
result = match_getslice(self, _PyLong_Zero, Py_None);
|
||||
break;
|
||||
case 1:
|
||||
result = match_getslice(self, PyTuple_GET_ITEM(args, 0), Py_None);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue