Retaining an object

Leif K-Brooks eurleif at ecritters.biz
Tue Aug 9 21:35:26 EDT 2005


sysfault wrote:
> I'm using os.popen() to open that program via the syntax:
> os.popen('pidof var_name', 'r'), but as you know var_name is not
> expanded within single quotes,

os.popen('pidof %s' % var_name, 'r')



More information about the Python-list mailing list