control structures (was "Re: Sins")

Vadim Chugunov chega at my-deja.com
Sun Jan 9 21:27:47 EST 2000


> states= {
>     1: compile("x=x+1","<string>","single"),
>     2: compile("x=x+2","<string>","single")
> }

Dammit. This doesn't work for compiled code because of a bug in Python.
Plain strings work fine tho':
states= {
    1: "x=x+1",
    2: "x=x+2"
}


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list