I am never going to complain about Python again

Chris Angelico rosuav at gmail.com
Thu Oct 10 00:50:11 EDT 2013


On Thu, Oct 10, 2013 at 3:36 PM, Steven D'Aprano <steve at pearwood.info> wrote:
> Just came across this little Javascript gem:
>
> ",,," == Array((null,'cool',false,NaN,4));
>
> => evaluates as true
>
> http://wtfjs.com/2011/02/11/all-your-commas-are-belong-to-Array
>
> I swear, I am never going to complain about Python again.

*blank look*

Wow.

Now, is there a situation in which this problem can actually crop up
in production code? And is it as serious as PHP's treatment of
hexadecimal hashes (eg that "100"== "1E2")?

ChrisA



More information about the Python-list mailing list