On Mon, Aug 4, 2014 at 2:38 PM, Nitin Kumar <nitin.nitp at gmail.com> wrote: > def readline(self): > print 'from fn readline',var > Where are you getting 'var' from? Shouldn't the method read as def readline(self, var)? -- Dhruv Baldawa (http://www.dhruvb.com)