![]() |
|
Syntactic Confectionery Delight | |
PerlMonks |
Re^2: my least favorite perl featureby adrianh (Chancellor) |
on Feb 05, 2003 at 22:47 UTC ( #232965=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|