#python - Sun 18 Feb 2007 between 17:53 and 18:04

NY Lost Funds



ehirdis there an 'os.system_but_discard_output'
ah, > /dev/null works
(For the record, no, I do not care about windows.)
sancho___so it turns out all the hype about coming up to speed quickly with python is right. i'm mostly finished with my first project and it didn't take much to get going.
good stuff.
ehirdhardly hype, been around for years ;)
padtehird: you can mess around with sys.stdout and stderr as well. If you ever want to care about windows.
ehirdmeh, sys.system doesn't return the error code
phooey
Jabapythis that just windows (sys.stdout)?
ehird: use os.popen3
ehirdoh, it does :/
padtJabapyth: no, it's for all platforms afaik, so you can set it to something that discards input and be cross platform
AMDfanboyhi guys, i have a file with only two raw_inputs and i want to call it from the command line and pass arguments into them
gotta be easy?
Jabapythya
whats the trouble?
AMDfanboycouldnt figure it out, do i need to use map or osmething
?
Jabapythno need for map. just use raw_input()
actionehird pasted http://pastie.textmate.org/41254
ehirdpasted http://pastie.textmate.org/41254
meet mr. hacky command detection!
AMDfanboyi'm trying to call a file with raw_inputs in it
from the command line
linux
Jabapythso make it executable...
AMDfanboyscript.py arg1 arg2
Jabapythoh... you need sys.argv
ehirdyou can't make python handle that by default
try
Jabapyththat tells you the arguments it was called with
ehirdecho "arg1\narg2" | script.py
if its not your script, like you esem to be implying
AMDfanboyright, i'm grading HW assignments :-)
abtronichello
I have a memory corruption / segfault bug in a C API module I'm developing
are there any tools to help track this down?
all I have at the moment is a core dump of a crash inside the python runtime, but it's hard to tell where the root cause is
deltababtronic: load it into gdb and get a stack backtrace (bt)
abtronicI've got that

Page: 4 11 18 25 32 39 

IrcArchive

NY Lost Funds