[pypy-svn] pypy default: Bah, fix for lib-python/2.7.0/test/test_generator, which is done by doctests.

arigo commits-noreply at bitbucket.org
Fri Jan 21 17:49:55 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r41167:1b16d9e19116
Date: 2011-01-21 17:49 +0100
http://bitbucket.org/pypy/pypy/changeset/1b16d9e19116/

Log:	Bah, fix for lib-python/2.7.0/test/test_generator, which is done by
	doctests.

diff --git a/pypy/interpreter/generator.py b/pypy/interpreter/generator.py
--- a/pypy/interpreter/generator.py
+++ b/pypy/interpreter/generator.py
@@ -88,7 +88,7 @@
             self.running = False
 
     def descr_throw(self, w_type, w_val=None, w_tb=None):
-        """throw(typ[,val[,tb]]) -> raise exception in generator,
+        """x.throw(typ[,val[,tb]]) -> raise exception in generator,
 return next yielded value or raise StopIteration."""
         return self.throw(w_type, w_val, w_tb)
 
@@ -108,11 +108,11 @@
         return self.send_ex(space.w_None, operr)
              
     def descr_next(self):
-        """next() -> the next value, or raise StopIteration"""
+        """x.next() -> the next value, or raise StopIteration"""
         return self.send_ex(self.space.w_None)
  
     def descr_close(self):
-        """close(arg) -> raise GeneratorExit inside generator."""
+        """x.close(arg) -> raise GeneratorExit inside generator."""
         space = self.space
         try:
             w_retval = self.throw(space.w_GeneratorExit, space.w_None,


More information about the Pypy-commit mailing list