<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META name=GENERATOR content="MSHTML 8.00.6001.18928"></HEAD>
<BODY>
<DIV><SPAN class=311070104-17082010><FONT size=2 
face=Arial>Greetings,</FONT></SPAN></DIV>
<DIV><SPAN class=311070104-17082010><FONT size=2 
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=311070104-17082010><FONT size=2 face=Arial>I want a debugging 
function with the effect of the function below (in a seperate 
module):</FONT></SPAN></DIV>
<DIV><SPAN class=311070104-17082010><FONT size=2 
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=311070104-17082010><FONT size=2 face=Arial>def 
dump(expr):</FONT></SPAN></DIV>
<DIV><SPAN class=311070104-17082010>    <FONT size=2 
face=Arial>print expr, '=', eval(expr)</FONT></SPAN></DIV>
<DIV><SPAN class=311070104-17082010><FONT size=2 
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=311070104-17082010><FONT size=2 face=Arial>foo = 
33</FONT></SPAN></DIV>
<DIV><SPAN class=311070104-17082010><FONT size=2 
face=Arial>dump('foo')</FONT></SPAN></DIV>
<DIV><SPAN class=311070104-17082010><FONT size=2 face=Arial>Of course this fails 
when called from another module because eval does not know the globals or locals 
of the caller. Is there a way to make this work? </FONT></SPAN></DIV>
<DIV><SPAN class=311070104-17082010><FONT size=2 face=Arial></FONT></SPAN><FONT 
size=2 face=Arial></FONT> </DIV>
<DIV><SPAN class=311070104-17082010><FONT size=2 
face=Arial>TomH</FONT></SPAN></DIV>
<br><P><FONT color=#0000ff size=2><HR>
Email from setec.com.au does not necessarily represent the official policy of SETEC Pty Ltd.
<BR>See <A href="http://www.setec.com.au/emaildisclaimer20060629.html">
Email Disclaimer 20060629</A> for details.</FONT></P>

<br></BODY></HTML>