[Python-ideas] Re: Generalized deferred computation in Python

2022-06-26 Thread Piotr Duda
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

[Python-ideas] Re: PEP 671 (late-bound arg defaults), next round of discussion!

2022-06-20 Thread Piotr Duda
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

[Python-ideas] Re: PEP 671 (late-bound arg defaults), next round of discussion!

2021-12-01 Thread Piotr Duda
> *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

[Python-ideas] Re: `if` condition with `as` keyword

2020-04-26 Thread Piotr Duda
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

[Python-ideas] Re: Custom string prefixes

2019-08-28 Thread Piotr Duda
ś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.