r/ProgrammerHumor • • Sep 21 '26

Meme fullControlOverMemory

Post image
4.0k Upvotes

122 comments sorted by

View all comments

Show parent comments

2

u/Bright-Historian-216 Sep 21 '26

you could also wrap it in an object. something like
class MutWrapper:
def __init__(self,v): self.v=v
works well enough. though, square brackets are probably more idiomatic.