On 5/18/05, Smith, Jeff <[EMAIL PROTECTED]> wrote:
> Is there a more Pythonic way to get the Perl equivalent of
>         $#var
> other than
>         len(var) - 1

By Pythonic, if you mean OO, you can do this: ['foo', 2, 'baz'].__len__()

-- 
Premshree Pillai
http://www.livejournal.com/users/premshree/
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to