Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.os.vms    |    DEC's VAX* line of computers & VMS.    |    264,096 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 263,079 of 264,096    |
|    =?UTF-8?Q?Arne_Vajh=C3=B8j?= to All    |
|    Re: extending MySQL on VMS    |
|    23 Aug 25 19:56:38    |
      From: arne@vajhoej.dk              On 8/19/2025 9:11 PM, Lawrence D’Oliveiro wrote:       > On Tue, 19 Aug 2025 10:54:30 -0400, Arne Vajhøj wrote:       >> Two points related to the fact that they have a special operator instead       >> of just using plain assignment.       >       > It’s yet another mechanism for local scoping within an expression. Python       > doesn’t allow statement blocks within expressions, but it has for-       > expressions where the for-variables are strictly local to the expression.       >       > To this has been added the walrus. But the walrus is (mostly) unnecessary;       > you can use a for-expression that iterates over just one value, to get the       > same effect.              ????              The walrus operator is so much not local.              Try:              if 4 > 1:        if 3 > 1:        if 2 > 1:        a = 1 + (2 + (3 + (4 + (p := 5))))       print(p)              Arne              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca