summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-01-25 17:31:58 (GMT)
committerGuido van Rossum <guido@python.org>1996-01-25 17:31:58 (GMT)
commit06d74418e5262f52ae9a21095b4cdb4c3d7fc876 (patch)
tree18b2a0ef914b8552f1fb33469d741577ebe00601 /Lib
parent724187929a9eec53e82f68d4826279723051dbcb (diff)
downloadcpython-06d74418e5262f52ae9a21095b4cdb4c3d7fc876.zip
cpython-06d74418e5262f52ae9a21095b4cdb4c3d7fc876.tar.gz
cpython-06d74418e5262f52ae9a21095b4cdb4c3d7fc876.tar.bz2
add ComplexType
Diffstat (limited to 'Lib')
-rw-r--r--Lib/types.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/types.py b/Lib/types.py
index fca95b3..0d25081 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('')