On my cygwin system I just do the following for my network drive 'q'
import commands
print commands.getoutput('ls /cygdrive/q')
Run it as - python fileList.py
Here is the output:
DataTables
Functions
Object_Repositories
Recovery_Scenarios
Scripts
--
http://mail.python.org/mailman/listinfo/pyth
Do the same thing with an interconversion of tuple and list and you will be off
to the older way:
a=(1,2,3)
b=list(a)
b[0]=11
print a
print b
Output:
(1, 2, 3)
[11, 2, 3]
--
http://mail.python.org/mailman/listinfo/python-list
Don't relate it anyhow to foreach of perl I would say, although the behaviour
may be same in some aspect
--
http://mail.python.org/mailman/listinfo/python-list
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 +