[Checkins] SVN: zope.schema/trunk/ Change the order of classes in SET_TYPES tuple back to (SetType, set)
Dan Korostelev
nadako at gmail.com
Tue Dec 2 18:15:05 EST 2008
Log message for revision 93560:
Change the order of classes in SET_TYPES tuple back to (SetType, set)
Changed:
U zope.schema/trunk/CHANGES.txt
U zope.schema/trunk/src/zope/schema/_field.py
-=-
Modified: zope.schema/trunk/CHANGES.txt
===================================================================
--- zope.schema/trunk/CHANGES.txt 2008-12-02 23:10:13 UTC (rev 93559)
+++ zope.schema/trunk/CHANGES.txt 2008-12-02 23:15:04 UTC (rev 93560)
@@ -8,6 +8,10 @@
- Move zope.testing to "test" extras_require, as it is not needed
for zope.schema itself.
+- Change the order of classes in SET_TYPES tuple, introduced in
+ previous release to one that was in 3.4 (SetType, set), because
+ third-party code could be dependent on that order. The one
+ example is z3c.form's converter.
3.5.0a1 (2008/10/10)
--------------------
Modified: zope.schema/trunk/src/zope/schema/_field.py
===================================================================
--- zope.schema/trunk/src/zope/schema/_field.py 2008-12-02 23:10:13 UTC (rev 93559)
+++ zope.schema/trunk/src/zope/schema/_field.py 2008-12-02 23:15:04 UTC (rev 93560)
@@ -24,7 +24,7 @@
import sys
if sys.version_info < (2, 6): # deprecation warnings
from sets import Set as SetType
- SET_TYPES = set, SetType
+ SET_TYPES = SetType, set
else:
SET_TYPES = set,
More information about the Checkins
mailing list