summaryrefslogtreecommitdiffstats
path: root/Modules/_operator.c
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-05-08 07:56:32 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2013-05-08 07:56:32 (GMT)
commit0fbdf261582b16e409ae929bdf9107ae9fe817fb (patch)
tree8277c639350d69afb59608effe7038385cb615d3 /Modules/_operator.c
parent6f75a3e89ededd669be6517fe6f941c7a930df1b (diff)
parentbabc8227cc842287cf701674f2807c392b7a6350 (diff)
downloadcpython-0fbdf261582b16e409ae929bdf9107ae9fe817fb.zip
cpython-0fbdf261582b16e409ae929bdf9107ae9fe817fb.tar.gz
cpython-0fbdf261582b16e409ae929bdf9107ae9fe817fb.tar.bz2
#16523: merge with 3.3.
Diffstat (limited to 'Modules/_operator.c')
-rw-r--r--Modules/_operator.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/_operator.c b/Modules/_operator.c
index ab89c6d..e8bef04 100644
--- a/Modules/_operator.c
+++ b/Modules/_operator.c
@@ -485,8 +485,8 @@ PyDoc_STRVAR(itemgetter_doc,
"itemgetter(item, ...) --> itemgetter object\n\
\n\
Return a callable object that fetches the given item(s) from its operand.\n\
-After f=itemgetter(2), the call f(r) returns r[2].\n\
-After g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])");
+After f = itemgetter(2), the call f(r) returns r[2].\n\
+After g = itemgetter(2, 5, 3), the call g(r) returns (r[2], r[5], r[3])");
static PyTypeObject itemgetter_type = {
PyVarObject_HEAD_INIT(NULL, 0)
@@ -737,9 +737,9 @@ PyDoc_STRVAR(attrgetter_doc,
"attrgetter(attr, ...) --> attrgetter object\n\
\n\
Return a callable object that fetches the given attribute(s) from its operand.\n\
-After f=attrgetter('name'), the call f(r) returns r.name.\n\
-After g=attrgetter('name', 'date'), the call g(r) returns (r.name, r.date).\n\
-After h=attrgetter('name.first', 'name.last'), the call h(r) returns\n\
+After f = attrgetter('name'), the call f(r) returns r.name.\n\
+After g = attrgetter('name', 'date'), the call g(r) returns (r.name, r.date).\n\
+After h = attrgetter('name.first', 'name.last'), the call h(r) returns\n\
(r.name.first, r.name.last).");
static PyTypeObject attrgetter_type = {