Changes between Initial Version and Version 1 of Ticket #32263, comment 14


Ignore:
Timestamp:
Mar 24, 2023, 4:48:31 PM (16 months ago)
Author:
Durval Carvalho

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32263, comment 14

    initial v1  
    5151                        new_operations.extend(in_between)
    5252                        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):
    5456                        # Perform a left reduction if all of the in-between
    5557                        # operations can optimize through other.
    5658                        new_operations.extend(result)
    5759                        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
    5963                        # Otherwise keep trying.
    6064                        new_operations.append(operation)
Back to Top