array indexing works now also with variables

This commit is contained in:
David Halter
2012-08-06 17:47:43 +02:00
parent 8780199a33
commit c154bdad0e
5 changed files with 56 additions and 10 deletions

View File

@@ -99,3 +99,12 @@ def iter(collection, sentinel=None):
yield collection()
else:
yield next(collection)
# basic types
class int():
def __init__(self, x, base=None):
self.x = x
class str():
def __init__(self, obj):
self.obj = obj