logoalt Hacker News

hirvi74today at 1:45 AM1 replyview on HN

> # Python is pass-by-reference, what are the

> # implications of sorted() vs numbers.sort()?

I thought references were passed by value in languages like Python? I am not particularly fond of Python, so my experience with and knowledge of the language are quite limited. But, I understand what the question is asking: mutation vs. the creation of a new object.


Replies

minitechtoday at 1:48 AM

Correct, it’s a common misconception/sloppy wording.