Added signal catching and handling in C and Cython
This commit is contained in:
@ -13,7 +13,8 @@ from functools import reduce
|
||||
import math
|
||||
import time
|
||||
import sys
|
||||
|
||||
from cpython.exc cimport PyErr_CheckSignals
|
||||
|
||||
|
||||
__title__="Compute basic statistics for attribute values."
|
||||
|
||||
@ -164,6 +165,7 @@ def run(config):
|
||||
pb = ProgressBar(len(i_view), config, seconde=5)
|
||||
|
||||
for i in range(len(i_view)):
|
||||
PyErr_CheckSignals()
|
||||
pb(i)
|
||||
line = i_view[i]
|
||||
|
||||
|
Reference in New Issue
Block a user