[issue12326] Linux 3: tests should avoid using sys.platform == 'linux2'
Charles-François Natali
report at bugs.python.org
Sun Jun 26 12:47:57 CEST 2011
Charles-François Natali <neologix at free.fr> added the comment:
> So people who say sys.platform shouldn't be used: what do you propose
> to do with Lib/plat-linux2 (or, more generally, Lib/plat-*)?
I can't speak, as I've never used those.
But can't those directories be renamed to Lib/plat-<platform.system()>?
As for the performance overhead, since the platform module caches the result of uname or other function/subprocess calls, I don't think it's a showstopper. Furthermore, I somehow doubt those functions are performance bottlenecks anyway.
Since Linux 3 is in RC now, is there a chance to reach a consensus in the near future?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12326>
_______________________________________
More information about the Python-bugs-list
mailing list