News for hackers. Stuff that matters.
Re:Reasons Python Sucks by kzrdude on Tuesday December 18, 2018 @12:29PM (#18708472)
Every value in Python is a reference to an object. All function parameters are such values that are passed as they are. You get the same references to objects that the caller passed.

We could call this "passing references to objects by value."

Re:Reasons Python Sucks by Izkata on Tuesday December 18, 2018 @01:48PM (#18709326)
That's a long form of what I most often hear: "pass by value of reference"

But in any case, that's the point that made me go wtf while reading through as well. Whatever you want to call it, it's the same as what C (when not passing pointers), Java, PHP, Javascript, and many many other languages use.

Which is why it's so frustrating we don't have a good, easily-understood/well-known name for it.

Re:Reasons Python Sucks by zephyrfalcon on Tuesday December 18, 2018 @01:14PM (#18708948)
Over the years, I have found this article to be useful: http://effbot.org/zone/call-by-object.htm