comparison test/test01.py @ 0:3679d2d8443a

Import from CVS and goto mez_xml-0.4
author Thinker K.F. Li <thinker@branda.to>
date Wed, 13 Feb 2008 22:33:51 +0800
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:3679d2d8443a
1 from __future__ import with_statement
2 from test_temp01 import test_temp01
3 from sys import stdout
4
5 temp = test_temp01(stdout)
6 with temp:
7 temp.NAME = 'foo'
8 temp.item = 'product'
9 for i in range(5):
10 with temp.LOOP:
11 temp.cost = '$' + str(i)
12 temp.number = str(i)
13 pass
14 pass
15 pass
16 temp.commit()