`from sqlalchemy.sql.expression import *` fails with AttributeError

Issue #3878 resolved
Sönke Niekamp created an issue

Tested with sqlalchemy version 1.1.4 as well as current master branch.

>>> from sqlalchemy.sql.expression import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'Any'

I think that should be 'any_' and 'all_' in __all__.

Comments (1)

  1. Mike Bayer repo owner

    Correct any_, all_ spelling

    • Fixed 1.1 regression where "import *" would not work for sqlalchemy.sql.expression, due to mis-spelled "any_" and "all_" functions.

    Change-Id: I25d1cd34c9239dbdcdb1889c5cda2474557e1418 Fixes: #3878

    → <<cset 04d799863f71>>

  2. Log in to comment