Re: [Tutor] Python IDE

2007-06-12 Thread Matt Erasmus
Check out geany. It's fairly simple but I've found it very neat and simple. http://geany.uvena.de/ On 6/11/07, scott <[EMAIL PROTECTED]> wrote: Could someone suggest a few good IDE's for me to look at. I would need a IDE that haves syntax highlighting and I also really like type compl

[Tutor] Sloppy Code ?

2006-11-13 Thread Matt Erasmus
Hi guys 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() stdin.close() stderr.close() stdout.close() ... report.write("System Re

Re: [Tutor] Sloppy Code ?

2006-11-13 Thread Matt Erasmus
Hi Michael Yes, that does help, although it doesn't print the FQDN which is what I'm really after. But thanks to you I now know about the socket module (is that the right terminology ?) and using the Python script in Vim I found socket.getfqdn() which prints exactly what I needed... So my code go