On Fri, Apr 12, 2013 at 1:42 PM, Amit Saha wrote:
> On Fri, Apr 12, 2013 at 1:36 PM, Steven D'Aprano wrote:
>> On 12/04/13 12:53, Amit Saha wrote:
>>
>>> So for example:
>>>
>> a=1
>> b=1
>> a is b
>>>
>>> True
>>
>> id(a) == id(b)
>>>
>>> True
>>
>>
>>
>> This is not a very g
On Fri, Apr 12, 2013 at 1:36 PM, Steven D'Aprano wrote:
> On 12/04/13 12:53, Amit Saha wrote:
>
>> So for example:
>>
> a=1
> b=1
> a is b
>>
>> True
>
> id(a) == id(b)
>>
>> True
>
>
>
> This is not a very good example, because that behaviour itself is
> implementation-depende
On 12/04/13 12:53, Amit Saha wrote:
So for example:
a=1
b=1
a is b
True
id(a) == id(b)
True
This is not a very good example, because that behaviour itself is
implementation-dependent and not guaranteed. For example, in IronPython 2.6 I
get completely different behaviour:
a = 1
b = 1
On Thu, Apr 11, 2013 at 8:41 PM, w qj wrote:
> I found this under Windows Python3
l="http://f/";
l[-1] is not '/'
> False
>
> and this under Linux Python3
l = "http://ff.f/";
l[-1]
> '/'
l[-1] is not '/'
> True
>
> It's Looks like a python bug?
No, this is not. The '
On 11/04/13 20:41, w qj wrote:
I found this under Windows Python3
l="http://f/";
l[-1] is not '/'
False
and this under Linux Python3
l = "http://ff.f/";
l[-1]
'/'
l[-1] is not '/'
True
It's Looks like a python bug?
No, it is a bug in your understanding. The "is" and "is not" operat
On Thu, 11 Apr 2013, Timo wrote:
Op 11-04-13 12:41, w qj schreef:
I found this under Windows Python3
l="http://f/";
l[-1] is not '/'
False
and this under Linux Python3
l = "http://ff.f/";
l[-1]
'/'
l[-1] is not '/'
True
It's Looks like a python bug?
This looks like a "is not" versus "!="
Op 11-04-13 12:41, w qj schreef:
I found this under Windows Python3
l="http://f/";
l[-1] is not '/'
False
and this under Linux Python3
l = "http://ff.f/";
l[-1]
'/'
l[-1] is not '/'
True
It's Looks like a python bug?
This looks like a "is not" versus "!=" thing. Someone (I think Steven
Ap