O'Reilly logo

Python Programming On Win32 by Mark Hammond, Andy Robinson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Note 1

As a guideline, the connection constructor parameters should be implemented as keyword parameters for more intuitive use and follow this order of parameters.

dsn = Data source name as string
user = User name as string (optional)
password = Password as string (optional)
host = Hostname (optional)
database = Database name (optional)

For example, a connect could look like this:

connect(dsn='myhost:MYDB',user='guido',password='234$¶')

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required