Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r59180:cb22b1bb6c8f
Date: 2012-12-01 11:32 -0800
http://bitbucket.org/pypy/pypy/changeset/cb22b1bb6c8f/
Log: update docstrings
diff --git a/pypy/interpreter/generator.py b/pypy/interpreter/generator.py
--- a/pypy/interpreter/generator.py
+++ b/pypy/interpreter/generator.py
@@ -110,7 +110,7 @@
return self.send_ex(space.w_None, operr)
def descr_next(self):
- """x.next() -> the next value, or raise StopIteration"""
+ """x.__next__() <==> next(x)"""
return self.send_ex(self.space.w_None)
def descr_close(self):
diff --git a/pypy/module/cpyext/slotdefs.py b/pypy/module/cpyext/slotdefs.py
--- a/pypy/module/cpyext/slotdefs.py
+++ b/pypy/module/cpyext/slotdefs.py
@@ -606,7 +606,7 @@
TPSLOT("__iter__", tp_iter, slot_tp_iter, wrap_unaryfunc,
"x.__iter__() <==> iter(x)"),
TPSLOT("__next__", tp_iternext, slot_tp_iternext, wrap_next,
- "x.__next__() -> the next value, or raise StopIteration"),
+ "x.__next__() <==> next(x)"),
TPSLOT("__get__", tp_descr_get, slot_tp_descr_get, wrap_descr_get,
"descr.__get__(obj[, type]) -> value"),
TPSLOT("__set__", tp_descr_set, slot_tp_descr_set, wrap_descr_set,
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit