On 10/28/07, Lawrence Shafer <[EMAIL PROTECTED]> wrote:
>
> Why doesn't this fill otp with the output of ls?? (I know python has
> it's own file tools, I'm just playing around ;)
>
> import os
> cmd="""ls"""
> otp=os.system(cmd)
> print otp
> ___
> Tutor
On 9/26/07, Ulrich Holtzhausen <[EMAIL PROTECTED]> wrote:
>
> Well I guess the subject/topic here describes it all. I am looking for a
> nice collection of SIMPLE python scripts, IE: How to manipulate files,
> text, how to create a bot, how to work with socks...making a
> server/client, converting
Thanks, everyone, for your help.
It was a pretty narrow question because it's a pretty specific task, but
only because I was guessing there was more than one way of shelling an
acorn. My original idea was something a lot like:
lst = []
chars = '@*&^$&[EMAIL PROTECTED](&@$*(&[EMAIL PROTECTED](*&*
I was wondering, recently, the most expedient way to take a string with
[EMAIL PROTECTED]&*] and alpha-numeric characters [ie. "[EMAIL
PROTECTED]@*$g@)$&^@&^$F"] and
place all of the letters in a string or list. I thought there could be
obvious ways:
A) Find all the letters, put them in a list, o