repr for PickleType

Issue #2584 resolved
Mike Bayer repo owner created an issue

needs to be eval-capable for alembic

from sqlalchemy import PickleType

print repr(PickleType())

Comments (7)

  1. Mike Bayer reporter

    basically repr() gets put straight into your alembic script there, so in the vast majority of, and possibly all, cases it should say "PickleType()". we're using a library function called generic_repr() to do it, which should be preventing the "pickler" from being in the repr(), so maybe in this case we need to hardcode it, since we don't really want "pickler" or "comparator" in there either; these are all python functions/modules which don't produce eval-able with repr().

  2. Log in to comment