mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
* Makefile: added IMGFILE; moved some stuff around.
* flmodule.c: added some missing functions; changed readonly flags of some data members based upon FORMS documentation. * listobject.c: fixed int/long arg lint bug (bites PC compilers). * several: removed redundant print methods (repr is good enough). * posixmodule.c: added (still experimental) process group functions.
This commit is contained in:
parent
c2670a000b
commit
7066dd75c5
11 changed files with 126 additions and 142 deletions
|
|
@ -600,7 +600,7 @@ listindex(self, args)
|
|||
}
|
||||
for (i = 0; i < self->ob_size; i++) {
|
||||
if (cmpobject(self->ob_item[i], args) == 0)
|
||||
return newintobject(i);
|
||||
return newintobject((long)i);
|
||||
}
|
||||
err_setstr(ValueError, "list.index(x): x not in list");
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue