tzl
MModular
•Created by tzl on 5/14/2024 in #questions
Why is this in-place operation not modifying the Python object in-place?
8 replies
MModular
•Created by tzl on 5/14/2024 in #questions
Why is this in-place operation not modifying the Python object in-place?
What I was expressing in the original post was more similar to when
PythonObject
is a list. This would mutate the Python object internally.
8 replies
MModular
•Created by tzl on 5/14/2024 in #questions
Why is this in-place operation not modifying the Python object in-place?
I understand with
inout
it would be mutated. But inout
is when regarding a Mojo variable, one could reassign this variable (lvalue) to anything of the same type:
prints out
Any PythonObject would do. This is a separate point from what I was trying to show up there in the orignal post.8 replies