[pypy-svn] r7283 - pypy/trunk/src/goal
hpk at codespeak.net
hpk at codespeak.net
Tue Nov 16 14:16:53 CET 2004
Author: hpk
Date: Tue Nov 16 14:16:53 2004
New Revision: 7283
Modified:
pypy/trunk/src/goal/buildcache.py
Log:
minimized the code for building the cached value somewhat
Modified: pypy/trunk/src/goal/buildcache.py
==============================================================================
--- pypy/trunk/src/goal/buildcache.py (original)
+++ pypy/trunk/src/goal/buildcache.py Tue Nov 16 14:16:53 2004
@@ -21,17 +21,8 @@
gen.func_code.co_name
str({'co_name': ('f',)}), str(object.__init__.im_func.func_code)
- "for %r" % ({'x': gen})
- ("%02d"%1)
- ("%05d"%1)
- ("%-05d"%1)
- ("%04f"%2.25)
- ("%05g"%2.25)
- ("%-05g"%2.25)
- ("%05s"%2.25)
- ('<%s>' % [1,2])
- ('<%s-%s>' % ([1,2], [3,4]))
-
+ #"for %r" % ({'x': gen})
+ "%02d %04f %05g %05s <%s> %r" % (1, 2.25, 2.25, 2.25, [1,2], {'x': gen})
for x in gen():
pass
More information about the Pypy-commit
mailing list