Addition of inplace argument to sorted

Cool. I didn’t do a type() command on it. We tried several other tests and proofs in the other (deleted) thread. It’s a total shame that it seems to be lost. I spent a while researching the difference between ~.reverse() and reversed() and tried to consult it before making my first reply here.

This is a persistent issue: Topic deleted by author

[EDIT: ] I pulled up the toy code I used for the deleted topic. We were discussing reversed(), which ia a 'list_reverseiterator' object, not sorted(). Apologies for the largely inapplicable info in my post above. I have corrected it as much as I can without losing context for the replies to it.

This is an important point. Languages, both spoken and programmed, are a system. What you’re learning is not rote memorization but *what the pieces of the system are and how they interact. In others words, how the system works. Slightly off topic, but not really: Japanese is taught as “that’s just the way it is” and “there are no hard rules; everything is contextual” and Japanese is famously difficult to learn. As an outsider, I see pattern so the system that natives don’t recognize–and they adamantly insist that these patterns don’t exist. This is unfortunate because Japanese is actually a very cool language once you drop the urge to make analogies with English.

On the other hand, @steven.daprano is completely right about eliminating the habit of declaring something “complicated” and “confusing” (neither of which is synonymous with ‘complex’) as a prelude to abandoning any further effort to understand it. If this habit attains critical mass and becomes pervasive it will kill our future as a society.

So any changes need to accommodate the system that’s present. Some changes will improve the system, some will degrade it so one must be wise about such changes.

do I want to set in place true or false

…or just use deepcopy to make the distinction?

for some other builtin like len , so, even if I dont use len for 3-4 months, and then after 3-4 months I suddenly use it. there is nothing confusing in it

…because, of course, len extends a standard English language element ‘length’. Importantly, it extends the language in a linear and unambiguous way without changing it. Using sorted() for something that hasn’t happened yet is misleading.