Everthing is an object. And modules are no exception. Therefore:
import re, math print(id(re), id(math)) print(re > math) print(id(re) > id(math)) print(re < math) print(id(re) < id(math)) print(id(re), id(math))
In my case:
39785048 40578360 False False True True 39785048 40578360
Your mileage may vary because your identifiers will not be mine, and therefore the comparison may be canceled in your case.
mementum
source share