From: MRAB <goo...@mrabarnett.plus.com>
Date: Wed, 13 May 2009 15:28:48 +0100
Local: Wed, May 13 2009 10:28 am
Subject: Re: [Python-ideas] Default arguments in Python - the return - running out of ideas but...
Jacob Holm wrote: There's the suggestion that Carl Johnson gave: > Pascal Chambon wrote: >> One last idea I might have : what about something like >> * def myfunc(a, b, c = yield []): >> [...], but there is no interpretation conflict for the parser, and we > I am surprised that there is no conflict, but it looks like you are > >>> def gen(): > I would hate to see the meaning of the above change depending on whether > I'm +0 on the general idea of adding a keyword for delayed evaluation of def myfunc(a, b, c else []): or there's: def myfunc(a, b, c def []): where 'def' stands for 'default' (or "defaults to"). You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||