[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'
Martin v. Löwis
report at bugs.python.org
Thu Aug 18 19:43:34 CEST 2011
Martin v. Löwis <martin at v.loewis.de> added the comment:
> The point is precisely that we don't change anything: applications
> checking against sys.platform are already broken, there's no reason to
> comfort them into using this defective check.
You grossly misunderstand the concept of "backwards compatibility".
At times, features get added to allow even buggy (or perceived-buggy)
applications to continue to work under a change.
> The applications that encountered the problem (chromium, matplotlib
> and probably others) already performed the change to
> sys.platform.startswith(), so it's really the only way to go.
I'm very certain that not all applications have been changed yet.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list