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"
You want prnt(), not prnt: >>> a = [] >>> def prnt(): ... print len(a) ... >>> prnt <function prnt at 0x43c70> >>> prnt() 0 --Ryan -- http://mail.python.org/mailman/listinfo/python-list