Re: why cannot assign to function call



On Tue, 06 Jan 2009 13:43:01 -0800, Aaron Brady wrote:


I think one of the ideas we have trouble communicating is that [1, 2, 3]
and [4, 5, 6] can be the same object

Not at the same time they can't.


(using '[:]='), but [1, 2, 3] and [1, 2, 3] don't have to be.

I don't think this is hard to get across, if you think about objects.

You have a list. It's like a box. That box can hold items 1, 2 and 3. You
can replace those items with 4, 5 and 6, and it's still the same box.

Likewise, you can have a box with items 1, 2 and 3 inside it, and a
different box also with items 1, 2 and 3, and they're still different
boxes.

The only tricky thing is that items 1, 2 and 3 can be inside two
different boxes at the same time. There's no obvious real world analogy
to that without the boxes being nested. This ability for objects to be in
two places at once (or even to be inside themselves!) is one of the few
reasons why Python's use of references in the implementation needs to be
mentioned.



--
Steven
.



Relevant Pages

  • Re: Users want Check Boxes for entry
    ... then you could interface the foreign key field with an option group. ... The group lists all the reasons, and the field stores the number of the ... > track why the rejections were rejected. ... > form with check boxes for each reason. ...
    (microsoft.public.access.forms)
  • Re: Append Query Headache!
    ... If you are indeed talking about tables, your "combo boxes" are probably ... lookup field data types. ... reasons NOT to use that data type. ...
    (microsoft.public.access.queries)
  • Re: Ammo question
    ... # It's NOT a military or police cartridge - which is the main reason ... # first-time gun buyers choosing .380 pistols. ... I ended up buying a couple boxes of 9mm and borrowing the ...
    (rec.guns)
  • Re: Users want Check Boxes for entry
    ... and then loop through the checkboxes ... >> existing data if the reasons are changed, ... >>>>> track why the rejections were rejected. ... >>>>> form with check boxes for each reason. ...
    (microsoft.public.access.forms)
  • Re: To 6.3 or to 7.0 that is the question?
    ... any other reasons to go for that instead of 6.3? ... I just did a rather busy customer mail server this morning and so far so good. ... We havent done any benchmarks to see if its faster than the 6.x boxes, but its certainly stable so far and seems to at least keep up to the other boxes. ...
    (freebsd-stable)