Skip to content
Snippets Groups Projects
Select Git revision
  • fde54350a8d740308d12c2ea4c65fa5bea4f186a
  • wip-bootstrap default
  • dualcore
  • ch3/leds
  • ch3/time
  • master
6 results

array_construct.py

Blame
  • types.py 249 B
    # float types
    
    print(float)
    print(complex)
    
    print(type(float()) == float)
    print(type(complex()) == complex)
    
    print(type(0.0) == float)
    print(type(1j) == complex)
    
    # hashing float types
    
    d = dict()
    d[float] = complex
    d[complex] = float
    print(len(d))