- edited description
Importing * from sqlalchemy.orm.interfaces causes AttributeError
This bug appears on both 0.9.3 and the latest development version (from Github). I also have an installation of 0.5.8, which does not exhibit the bug.
To reproduce, simply run the following in the Python interpreter:
>>> from sqlalchemy.orm.interfaces import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'ExtensionOption'
Due to the simplicity of the bug, I wasn't sure if I was just missing something obvious, but a quick search didn't lead to any relevant information on ExtensionOption.
Comments (8)
-
reporter -
repo owner certainly nothing new, this goes back to 0.7.9
-
repo owner - marked as trivial
-
repo owner here's where we removed the use of ExtensionOption, there doesn't seem to be a specific note about it being removed except that the new event system took over. nobody noticed it missing so my guess that nobody ever used it has held up so far... https://bitbucket.org/zzzeek/sqlalchemy/commits/d505ea71aed44ecae718052131dc0a2fb2c9dd99#Llib/sqlalchemy/orm/init.pyF1027
-
reporter Hmm, interesting. It's not a huge deal that it's gone now. We're not using ExtensionOption, so I can just change our import so that it doesn't complain.
-
reporter Thanks for the quick response :)
-
repo owner - changed status to resolved
- Removed stale names from
sqlalchemy.orm.interfaces.__all__
and refreshed with current names, so that animport *
from this module again works. fixes#2975
→ <<cset 2d146ddad97e>>
-
repo owner - Removed stale names from
sqlalchemy.orm.interfaces.__all__
and refreshed with current names, so that animport *
from this module again works. fixes#2975
→ <<cset a3ad92de4b1b>>
- Removed stale names from
- Log in to comment