Retaining an object

Leif K-Brooks eurleif at ecritters.biz
Wed Aug 10 03:35:26 CEST 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