Newbie question about python garbage collection when keeping only a reference to an object's member

2010-11-12 Thread George Burdell
My understanding is that any object which is not pointed to by any variable will be automatically deleted. What if I create a class object, but only keep a reference to one of its members, and not a reference to the object itself? What goes on internally in Python? Does Python retain the whole obje

Re: Something confusing about non-greedy reg exp match

2009-09-06 Thread George Burdell
On Sep 6, 10:06 pm, "Mark Tolonen" wrote: > wrote in message > > news:f98a6057-c35f-4843-9efb-7f36b05b6...@g19g2000yqo.googlegroups.com... > > > If I do this: > > > import re > > a=re.search(r'hello.*?money',  'hello how are you hello funny money') > > > I would expect a.group(0) to be "hello fun

Re: Something confusing about non-greedy reg exp match

2009-09-06 Thread George Burdell
On Sep 6, 10:22 pm, George Burdell wrote: > On Sep 6, 10:06 pm, "Mark Tolonen" wrote: > > > > > > > wrote in message > > >news:f98a6057-c35f-4843-9efb-7f36b05b6...@g19g2000yqo.googlegroups.com... > > > > If I do this: > > > >

Re: Something confusing about non-greedy reg exp match

2009-09-06 Thread George Burdell
On Sep 6, 10:06 pm, "Mark Tolonen" wrote: > wrote in message > > news:f98a6057-c35f-4843-9efb-7f36b05b6...@g19g2000yqo.googlegroups.com... > > > If I do this: > > > import re > > a=re.search(r'hello.*?money',  'hello how are you hello funny money') > > > I would expect a.group(0) to be "hello fun