On Fri, Aug 17, 2012 at 4:11 PM, Matthew Love <matthewlov...@googlemail.com> wrote: > def inventory(self): > self.inventory = ["torch"] > return self.inventory
What is 'self.inventory' before you call inventory(), and what is it afterwards? A quick fix would be to name the list "_inventory" and return self._inventory. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor