Retaining an object

2005-08-09 Thread sysfault
Hello, I have a function which takes a program name, and 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, I
tried using double quotes, and such, but no luck. I was looking for a way
to have var_name expanded without getting a syntax error by ommiting the
surrounding quotes. I need to use a variable, it's the argument to a
function.

-- 
A wise man knows he knows nothing.

-- 
http://mail.python.org/mailman/listinfo/python-list


Decorator and Metaclasses Documentation

2005-08-21 Thread sysfault
Does anyone know of any good documentation on these topics, doesn't look
like the official python tutorial covers them. Thanks in advance.
-- 
A wise man knows he knows nothing.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Decorator and Metaclasses Documentation

2005-08-21 Thread sysfault
On Sun, 21 Aug 2005 17:01:13 -0700, Jeffrey E. Forcier wrote:

> Amusingly, I was just perusing these links earlier today. Go go Firefox
> history search!
> 
> http://www.python.org/2.2/descrintro.html
> http://users.rcn.com/python/download/Descriptor.htm


Are descriptors the same thing as decorators?
-- 
A wise man knows he knows nothing.

-- 
http://mail.python.org/mailman/listinfo/python-list