2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-26 06:42:27 +00:00

Python 2.5 compatibility

[SVN r34017]
This commit is contained in:
Ralf W. Grosse-Kunstleve
2006-05-18 22:41:14 +00:00
parent 66ac61450e
commit caa9cb8268
9 changed files with 45 additions and 19 deletions

View File

@@ -53,7 +53,7 @@ long list_base::index(object_cref value) const
return result;
}
void list_base::insert(int index, object_cref item)
void list_base::insert(Py_ssize_t index, object_cref item)
{
if (PyList_CheckExact(this->ptr()))
{
@@ -79,7 +79,7 @@ object list_base::pop()
return this->attr("pop")();
}
object list_base::pop(long index)
object list_base::pop(Py_ssize_t index)
{
return this->pop(object(index));
}