From: Guido van Rossum Date: Thu, 25 Jan 1996 17:31:58 +0000 (+0000) Subject: add ComplexType X-Git-Tag: v1.4b1~391 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=06d74418e5262f52ae9a21095b4cdb4c3d7fc876;p=thirdparty%2FPython%2Fcpython.git add ComplexType --- diff --git a/Lib/types.py b/Lib/types.py index fca95b33778d..0d2508113950 100644 --- a/Lib/types.py +++ b/Lib/types.py @@ -9,6 +9,10 @@ TypeType = type(NoneType) IntType = type(0) LongType = type(0L) FloatType = type(0.0) +import __builtin__ +if vars(__builtin__).has_key('complex'): + ComplexType = type(complex(0,1)) +del __builtin__ StringType = type('')