News for hackers. Stuff that matters.
Re:Reasons Python Sucks by com2kid on Tuesday December 18, 2018 @03:30PM (#18710255)
> Has the author never given a pointer as an argument to a function before?

Possibly not, many devs now-days have never used a real native language.

Re:Reasons Python Sucks by lolc on Tuesday December 18, 2018 @05:27PM (#18711193)
Weird though when the author mentions the desire to rewrite Python functions in C.

The whole section about references was very confused. Especially for someone who supposedly knows C.

Re:Reasons Python Sucks by kyralis on Tuesday December 18, 2018 @11:01PM (#18712896)
I suspect the issue is precisely that he's coming from C. In C, pass by value vs pass by reference is extremely explicit. In python, it's "magical", because it depends entirely on the type of the variable that is passed in, which is itself hidden from view of the code due to the dynamically typed nature of the language.

This has been one of my own annoyances with Python as well.

Re:Reasons Python Sucks by taejo on Wednesday December 19, 2018 @05:53AM (#18714768)
It doesn't depend on the type at all. Objects are never copied when passed (or assigned to names). The only thing that might give you the opposite impression is that some objects are immutable, so you wouldn't be able to notice if a copy were made (without calling `id`).