class inheritance (only instances)

This commit is contained in:
David Halter
2012-05-03 01:10:07 +02:00
parent 1340ccb33d
commit 744715af5e
6 changed files with 103 additions and 8 deletions

View File

@@ -13,11 +13,24 @@ a.append
a = list
b ="";b=1
b = 1; b = ""
#? ['upper']
b.upper
#? []
b.real
a = 1
temp = b;
b = a
a = temp
#? ['real']
b.real
#? []
b.upper
#? []
a.real
#? ['upper']
a.upper
# -----------------
# tuples exchanges
@@ -42,6 +55,15 @@ a.real
#? ['upper']
a.upper
b, a = a, b
#? ['real']
a.real
#? []
a.upper
#? []
b.real
#? ['upper']
b.upper
# -----------------
# function stuff