niedz., 26 cze 2022 o 08:17 Brendan Barnwell napisał(a):
> In other words it really is very similar to what a lambda currently
> is,
> but with more fine-grained control over which variables are bound in
> which namespaces (definition vs. eval).
But lambda already have fine-grained contr
wt., 21 cze 2022 o 05:20 Steven D'Aprano napisał(a):
> The point is, Rob thought (and possibly still does, for all I know) that
> lazy evaluation is completely orthogonal to late-bound defaults. The PEP
> makes that claim too, even though it is not correct. With a couple of
> tweaks that we have
> *PEP 671: Syntax for late-bound function argument defaults*
>
> Questions, for you all:
>
> 1) If this feature existed in Python 3.11 exactly as described, would
> you use it?
Yes
> 2) Independently: Is the syntactic distinction between "=" and "=>" a
> cognitive burden?
No, but it will be co
Use := operator (python 3.8+)
https://www.python.org/dev/peps/pep-0572/
niedz., 26 kwi 2020 o 14:37 Николай Мостовенко napisał(a):
>
> Hi to everybody. I was looking for any resolution for my pain in PEP and
> Stack Overflow and can't find an answer. As well the similar ideas here are
> 13 year
śr., 28 sie 2019 o 13:18 Steven D'Aprano napisał(a):
>
> On Tue, Aug 27, 2019 at 05:13:41PM -, stpa...@gmail.com wrote:
>
> > The difference between `x'...'` and `x('...')`, other than visual noise, is
> > the
> > following:
> >
> > - The first "x" is in its own namespace of string prefixes.