Wow, just found out this morning that the following
terms of:

import os
pr = os.popen("lpr", "w")
pr.write(month), pr.write(" "),
pr.write("\t\tLine ")

was deprecated. In place there of, there is
a subprocess to use.

I have not been able to figure out on how to use a
subprocess in place of my former popen. I have been
reading the new materials on the subprocess  all day
and it is still not quite understandable.

Is there an easy tutorial of how to replace popen
with the subprocess?

I am using Python 2.7.6 on an Ubuntu 14.04.1 system.

In advance, thanking you all for your assistance.

Ken

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to