Joson zhuchu...@gmail.com wrote
I use debian os. and I'd tried to set the classpath in /etc/profile
(export
CLASSPATH=...), and the pythonpath too (export PYTHONPATH=...). I
found
it didn't work.
So far as I know CLASSPATH is only used by Java.
PYTHONPATH should work...
Does it work in
I'm using Debian. Used to be etch, but I did a double dist-upgrade recently.
So, whatever the current testing release is. My shell is zsh, but bash should
work the same.
PYTHONPATH should have worked. CLASSPATH is for Java.
Here's the documentation link you want:
I really like Ricardo's solution ... attribute access is a nice touch,
bookmarking it now.
FWIW, it would seem that psycopg2 also has a DictCursor (and
DictConnection).
http://initd.org/psycopg/docs/extras.html
Ah, yes, there it is. Thank you. This list rocks!