Code Objects / Variable Names

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


PROBLEM: 

  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.

EXAMPLE: 

  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