[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Axelay-like background scroll getting operand error



2009/7/21 Henrique Nakashima <henrique.nakashima@xxxxxxxxx>
In Python, exponentiation can be done with the ** operand (2 ** 3 returns 8). I don't know whether that is different in any way from pow(2, 3), but help(pow) says it's the same.
It's not really different, but it can have a modulus argument, which is faster than (x**y)%z