Some style nits. Also clarify in the docstrings what __sizeof__ does.
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
index 0de24f8..61ee42a 100644
--- a/Objects/bytesobject.c
+++ b/Objects/bytesobject.c
@@ -3918,7 +3918,7 @@
}
PyDoc_STRVAR(sizeof__doc__,
-"S.__sizeof__() -> size of S in bytes");
+"S.__sizeof__() -> size of S in memory, in bytes");
static PyObject *
string_sizeof(PyBytesObject *v)
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index d3a7cb9..6b15131 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -2052,7 +2052,7 @@
PyDoc_STRVAR(getitem__doc__, "x.__getitem__(y) <==> x[y]");
PyDoc_STRVAR(sizeof__doc__,
-"D.__sizeof__() -> size of D in bytes");
+"D.__sizeof__() -> size of D in memory, in bytes");
PyDoc_STRVAR(get__doc__,
"D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None.");
diff --git a/Objects/listobject.c b/Objects/listobject.c
index 0216a85..796e8cb 100644
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -2437,7 +2437,7 @@
PyDoc_STRVAR(reversed_doc,
"L.__reversed__() -- return a reverse iterator over the list");
PyDoc_STRVAR(sizeof_doc,
-"L.__sizeof__() -- size of L in bytes");
+"L.__sizeof__() -- size of L in memory, in bytes");
PyDoc_STRVAR(append_doc,
"L.append(object) -- append object to end");
PyDoc_STRVAR(extend_doc,
diff --git a/Objects/longobject.c b/Objects/longobject.c
index 5876495..c9d138b 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -3467,7 +3467,7 @@
{"__getnewargs__", (PyCFunction)long_getnewargs, METH_NOARGS},
{"__format__", (PyCFunction)long__format__, METH_VARARGS},
{"__sizeof__", (PyCFunction)long_sizeof, METH_NOARGS,
- "Returns size in bytes"},
+ "Returns size in memory, in bytes"},
{NULL, NULL} /* sentinel */
};
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index 5405fec..e88ca05 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -3421,7 +3421,7 @@
{"__format__", object_format, METH_VARARGS,
PyDoc_STR("default object formatter")},
{"__sizeof__", object_sizeof, METH_NOARGS,
- PyDoc_STR("__sizeof__() -> size of object in bytes")},
+ PyDoc_STR("__sizeof__() -> size of object in memory, in bytes")},
{0}
};