Why is this?

Matt Hammond matt.hammond at rd.bbc.co.uk
Fri Aug 12 04:17:45 EDT 2005


On Fri, 12 Aug 2005 00:10:08 +0100, John Hazen <john at hazen.net> wrote:

>> >>>> [[], []] is [[]]*2
>> > True
>
> Just curious, did you actually cut and paste this from a real
> interactive session?  (I think not.)  My interpreter (yes, I know it's
> old) gives:

Ooops - you're absolutely right. I was cutting and pasting, but it seems I  
was a little overzealous with my editing!

I've still got that in my terminal's history buffer, and it does indeed  
read:

>>> [[], []] is [[]]*2
False




-- 

| Matt Hammond
| R&D Engineer, BBC Research and Development, Tadworth, Surrey, UK.



More information about the Python-list mailing list