QuotedString must be str? (psycopg)

A

Alban Hertroys

I noticed this:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: argument 1 must be str, not unicode


Is it possible somehow to use a unicode string, or would I have to
escape the strings with my own function (not really a problem, I did
that before I found out QuotedString exists, but it seems a tad ugly...).

Alban.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top