Comment by macintux
8 years ago
I rarely used Python before the last few months, but I've already stumbled upon a great tragedy in the 3.x migration.
Although few know it, and fewer use it, Python 2.x allowed tuples to be unpacked in function heads, like Erlang. Since my last job was 100% Erlang, I stumbled into using it without knowing any better.
I decided a couple of months later that since it was a new project, I really should convert to Python 3, whereupon I discovered that feature had been removed due to parsing complexity and "because no one uses it."
Sigh.
This feature is still good to know about for use on legacy projects. Thanks for sharing!
With Python 2 due to be EOL'd in a couple of years, I'm not sure I should feel good about encouraging more use of it!