Gary Wessle wrote: > the example was an in-accuretlly representation of a the problem I am > having. my apologies. > > a = [] > def prnt(): > print len(a) > >>>> prnt > <function prnt at 0xb7dc21b4> > > I expect to get 0 "the length of list a"
Python requires parenthesis to call a function. >>> a = [] >>> def prnt(): ... print len(a) ... >>> prnt <function prnt at 0xb7dcad84> >>> prnt() 0 -- http://mail.python.org/mailman/listinfo/python-list