News for hackers. Stuff that matters.
Re:A high-performance, zero-overhead, extensible Python comp... by Nab443 on Saturday September 21, 2024 @01:16AM (#41607670)
I don't see how "return (key, value)" is less readable than it's list counterpart. Now, why using a list that can grow, and so takes more space and maybe less efficient, for something that should not?
Re:A high-performance, zero-overhead, extensible Python comp... by slightwinder on Tuesday September 24, 2024 @08:38AM (#41635857)
"return (key, value)" can be read as a function-call. Especially as space after the function-name is allowed in python. And performance on that level is no serious topic in python anyway. But this is mainly just a personal preference.