On Dec 16, 9:55 pm, Jean-Michel Pichavant
wrote:
> I'd like to illutrate the fact that comparing strings using identity is,
> most of the time, a bad idea. However I'm searching a short example of
> code that yields 2 differents object for the same string content.
>
> Anyone has that kind of code
Jean-Michel Pichavant writes:
> Fellows,
>
> I'd like to illutrate the fact that comparing strings using identity
> is, most of the time, a bad idea. However I'm searching a short
> example of code that yields 2 differents object for the same string
> content.
>
> id('foo')
> 3082385472L
> id('fo
On 16 déc, 15:53, Jean-Michel Pichavant
wrote:
> Mel wrote:
> > Jean-Michel Pichavant wrote:
>
> >> Fellows,
>
> >> I'd like to illutrate the fact that comparing strings using identity is,
> >> most of the time, a bad idea. However I'm searching a short example of
> >> code that yields 2 different
On 16 déc, 15:52, Jean-Michel Pichavant
wrote:
> bruno.desthuilli...@gmail.com wrote:
> > On 16 d c, 12:55, Jean-Michel Pichavant
> > wrote:
>
> >> id('foo')
> >> 3082385472L
> >> id('foo')
> >> 3082385472L
>
> >> Anyone has that kind of code ?
>
> > 2 points:
>
> > 1- an id is only valid for the
Mel wrote:
Jean-Michel Pichavant wrote:
Fellows,
I'd like to illutrate the fact that comparing strings using identity is,
most of the time, a bad idea. However I'm searching a short example of
code that yields 2 differents object for the same string content.
id('foo')
3082385472L
id('foo')
bruno.desthuilli...@gmail.com wrote:
On 16 déc, 12:55, Jean-Michel Pichavant
wrote:
id('foo')
3082385472L
id('foo')
3082385472L
Anyone has that kind of code ?
2 points:
1- an id is only valid for the lifetime of a given object - when the
object has been collected, the id can be reu
Jean-Michel Pichavant wrote:
Fellows,
I'd like to illutrate the fact that comparing strings using identity
is, most of the time, a bad idea. However I'm searching a short
example of code that yields 2 differents object for the same string
content.
id('foo')
3082385472L
id('foo')
3082385472L
Jean-Michel Pichavant wrote:
> Fellows,
>
> I'd like to illutrate the fact that comparing strings using identity is,
> most of the time, a bad idea. However I'm searching a short example of
> code that yields 2 differents object for the same string content.
>
> id('foo')
> 3082385472L
> id('foo'
Peter Otten wrote:
> Steve Holden wrote:
>
>> On 12/16/2010 6:55 AM, Jean-Michel Pichavant wrote:
>>> Fellows,
>>>
>>> I'd like to illutrate the fact that comparing strings using identity is,
>>> most of the time, a bad idea. However I'm searching a short example of
>>> code that yields 2 differ
Steve Holden wrote:
> On 12/16/2010 6:55 AM, Jean-Michel Pichavant wrote:
>> Fellows,
>>
>> I'd like to illutrate the fact that comparing strings using identity is,
>> most of the time, a bad idea. However I'm searching a short example of
>> code that yields 2 differents object for the same strin
On 12/16/2010 6:55 AM, Jean-Michel Pichavant wrote:
> Fellows,
>
> I'd like to illutrate the fact that comparing strings using identity is,
> most of the time, a bad idea. However I'm searching a short example of
> code that yields 2 differents object for the same string content.
>
> id('foo')
>
On 16 déc, 12:55, Jean-Michel Pichavant
wrote:
> Fellows,
>
> I'd like to illutrate the fact that comparing strings using identity is,
> most of the time, a bad idea. However I'm searching a short example of
> code that yields 2 differents object for the same string content.
>
> id('foo')
> 308238
On Thursday, December 16, 2010 7:55:20 AM UTC-4, jeanmichel wrote:
> Fellows,
>
> I'd like to illutrate the fact that comparing strings using identity is,
> most of the time, a bad idea. However I'm searching a short example of
> code that yields 2 differents object for the same string content.
Fellows,
I'd like to illutrate the fact that comparing strings using identity is,
most of the time, a bad idea. However I'm searching a short example of
code that yields 2 differents object for the same string content.
id('foo')
3082385472L
id('foo')
3082385472L
Anyone has that kind of code
14 matches
Mail list logo