- marked as minor
create_engine() error when poolclass=None
Issue #437
resolved
import sqlalchemy [BR] engine = sqlalchemy.create_engine('sqlite://', echo=True, poolclass=None)[BR] Traceback (most recent call last):[BR] File "<stdin>", line 1, in ?[BR] File "/usr/lib/python2.4/site-packages/cairo/init.py", line 91, in create_engine[BR] File "build/bdist.linux-i686/egg/sqlalchemy/engine/strategies.py", line 63, in create[BR] File "build/bdist.linux-i686/egg/sqlalchemy/util.py", line 64, in get_cls_kwargs[BR] AttributeError: 'NoneType' object has no attribute 'mro'[BR]
Comments (3)
-
repo owner -
Account Deleted The doc at "Database Engine Options" says:[BR] poolclass=None - a sqlalchemy.pool.Pool subclass that will be instantated in place of the default connection pool. So I tried to explicitly pass the default argument.
-
- changed status to resolved
- Log in to comment
why send "None" for poolclass ? if poolclass is not defined in **kwargs then it falls back to default, else it uses the argument. i dont see why thats unreasonable.