Re: [PATCH] Add a personality to report 2.6.x version numbers

From: Andi Kleen
Date: Tue Aug 23 2011 - 12:12:12 EST



A notable one is that Python now reports "linux3" from sys.platform();
which in turn can break things that were checking sys.platform() ==
"linux2".

https://bugzilla.mozilla.org/show_bug.cgi?id=664564

Seems pretty clear to me though it's a bug in the apps that are using
'==' instead of .startswith().

That's a good point. I googled for this pattern in google codesearch
and there are 10+ in the first two pages.

http://www.google.com/codesearch#search/&q=lang:^python$%20sys.platform%20linux2&p=1&type=cs

-andi


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/