Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Module corresponds to a class, not to an object.

Afaik, you can't instantiate a module in python multiple times with different parameters.

In theory you would like to do this, but it is not supported in python, therefore you would use classes as poor man's modules.

    conn = import Database(host=..., user=...)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: