Skip to content

Commit f4c9458

Browse files
committed
Add comment on version comparison
1 parent 2a21a91 commit f4c9458

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

openml/runs/functions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@ def _run_task_get_arffcontent(model, task, class_labels):
294294
user_defined_measures = defaultdict(lambda: defaultdict(dict))
295295

296296
rep_no = 0
297+
# sys.version_info returns a tuple, the following line compares the entry of tuples
298+
# https://docs.python.org/3.6/reference/expressions.html#value-comparisons
297299
can_measure_runtime = sys.version_info[:2] >= (3, 3) and _check_n_jobs(model)
298300
# TODO use different iterator to only provide a single iterator (less
299301
# methods, less maintenance, less confusion)

0 commit comments

Comments
 (0)