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 st...@pearwood.info wrote: On Tue, May 05, 2015 at 12:29:59AM -0400, Brandon D wrote: Hello tutors, I'm having trouble

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 alan.ga...@btinternet.com wrote: On 05/05/15 05:29, Brandon D wrote: Hello tutors, I'm having trouble understanding, as well

[Tutor] Object references and garbage collection confusion

2015-05-05 Thread Brandon D
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 correctly, Python destroys the value once