[Tutor] Sloppy Code ?
matt.erasmus at gmail.com
Mon Nov 13 16:13:25 CET 2006
Very new to python programming but am really enjoying it.
Anyway, I was just wondering if this code could be improved on in anway.
stdin, stdout, stderr = os.popen3('/bin/hostname -f')
system_name = stdout.read()
report.write("System Report for: ")
Is there a better way of doing this ? It works for what I want to do,
but I would
like to know if there's another way of doing things....
Thanks in advance.
matt.erasmus (at) gmail (dot) com
More information about the Tutor