How to run a function in SPE on Python 2.5

2011-06-22 Thread bill lawhorn
I have a program: decrypt2.py which contains this function: def scramble2Decrypt(cipherText): halfLength = len(cipherText) // 2 oddChars = cipherText[:halfLength] evenChars = cipherText[halfLength:] plainText = for i in range(halfLength): plainText = plainText +

Re: How to run a function in SPE on Python 2.5

2011-06-22 Thread MRAB
On 23/06/2011 03:19, bill lawhorn wrote: I have a program: decrypt2.py which contains this function: def scramble2Decrypt(cipherText): halfLength = len(cipherText) // 2 oddChars = cipherText[:halfLength] evenChars = cipherText[halfLength:] plainText = for i in

Re: How to run a function in SPE on Python 2.5

2011-06-22 Thread FunAt Work
Not tried SPE. But in PyScripter, as simple as that. import sys def scramble2Decrypt(cipherText): halfLength = len(cipherText) // 2 oddChars = cipherText[:halfLength] evenChars = cipherText[halfLength:] plainText = for i in range(halfLength): plainText = plainText +