From: Mike Bayer Date: Thu, 20 Oct 2016 20:29:30 +0000 (-0400) Subject: Document Enum.enums is now a list X-Git-Tag: rel_1_1_3~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39d5a97266544f45d8b2f8d666d41b0dafb38c42;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Document Enum.enums is now a list Change-Id: I27251c262f919df1b084cbb08759f672f05cd3f7 Fixes: #3834 --- diff --git a/doc/build/changelog/migration_11.rst b/doc/build/changelog/migration_11.rst index ce17fd3f64..04bdd72e99 100644 --- a/doc/build/changelog/migration_11.rst +++ b/doc/build/changelog/migration_11.rst @@ -1528,6 +1528,13 @@ string values:: e.execute(t.insert(), {"value": MyEnum.two}) assert e.scalar(t.select()) is MyEnum.two +The ``Enum.enums`` collection is now a list instead of a tuple +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +As part of the changes to :class:`.Enum`, the :attr:`.Enum.enums` collection +of elements is now a list instead of a tuple. This because lists +are appropriate for variable length sequences of homogeneous items where +the position of the element is not semantically significant. :ticket:`3292`