It seems that MetaData.sorted_tables returns a different result each time.
While the results seem to be always correct, it is an odd behavior.
I would expect sorted_tables to return the same results every time
import sqlalchemy as sa
engine = sa.create_engine("<db_url>", echo=False)
meta = sa.MetaData(bind=engine, reflect=True)
a = [t.name for t in meta.sorted_tables]
meta = sa.MetaData(bind=engine, reflect=True)
b = [t.name for t in meta.sorted_tables]
*a and b are not sorted the same*
*BTW: meta.tables is consistent ...*
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.