Re: [Edu-sig] Edu-sig Digest, Vol 39, Issue 2

2006-10-02 Thread John Posner
Kirby said: We say reference a lot when talking about a variable's relationship to a piece of memory. I'm thinking handle could be used more (optionally -- this is not an instruction) and we could even show a coffee cup (doesn't have to be coffee -- a mug) with two handles, when explaing

Re: [Edu-sig] Edu-sig Digest, Vol 39, Issue 2

2006-10-02 Thread kirby urner
The coffee-cup-handle metaphor is certainly useful, but IMHO not quite as spot-on as the sticky-note metaphor. -John Posner Excellent review John thanks. Below is the kind of thing a teacher could project. IDLE 1.2b2 handle1 = ['coffee','sugar','cream'] handle2 = handle1 id(handle1)

Re: [Edu-sig] Edu-sig Digest, Vol 39, Issue 2

2006-10-02 Thread Arthur Siegel
On Mon, 2006-10-02 at 10:00 -0700, kirby urner wrote: handle1 = ['coffee','sugar','cream'] handle2 = handle1 id(handle1) 13645944 id(handle2) 13645944 I always thought that when presenting this it is natural and important - in order for the student to truly get it - to do an as

Re: [Edu-sig] Edu-sig Digest, Vol 39, Issue 2

2006-10-02 Thread kirby urner
Anyway, I would advocate the as opposed to be integrated into such a presentation. Art Yes, once bitten in the butt by the fact of a two handled mug, then comes the question: so how do I make sure each handle gets a mug to itself? (as in why should we share the same beer?). At this point,

Re: [Edu-sig] Edu-sig Digest, Vol 39, Issue 2

2006-10-02 Thread Arthur Siegel
On Mon, 2006-10-02 at 16:04 -0700, kirby urner wrote: Anyway, I would advocate the as opposed to be integrated into such a presentation. Art Actually *duplicating* a piece of memory (wasteful?), to make the same contents reside elsewhere (why?), with its own handles, is considered a

Re: [Edu-sig] Edu-sig Digest, Vol 39, Issue 2

2006-10-02 Thread kirby urner
On 10/2/06, Arthur Siegel [EMAIL PROTECTED] wrote: The argument I keep making and for which I cannot seem to find any takers, is that essential to explaining/understanding assignment of a list to a name, is understanding in the negative - i.e., what it is not. We are still just teaching basic

Re: [Edu-sig] Edu-sig Digest, Vol 39, Issue 2

2006-10-02 Thread Arthur Siegel
On Mon, 2006-10-02 at 16:04 -0700, kirby urner wrote: Or we might import the copy module. Or we might take the whole thing as a slice i.e. newlist = oldlist[:]. I used the list(handle1) alternative purposefully, based on Alex Martelli's position on the matter. The first time I heard him

Re: [Edu-sig] Edu-sig Digest, Vol 39, Issue 2

2006-10-02 Thread Scott David Daniels
kirby urner wrote: Scott mentioned our not being able to see how many handles a mug has, but with the sys module we can: Perhaps I said that, but what I _meant_ was that you could see the handles. In my mind, at least, there is a huge difference between seeing the handles (what is this