4 ms·
FYI here's the thread where tuple parameters were removed. https://mail.python.org/archives/list/python-dev@python.org/thread/LDSQZYLO6E5YG3HSN3MY4BX5CXF73K4Y/
by tln 4y ago
FYI here's the thread where tuple parameters were removed.
https://mail.python.org/archives/list/python-dev@python.org/thread/LDSQZYLO6E5YG3HSN3MY4BX5CXF73K4Y/#WXPLAKXU7VO33KJSBH5UBR5TFJQPXY6C https://mail.python.org/archives/list/python-dev@python.org/...
- klyrs 4y ago> So the short answer is: yes, we are attached to it, we will miss it. No guarantees about throwing fits, though <wink>. Observe: me, throwing a fit.
- carapace 4y agoI cursed and swore for twenty full minutes when they removed tuple unpacking from parameters. God that pissed me off. Sure, I was one of only a handful of people who ever used it, and it had it's warts, but it was so elegant.
- klyrs 4y ago>>> Hey, we don't like this feature anymore, is anybody using it?" >> Yes, we're using it" > Okay, it's gone" [rage] The one thing I agree with in the thread is the confusion of foo = lambda (x,y): x+y foo(1,2) #boom I think a better approach would be to raise warnings when sole parameters are parenthesized, unless written as foo = lambda (x,y),: x+y which is kinda gross, but cogent with the weirdness of singletons: a, = [1] b = (1,) c = 1, Alas, I've never had Guido's ear, so I shout into the void.
- raymondh 4y agoPeople who respect the law and love sausage should never watch either of them being made ;-) The referenced thread isn't Python's finest hour. A: "Hey, this feature is slightly inconvenient to implement in AST, let's kill it." B: "Many users haven't heard of this, so let's kill it." C: "I find it useful and there's not real advantage in killing it". A&B: "Okay, it's gone". Really, you're better-off just enjoying a language that is mostly nice and mostly well-designed. Don't read the development threads. It will spoil the illusion.
- sitkack 4y agoIf only it had been used in Django. Similar thing about adding animated png support in Firefox, https://bugzilla.mozilla.org/show_bug.cgi?id=257197 https://bugzilla.mozilla.org/show_bug.cgi?id=257197 Petabytes of bandwidth wasted, and probably gigawatts of electricity. This like google internal behavior leaking out in the real world. Actively user hostile or at least indifferent.