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
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:
>
> > >
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
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