This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author nedbat
Recipients Yogesh.Chaudhari, ezio.melotti, kushal.das, nedbat, neologix, pitrou, r.david.murray, trent, vstinner
Date 2013-05-11.11:51:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
A few small points:

Use `num is None` instead of `num == None`.

Use `isinstance(cpus, int)` rather than `type(cpus) is int`.

And this I think will throw an exception in Python 3: `cpus >= 1 or cpus == None`, because you can't compare None to 1.
Date User Action Args
2013-05-11 11:51:08nedbatsetrecipients: + nedbat, pitrou, vstinner, trent, ezio.melotti, r.david.murray, neologix, kushal.das, Yogesh.Chaudhari
2013-05-11 11:51:08nedbatsetmessageid: <>
2013-05-11 11:51:08nedbatlinkissue17914 messages
2013-05-11 11:51:08nedbatcreate