Skip to content

Commit 2f5ac1f

Browse files
committed
NFC: address reviewer comment
1 parent 99d1be3 commit 2f5ac1f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyomo/core/expr/expr_common.py

+2
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ def _mutable_any(a, b):
163163

164164
def _mutable_mutable(a, b):
165165
if a is b:
166+
# Note: _recast_mutable is an in-place operation: make sure
167+
# that we don't call it twice on the same object.
166168
a = b = _recast_mutable(a)
167169
else:
168170
a = _recast_mutable(a)

0 commit comments

Comments
 (0)