[pypy-svn] r29002 - pypy/dist/pypy/doc
mwh at codespeak.net
mwh at codespeak.net
Tue Jun 20 16:51:13 CEST 2006
Author: mwh
Date: Tue Jun 20 16:51:12 2006
New Revision: 29002
Modified:
pypy/dist/pypy/doc/interpreter.txt
Log:
make py.test interpreter.txt --enable-doctests a bit closer to passing.
Modified: pypy/dist/pypy/doc/interpreter.txt
==============================================================================
--- pypy/dist/pypy/doc/interpreter.txt (original)
+++ pypy/dist/pypy/doc/interpreter.txt Tue Jun 20 16:51:12 2006
@@ -42,12 +42,12 @@
>>> import dis
>>> def f(x):
- return x + 1
+ ... return x + 1
>>> dis.dis(f)
- 4 0 LOAD_FAST 0 (x)
- 3 LOAD_CONST 1 (1)
- 6 BINARY_ADD
- 7 RETURN_VALUE
+ 2 0 LOAD_FAST 0 (x)
+ 3 LOAD_CONST 1 (1)
+ 6 BINARY_ADD
+ 7 RETURN_VALUE
CPython as well as PyPy are stack-based virtual machines, i.e.
they don't have registers but put object to and pull objects
More information about the Pypy-commit
mailing list