[pypy-svn] pypy fast-forward: Update a label and a docstring.

amauryfa commits-noreply at bitbucket.org
Sat Jan 8 00:14:50 CET 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: fast-forward
Changeset: r40475:8f31febb30f0
Date: 2011-01-07 22:50 +0100
http://bitbucket.org/pypy/pypy/changeset/8f31febb30f0/

Log:	Update a label and a docstring. Yes, CPython has tests for this.

diff --git a/pypy/interpreter/astcompiler/codegen.py b/pypy/interpreter/astcompiler/codegen.py
--- a/pypy/interpreter/astcompiler/codegen.py
+++ b/pypy/interpreter/astcompiler/codegen.py
@@ -1115,7 +1115,7 @@
         self.emit_op_arg(ops.CALL_FUNCTION, 1)
 
     def visit_GeneratorExp(self, genexp):
-        self._compile_comprehension(genexp, "<genexp>", GenExpCodeGenerator)
+        self._compile_comprehension(genexp, "<genexpr>", GenExpCodeGenerator)
 
     def visit_SetComp(self, setcomp):
         self._compile_comprehension(setcomp, "<setcomp>",

diff --git a/pypy/interpreter/generator.py b/pypy/interpreter/generator.py
--- a/pypy/interpreter/generator.py
+++ b/pypy/interpreter/generator.py
@@ -108,7 +108,7 @@
         return self.send_ex(space.w_None, operr)
              
     def descr_next(self):
-        """x.next() -> the next value, or raise StopIteration"""
+        """next() -> the next value, or raise StopIteration"""
         return self.send_ex(self.space.w_None)
  
     def descr_close(self):


More information about the Pypy-commit mailing list