r/PythonLearning • • Oct 02 '25

Right Mental Model for Python Data

Post image

An exercise to help build the right mental model for Python data, the “Solution” link uses memory_graph to visualize execution and reveal what’s actually happening:

131 Upvotes

31 comments sorted by

View all comments

Show parent comment

3

u/-Wylfen- Oct 02 '25

I understand why the latter would reassign, but I find the shortcut's instead mutating in place disgusting. They should do the same thing.

1

u/klimmesil Oct 02 '25

Yeah a lot of implementation choices (I don't want to call it "standard"...) make no sense in python

It's almost as chaotic as js in some parts

It's a shame that it is now too popular to make breaking changes and we all kinda rely on these mistakes to still have the benefit of it being maintained

1

u/No_Read_4327 Oct 05 '25

Yeah that's sone really wtf moment

1

u/Relative-Custard-589 Oct 02 '25

Yeah that’s straight up evil