Re: python setup.py install on Vista?

2008-04-18 Thread Karl-Heinz Ruskowski
hi
> well using windows vista, where the h*** am i supposed to type this?
you have to include the path to the python interpreter like this 
c:\programs\python\python.exe pythonfile.py 
(replace this with your path) 
or you set an alias called python - i don't know how to that under windows, 
especially visa :D 

good luck 

-- 
GPG key: 0x04B3BB96


pgpQLpoZyTTGB.pgp
Description: PGP signature
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Another MySQL Images Question

2008-04-18 Thread Karl-Heinz Ruskowski
Hi, 

>   cursor.execute('update products set pic1="%s" where id="%s", ;',
> (pic1, id))

Shouldn't it be something like 
cursor.execute('update products set pic1="%s" where id="%s", ;' % (pic1, id))

-- 
GPG key: 0x04B3BB96


pgpiL4LACYHv7.pgp
Description: PGP signature
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Issue with inspect module

2008-04-19 Thread Karl-Heinz Ruskowski
> Why does the inspect module cause the output
> to be printed twice?

I also tested it, no problem here either. 
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: manipulating class attributes from a decorator while the class is being defined

2008-04-19 Thread Karl-Heinz Ruskowski
> How can I reach the class attribute `regexps' from within a decorator?
Now, the first way that comes to my mind is simply overloading the class and 
set your regexps variable in your new class. 

The other way is to create an object and set it more manually (obj.regexps = 
['.*']). Which for me is an ugly this to do because the first way is far more 
elegant :) 

-- 
GPG key: 0x04B3BB96


pgpqg8hSnWlWX.pgp
Description: PGP signature
-- 
http://mail.python.org/mailman/listinfo/python-list