[pypy-svn] r45720 - pypy/branch/pypy-more-rtti-inprogress/rpython/tool
arigo at codespeak.net
arigo at codespeak.net
Thu Aug 16 15:46:37 CEST 2007
Author: arigo
Date: Thu Aug 16 15:46:36 2007
New Revision: 45720
Modified:
pypy/branch/pypy-more-rtti-inprogress/rpython/tool/rffi_platform.py
Log:
Fix example code.
Modified: pypy/branch/pypy-more-rtti-inprogress/rpython/tool/rffi_platform.py
==============================================================================
--- pypy/branch/pypy-more-rtti-inprogress/rpython/tool/rffi_platform.py (original)
+++ pypy/branch/pypy-more-rtti-inprogress/rpython/tool/rffi_platform.py Thu Aug 16 15:46:36 2007
@@ -491,5 +491,5 @@
S = getstruct(name, '\n'.join(headers), fields)
- for key, value in S._fields_:
- print key, value
+ for name in S._names:
+ print name, getattr(S, name)
More information about the Pypy-commit
mailing list