Keeping a database connection with a Singleton?

exhuma.twn exhuma at gmail.com
Wed Sep 19 09:50:17 EDT 2007


On Sep 19, 3:45 pm, Peter Otten <__pete... at web.de> wrote:
> exhuma.twn wrote:
[...]
>
> By the way, there is a pythonic (near) singleton: the module. So if you go
> with option 2, just move the connection setup into a separate module that
> you can import into client code.
>
> Peter

You say "(near)" singleton. What's the difference then?





More information about the Python-list mailing list