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

extra_coverage.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))