Code Objects / Variable Names

F. Schaefer drfransch at
Wed Jan 7 09:51:45 CET 2004


  How can you know what variables are involved in a code object. 

  It is not possible to execute the code object simply into a 
  dictionary and then watch the defined variables. This is 
  because these code objects only contain conditions, that 
  read out variables.


  For the following (compiled) condition 

          (door == "ajar"   and   alternator == "off") || time > 25

  I need to extract, that the variables 'door', 'alternator' and 'time'
  are involved.

Best Regards,

Frank Schäfer.

More information about the Python-list mailing list