Jeff Schwab wrote:
> [EMAIL PROTECTED] wrote:
[...]
>> Now there's no reason to feel nervous about this. All you have to
>> remember is that Python never copy anything unless explicitely asked
>> for.
> 
> It's not that simple.  After a statement like:
> 
>       a = b
> 
> Whether a and b denote the same object depends on what kind of object b 
> represented in the first place.

Surely this is exactly wrong. Is there a single example you can think of 
where

a = b
assert a is b, "Oops!"

would raise and exception? Perhaps you meant to use an augmented 
assignment operation?

regards
  Steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC              http://www.holdenweb.com/

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to