On 10/11/06, Ben Finney <[EMAIL PROTECTED]> wrote: > Jackson <[EMAIL PROTECTED]> writes: > > > I would like to test if an object can accept: obj[0] > > Then do so. Use the object in the way you want to use it, and catch > any exceptions that you want to handle.
I'm trying to learn about style conventions in Python. How would use of getattr compare? -- Theerasak -- http://mail.python.org/mailman/listinfo/python-list