Quick questions about globals and database connections
dan at tombstonezero.net
Wed Apr 5 22:52:14 EDT 2017
On Wed, 05 Apr 2017 22:00:46 -0400, DFS wrote:
> I have a simple hard-coded check in place before even trying to connect:
> if dbtype not in ('sqlite postgres'):
> print "db type must be sqlite or postgres"
That's not doing what you think it is.
Hint: What is ('sqlite postgres')?
> Good comments, Lt. Dan. Thanks.
More information about the Python-list