On Wed, Nov 18, 2009 at 12:28 PM, Peng Yu <pengyu...@gmail.com> wrote:
> I don't see any different between the following code in terms of > output. Are they exactly the same ('as' v.s. ',')? > 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. Cheers, Xav
-- http://mail.python.org/mailman/listinfo/python-list