mirror of
https://github.com/python/cpython.git
synced 2025-08-27 12:16:04 +00:00
add ComplexType
This commit is contained in:
parent
724187929a
commit
06d74418e5
1 changed files with 4 additions and 0 deletions
|
@ -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('')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue