[issue11727] Add a --timeout option to regrtest.py using the faulthandler module

Antoine Pitrou report at bugs.python.org
Thu Mar 31 13:59:56 CEST 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

Just a nit but:
"if timeout and 0 < timeout"

Could you use the usual coding style? ("if timeout and timeout > 0")

Putting constants on the left-side of comparisons is pointless in Python, and even in C it's quite ugly and surprising.

----------
nosy: +pitrou

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11727>
_______________________________________


More information about the Python-bugs-list mailing list