Got it. (regarding digest emails)

 
Alind Sharma


________________________________
 From: Balachandran Sivakumar <benignb...@gmail.com>
To: Bangalore Python Users Group - India <bangpypers@python.org> 
Sent: Thursday, 8 December 2011 2:26 PM
Subject: [BangPypers] Issues with invoking methods (was Re: BangPypers Digest, 
Vol 52, Issue 7)
 
Hi,

On Wed, Dec 7, 2011 at 7:41 PM, Anand Patil <2002an...@gmail.com> wrote:
>
> lis={"a":["getabc","gettuple","getlist"]}
> lis['a'][1]()
>

      The values assigned to 'a' are all strings. Not the methods that
you have declared.

lis={"a":[getabc,gettuple,getlist]}

will work(Note that there are not quotes around the names of the methods. )

Also, please do not reply to digest emails directly. It makes it
really difficult when we read. I have changed the subject line now.
Thanks


-- 
Thank you
Balachandran Sivakumar

Arise Awake and stop not till the goal is reached.
                                                             - Swami Vivekananda

Mail: benignb...@gmail.com
Blog: http://benignbala.wordpress.com/
_______________________________________________
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers
_______________________________________________
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers

Reply via email to