[Python-ideas] Explicit variable capture list
Cameron Simpson
cs at zip.com.au
Sun Jan 24 16:21:04 EST 2016
On 21Jan2016 11:52, Steven D'Aprano <steve at pearwood.info> wrote:
>So a full function declaration looks like:
>
> def NAME ( PARAMETERS ) ( CAPTURES ) -> RETURN-HINT :
>
>(Bike-shedders: do you prefer () [] or {} for the list of captures?)
Just to this: I prefer () - this is very much like a special parameter list. []
and {} should list and dict to me.
Cheers,
Cameron Simpson <cs at zip.com.au>
More information about the Python-ideas
mailing list