> IMO os.popen() is wrong here.

Should os.popen go away entirely?

Apparently, it does two things:
a) redefine close to block until the child process terminated,
and
b) wrap stdout/stdout with a TextIOWrapper

If there is an actual need to specify an encoding when communicating
with the subprocess, I'd rather make that parameter to Popen itself.

Regards,
Martin
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to