Conecte-se a um URI no postgres

Eu estou supondo que esta é uma pergunta básica, mas não consigo entender por quê:

import psycopg2
psycopg2.connect("postgresql://postgres:postgres@localhost/postgres")

Está dando o seguinte erro:

psycopg2.OperationalError: missing "=" after
"postgresql://postgres:postgres@localhost/postgres" in connection info string

Qualquer ideia? De acordo comos documentos sobre seqüências de conexão Eu acredito que deve funcionar, no entanto, só faz assim:

psycopg2.connect("host=localhost user=postgres password=postgres dbname=postgres")

Estou usando a versão mais recente do psycopg2 no Python2.7.3 no Ubuntu12.04

questionAnswers(2)

yourAnswerToTheQuestion