Message188907
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:08 | nedbat | set | recipients:
+ nedbat, pitrou, vstinner, trent, ezio.melotti, r.david.murray, neologix, kushal.das, Yogesh.Chaudhari |
2013-05-11 11:51:08 | nedbat | set | messageid: <1368273068.56.0.258290775858.issue17914@psf.upfronthosting.co.za> |
2013-05-11 11:51:08 | nedbat | link | issue17914 messages |
2013-05-11 11:51:08 | nedbat | create | |
|