summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/schema.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2019-07-10 16:12:48 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2019-07-11 00:19:34 -0400
commit2cc7308c96f5598ba0aea9a240b9a52629042d07 (patch)
treedcef3a5e5831ad20f012c1ab31469f5d0cd91c4e /lib/sqlalchemy/sql/schema.py
parent3238d953b42f67761dc3019bd27f2960ae2e525f (diff)
downloadsqlalchemy-2cc7308c96f5598ba0aea9a240b9a52629042d07.tar.gz
Add performance improvement for Enum w/ Python 2 enum library
Adjusted the initialization for :class:`.Enum` to minimize how often it invokes the ``.__members__`` attribute of a given PEP-435 enumeration object, to suit the case where this attribute is expensive to invoke, as is the case for some popular third party enumeration libraries. Fixes: #4758 Change-Id: Iffeb854c67393bdcb288944fc357a074e20e1325
Diffstat (limited to 'lib/sqlalchemy/sql/schema.py')
0 files changed, 0 insertions, 0 deletions