18

Every time I write

import psycopg2

I wonder why it is called psycopy2, because I always forget the true spelling? Is there any history I can know so that I could remember it clearly?

Shmuel Kamensky
  • 411
  • 1
  • 5
  • 13
Joe Zhow
  • 833
  • 7
  • 17
  • You're right. You have written psycopy2 instead of psycopg2. I don't know the origin of the name. What I use to remember it is thinking in a "psyco pig". Maybe it can help. – Egl Jan 05 '17 at 11:22
  • oh...It's too awkward...anyway, thanks for your answer. – Joe Zhow Jan 06 '17 at 03:26

1 Answers1

24

The quote below is by Federico Di Gregorio, the author of the package. After dealing with a badly written python+postgres driver in the company he worked for at the time, he wrote his own simplified version (psycopg) and:

I wanted to call it psychopg (a reference to their psychotic driver) but I typed the name wrong.

I'm assuming the psycho in what would have been psychopg stands for psychotic while pg stands for postgres. So 'psychotic postgres'.

Source

Shmuel Kamensky
  • 411
  • 1
  • 5
  • 13