From c1cbef234d37e4aa27e70ceccb491b2a5a85f1bc Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Thu, 16 Jul 2009 09:03:46 -0400 Subject: [PATCH] added a bunch of missing types --- porting-code-to-python-3-with-2to3.html | 39 +++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/porting-code-to-python-3-with-2to3.html b/porting-code-to-python-3-with-2to3.html index 108e74c..3641b35 100644 --- a/porting-code-to-python-3-with-2to3.html +++ b/porting-code-to-python-3-with-2to3.html @@ -1069,6 +1069,9 @@ except: Python 2 Python 3 +types.UnicodeType +str + types.StringType bytes @@ -1086,6 +1089,42 @@ except: types.NoneType type(None) + +types.BooleanType +bool + +types.BufferType +memoryview + +types.ClassType +type + +types.ComplexType +complex + +types.EllipsisType +type(Ellipsis) + +types.FloatType +float + +types.ObjectType +object + +types.NotImplementedType +type(NotImplemented) + +types.SliceType +slice + +types.TupleType +tuple + +types.TypeType +type + +types.XRangeType +range