aboutsummaryrefslogtreecommitdiffstats
path: root/examples/simple_test.py
blob: 7d1e98a97124dadfd5cb621eea584e5fc47d61f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# -*- coding: UTF-8 -*-

from simple.py.simple_py import Simple, Mixin, Interface

so = Simple(None)

so.a_set(4)

a = so.a_get()
a2 = so.a_square_get()
a3 = so.a_power_3_get()

print "a = %d; a^2 = %d; a^3 = %d " %(a, a2, a3)