Skip to content

Instantly share code, notes, and snippets.

@bitprophet
Created July 27, 2011 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bitprophet/fe87f5cdc6823be02949 to your computer and use it in GitHub Desktop.
Save bitprophet/fe87f5cdc6823be02949 to your computer and use it in GitHub Desktop.
>>> from psycopg2 import STRING
>>> STRING
<psycopg2._psycopg.type object at 0x1bab578
>>>> STRING in ['a', 'b']
Traceback (most recent call last):
File "<input>", line 1, in <module>
ValueError: invalid literal for int() with base 10: 'a'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment