<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
        MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em; MARGIN-TOP: 0px
}
OL {
        MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
UL {
        MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
P {
        MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
BODY {
        FONT-SIZE: 10.5pt; FONT-FAMILY: Î¢ÈíÑźÚ; COLOR: #000000; LINE-HEIGHT: 1.5
}
</STYLE>

<META name=GENERATOR content="MSHTML 10.00.9200.16736"></HEAD>
<BODY style="MARGIN: 10px">
<DIV><FONT style="BACKGROUND-COLOR: #cce8cf">Hi,all!</FONT></DIV>
<DIV><FONT style="BACKGROUND-COLOR: #cce8cf"></FONT> </DIV>
<DIV><FONT style="BACKGROUND-COLOR: #cce8cf">On call main method, it call 
self.getName() in A.py, as I use callback, I can not get the return value 
correctly, I thought it's because the Asynchronous attribute, how should i 
do?</FONT></DIV>
<DIV><FONT style="BACKGROUND-COLOR: #cce8cf"></FONT> </DIV>
<DIV><FONT style="BACKGROUND-COLOR: #cce8cf">B.py</FONT></DIV>
<DIV><FONT style="BACKGROUND-COLOR: #cce8cf">main:</FONT></DIV>
<DIV style="TEXT-INDENT: 2em"><FONT 
style="BACKGROUND-COLOR: #cce8cf">name=self.getName()</FONT></DIV>
<DIV><FONT style="BACKGROUND-COLOR: #cce8cf"></FONT> </DIV>
<DIV><FONT style="BACKGROUND-COLOR: #cce8cf"></FONT> </DIV>
<DIV><FONT style="BACKGROUND-COLOR: #cce8cf">A.py</FONT></DIV>
<DIV><FONT style="BACKGROUND-COLOR: #cce8cf">def getname():</FONT></DIV>
<DIV style="TEXT-INDENT: 2em"><FONT 
style="BACKGROUND-COLOR: #cce8cf">def.callback(method1)</FONT></DIV>
<DIV style="TEXT-INDENT: 2em"><FONT 
style="BACKGROUND-COLOR: #cce8cf">def.callback(method2)</FONT></DIV>
<DIV style="TEXT-INDENT: 2em"><FONT 
style="BACKGROUND-COLOR: #cce8cf">def.callback(success)</FONT></DIV>
<DIV style="TEXT-INDENT: 2em"><FONT style="BACKGROUND-COLOR: #cce8cf">return 
self.name</FONT></DIV>
<DIV style="TEXT-INDENT: 2em"> </DIV>
<DIV>def success(name):</DIV>
<DIV style="TEXT-INDENT: 2em">self.name=name</DIV>
<DIV style="TEXT-INDENT: 2em"> </DIV>
<DIV style="TEXT-INDENT: 2em"> </DIV>
<DIV style="TEXT-INDENT: 2em">Thanks!</DIV></BODY></HTML>