change sqlalchemy.types to sqlalchemy.sqltypes

Issue #215 resolved
Former user created an issue

types conflicts with standard python types module. It's confused.

I cannot run my datamodel scripts as

if __name__ == '__main__':
  doTests()

without rewrite

from sqlalchemy import types

to

from sqlalchemy import types as sqltypes

Of course now I use

import sqlalchemy as SA
SA.String(100)

but I think it will be usefull change. You can leave sqlalchemy.types as deprecated some time

Comments (4)

  1. Mike Bayer repo owner

    might want to "wontfix" this as py2.5 now has absolute module imports which will be standardized in 2.6.

  2. Log in to comment