[pypy-svn] r13126 - pypy/dist/pypy/rpython/test
ericvrp at codespeak.net
ericvrp at codespeak.net
Mon Jun 6 22:41:01 CEST 2005
Author: ericvrp
Date: Mon Jun 6 22:41:00 2005
New Revision: 13126
Modified:
pypy/dist/pypy/rpython/test/snippet.py
Log:
added main entrypoint, nothing to look at here
Modified: pypy/dist/pypy/rpython/test/snippet.py
==============================================================================
--- pypy/dist/pypy/rpython/test/snippet.py (original)
+++ pypy/dist/pypy/rpython/test/snippet.py Mon Jun 6 22:41:00 2005
@@ -114,7 +114,7 @@
if n < 12.5:
n += 666
- while n:
+ while n >= 0:
i = i + n
n = n - 1
return i
@@ -128,3 +128,19 @@
n += float(6)
n += float(7.8)
n += float(n)
+
+
+def main(args=[]):
+ b = True
+ i = 23
+ f = 45.6
+ b1 = bool1(b)
+ i1 = int1(i)
+ f1 = float1(f)
+ #print 'bool1(%d)' % b, b1
+ #print 'int1(%d)' % i, i1
+ #print 'float1(%s)' % f, f1
+
+
+if __name__ == '__main__':
+ main()
More information about the Pypy-commit
mailing list