Re: [Tutor] Object references and garbage collection confusion

2015-05-07 Thread Brandon D
> > This is what was also confusing as well. I assumed that python stored > objects rather than simply assigning them. > On Tue, May 5, 2015 at 4:48 AM, Alan Gauld wrote: > On 05/05/15 05:29, Brandon D wrote: > >> Hello tutors, >> >> I'm having trouble understanding, as well as visualizing, how

Re: [Tutor] Object references and garbage collection confusion

2015-05-07 Thread Brandon D
Thanks Steven. I was just confused on the execution of when Python destroys objects that are no long bound or referenced. On Tue, May 5, 2015 at 2:00 PM, Steven D'Aprano wrote: > On Tue, May 05, 2015 at 12:29:59AM -0400, Brandon D wrote: > > Hello tutors, > > > > I'm having trouble understandin

Re: [Tutor] Object references and garbage collection confusion

2015-05-05 Thread Dave Angel
On 05/05/2015 12:29 AM, Brandon D wrote: Hello tutors, I'm having trouble understanding, as well as visualizing, how object references work in the following situation. For demonstration purposes I will keep it at the most rudimentary level: x = 10 x = x ** x If my knowledge serves me correct

Re: [Tutor] Object references and garbage collection confusion

2015-05-05 Thread Albert-Jan Roskam via Tutor
- On Tue, May 5, 2015 8:00 PM CEST Steven D'Aprano wrote: >On Tue, May 05, 2015 at 12:29:59AM -0400, Brandon D wrote: >> Hello tutors, >> >> I'm having trouble understanding, as well as visualizing, how object >> references work in the following situation. For demons

Re: [Tutor] Object references and garbage collection confusion

2015-05-05 Thread Steven D'Aprano
On Tue, May 05, 2015 at 12:29:59AM -0400, Brandon D wrote: > Hello tutors, > > I'm having trouble understanding, as well as visualizing, how object > references work in the following situation. For demonstration purposes I > will keep it at the most rudimentary level: > > x = 10 > > x = x ** x

Re: [Tutor] Object references and garbage collection confusion

2015-05-05 Thread Alan Gauld
On 05/05/15 05:29, Brandon D wrote: Hello tutors, I'm having trouble understanding, as well as visualizing, how object references work in the following situation. For demonstration purposes I will keep it at the most rudimentary level: x = 10 x = x ** x Its good to use a simple example but i