RE: ka-ping yee tokenizer.py

2008-09-16 Thread Karl Kobata
tokenizer.py Karl Kobata wrote: > I have enjoyed using ka-ping yee's tokenizer.py. I would like to > replace the readline parameter input with my own and pass a list of > strings to the tokenizer. I understand it must be a callable object and > iteratable but it is obvious with er

Re: ka-ping yee tokenizer.py

2008-09-17 Thread Karl Kobata
Aaran, Thanks for your input. Your examples gave me other alternatives for what I wanted to do and it seems to work. Thanks all for your help. On Sep 16, 2:48 pm, "Karl Kobata" http://mail.python.org/mailman/listinfo/python-list> > wrote: > Hi Fredrik, > > Th

member functions in a class

2008-09-17 Thread Karl Kobata
I am new to python and am wondering. When I create a class, with 'def' functions and if this class is instantiated say 50 times. Does this mean that all the 'def' functions code within the class is duplicated for each instance? Can someone give me a short and simple answer as to what happens in

fwd: member functions in a class

2008-09-18 Thread Karl Kobata
Gary, No the answer is not too short, thank you for your reply, I am learning rapidly. Terry, The expanded answer is also useful. Now I am getting a better insight on how python resolves object attributes. This also gives me more insight on the difference between import vs from from

deleting an object

2008-09-25 Thread Karl Kobata
Please help. Questions based on snippet of code below. 1) when myTestCase is deleted, is just the pointer deleted or the entire instance with all of its data and data structure deleted? 2) What is the practice for deleted the object and recovering the memory it occupies? 3) If