in python this code works:
Code: Select all
a = ['a','b','c','d','e']
b = a
Code: Select all
['a','b','c','d','e']
but when i go like this on renpy:
Code: Select all
c = 'abcde'
global b
b = [] ## the suspicious variable
def sveSpl(x)
c = x[0]
for d in range(1, len(x)):
c += (' '+c[d])
e = c.split()
b = e ## still suspicious variable
return e
Code: Select all
hmm = sveSpl('abcde')
e "[hmm!]"
e "[b!]" ## the suspicious variable, again
Code: Select all
[]
Code: Select all
['a', 'b', 'c', 'd', 'e']
