On Wed, Nov 18, 2009 at 12:28 PM, Peng Yu <span dir="ltr"><<a href="mailto:pengyu.ut@gmail.com">pengyu.ut@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

I don't see any different between the following code in terms of<br>
output. Are they exactly the same ('as' v.s. ',')?<br></blockquote><div><br>Yes, they're exactly the same. However, the syntax with "as" is newer, introducted in Python 3.x, and eventually backported to 2.6. If you have used Python 2.5, only the comma syntax would work.<br>

<br>Cheers,<br>Xav <br></div></div>