Message188967
@Ned:
if cpus is None, then this will raise an exception in Python 3: `cpus >= 1 or cpus == None`
I understand that cpus >= INTEGER will raise an exception and have already modified the condition to remove that kind of check.
I was merely stating that equality checks do not raise exception.
eg:
>>> cpus = None
>>> cpus == 1
False
>>> cpus == None
True
>>>
Thanks for pointing me out in the right direction to remove those invalid checks and showing the use of proper alternatives at other places in the patch |
|
Date |
User |
Action |
Args |
2013-05-11 22:46:06 | Yogesh.Chaudhari | set | recipients:
+ Yogesh.Chaudhari, pitrou, vstinner, nedbat, trent, ezio.melotti, r.david.murray, neologix, serhiy.storchaka, kushal.das |
2013-05-11 22:46:06 | Yogesh.Chaudhari | set | messageid: <1368312366.6.0.333391901785.issue17914@psf.upfronthosting.co.za> |
2013-05-11 22:46:06 | Yogesh.Chaudhari | link | issue17914 messages |
2013-05-11 22:46:06 | Yogesh.Chaudhari | create | |
|