title: Is a Python function stored as an object?
body: <p>This query is in continuation with <a href="https://stackoverflow.com/questions/22604974/python-memory-model-for-this-program">link</a> to understand further on this point: </p>
  
  <blockquote>
    <p>In the case of functions, you have an object which has certain fields,
    which contain e. g. the code in terms of bytecode, the number of
    parameters it has, etc.</p>
  </blockquote>
  
  <p>My question:</p>
  
  <p>1) How do i visualise a function being represented as an object?(NPE answered this question here)</p>
  
  <p>2) How do i visualise an higher order function being represented as an object?</p>
  
  <p>3) How do i visualise modules being represented  as an object? say 'import operator'</p>
  
  <p>4) Are operators like '+'  '>'  '!='  '==' '='  are also mapped to some object methods? say for expr  'check = 2 &lt; 3', Does this internally call some method of type(2) or type(3) to evaluate '&lt;' operator?</p>