#python - Sun 18 Feb 2007 between 18:24 and 18:32

NY Lost Funds



AMDfanboywhat do you mean?
actionehird pasted http://pastie.textmate.org/41257
ehirdpasted http://pastie.textmate.org/41257
has to be a better way to do that..
JabapythAMDfanboy: ive found a way
deltabAMDfanboy: a2q5 a b
Jabapythfrom the commandline write echo "first
second"|file.py
deltabor echo $'first\nsecond\n'
Jabapythdeltab:that doesnt work
for some reason
deltabnot using bash?
Jabapythi am
deltabtry it
echo $'first\nsecond\n'
ehirdown up, who sent the very long filename crashing my client
AMDfanboypretty sure i'm using ksh
amon_echo -e "foo\nbar"
deltabthe ksh I have supports $'...' too
ehirdanyway, anone know?
*anyone
JabapythAMD: try calling is from python :) use os.system
deltabbut anyway, use command line args
AMDfanboyok, i'm confused, which one should i use here ;-)
thanks for hte help everyone!
Jabapythjust try them all :)
deltabAMDfanboy: a, b = sys.argv[1:]
AMDfanboy: is this homework?
Jabapythhes grading
AMDfanboyso what do i do with $?
ehirdanyone?
AMDfanboyi set the string to $?
and then use it later or something?
zerokehird, no idea, sorry. all i could think of would be using something like **args and then do some mapping with setattr :S
ehirdprobably
deltabAMDfanboy: what?
ehirdjust seems so long
JabapythAMD: what are you talking about?
AMDfanboydid anyone get anything working?
JabapythAMD: i used 'echo "first
second"|file.py'

Page: 1 8 15 22 29 36 

IrcArchive

NY Lost Funds