Changes between Initial Version and Version 1 of Ticket #32263, comment 14
- Timestamp:
- Mar 24, 2023, 4:48:31 PM (20 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #32263, comment 14
initial v1 51 51 new_operations.extend(in_between) 52 52 new_operations.extend(result) 53 elif all(op.reduce(other, app_label) is True for op in in_between): # <<<<<<< This condition fails (I didn't understand what is being checked here) 53 54 # ↓↓↓ This condition fails (I didn't understand what is being checked here) 55 elif all(op.reduce(other, app_label) is True for op in in_between): 54 56 # Perform a left reduction if all of the in-between 55 57 # operations can optimize through other. 56 58 new_operations.extend(result) 57 59 new_operations.extend(in_between) 58 else: # <<<<<<<< New operation `result` is not added to new operations list 60 61 62 else: # <<<<<<<< New operation `result` is not added to new operations list 59 63 # Otherwise keep trying. 60 64 new_operations.append(operation)