On Thu, Feb 7, 2013 at 12:09 AM, Sunil Tech <span dir="ltr"><<a href="mailto:sunil.techspk@gmail.com" target="_blank">sunil.techspk@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><font color="#330033"><font><font face="georgia,serif">If a method has no return type?<br></font></font></font><div><font color="#330033"><font><font face="georgia,serif">what will it return?</font></font></font></div>



</div>
</blockquote></div><br>note the original question is partially invalid... Python functions and methods aren't typed. however, i imagine the OP really meant *return value* instead, so the answer is really the following:<div>

functions *and* methods with no explicit return *value* return None... this happens when you either have no return statement or just return by itself with no object given.<br clear="all"><div><br></div><div>one exception is __init__()... you're never supposed to return anything from it... ever. i can't think of any others... can you?</div>

<div><br></div><div>best regards,</div>-- wesley<br>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>"A computer never does what you want... only what you tell it."<br>    +wesley chun : wescpy at gmail : @wescpy<br>

    Python training & consulting : <a href="http://CyberwebConsulting.com" target="_blank">http://CyberwebConsulting.com</a><br>    "Core Python" books : <a href="http://CorePython.com" target="_blank">http://CorePython.com</a><br>

    Python blog: <a href="http://wescpy.blogspot.com" target="_blank">http://wescpy.blogspot.com</a>
</div>