in reply to Re: my least favorite perl feature
in thread my least favorite perl feature
I don't have a python interpreter to double check - but I'm pretty sure that python == would be true for all the pairs of numbers you give (since numbers are automatically converted to a common type in python comparisons.)
<update>If they are numbers I mean. For strings only "100" == "100" returns true, all others false. If one a string and the other a number, always false.</update>
For objects == is true in python if they are the same object (in perl refaddr($o1) == refaddr($o2).
For full details see this bit of the python docs.
|
|---|