[Python-Dev] [Python-checkins] r83763 - in python/branches/py3k: Doc/library/signal.rst Lib/test/test_signal.py Misc/NEWS Modules/signalmodule.c (original) (raw)

Paul Moore p.f.moore at gmail.com
Sat Aug 7 12:34:51 CEST 2010


On 7 August 2010 04:57, Brian Curtin <brian.curtin at gmail.com> wrote:

-if sys.platform[:3] in ('win', 'os2') or sys.platform == 'riscos':

The sliced check was to make it more convenient to also check "os2" at the same time in the first hunk of the change. Windows is "win32" regardless of 32 or 64-bit so that check works.

Wouldn't

if sys.platform in ('win32', 'os2', 'riscos'):

work just as well?

Paul



More information about the Python-Dev mailing list