[Python-Dev] (name := expression) doesn't fit the narrative of PEP 20 (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Thu Apr 26 02:32:32 EDT 2018
- Previous message (by thread): [Python-Dev] (name := expression) doesn't fit the narrative of PEP 20
- Next message (by thread): [Python-Dev] (name := expression) doesn't fit the narrative of PEP 20
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, Apr 26, 2018 at 10:11 AM, Yury Selivanov <yselivanov.ml at gmail.com> wrote:
myfunc(arg, buffer=(buf := [None]*getsize()), size=len(buf))
Obviously what we want here is a variant of the binding expression that also makes it a keyword argument:
my_func(arg, buffer ::= [None]*get_size(), size = len(buffer))
-- Greg
- Previous message (by thread): [Python-Dev] (name := expression) doesn't fit the narrative of PEP 20
- Next message (by thread): [Python-Dev] (name := expression) doesn't fit the narrative of PEP 20
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]