Re: [Python-3000] PEP 3102 feedback

2006-05-24 Thread Neal Norwitz
On 5/23/06, Talin <[EMAIL PROTECTED]> wrote: > Well, c.l.p was strangely quiet in response to my posting PEP 3102 a few > days ago. Only two comments, one of a general "ick" variety that seems > mainly based on personal bias, and another which likes the idea but > votes a -1 on the 'naked star' syn

Re: [Python-3000] PEP 3102 feedback

2006-05-24 Thread Michael Chermside
Talin writes: > So in other words, nothing has really changed - most people seem to > like the idea of keyword-only arguments, but find the 'required > keyword arguments' syntax confusing. (I haven't found many people > who were in favor of it, however Guido says that's the form that he > p

Re: [Python-3000] PEP 3102 feedback

2006-05-24 Thread Guido van Rossum
On 5/23/06, Talin <[EMAIL PROTECTED]> wrote: > Well, c.l.p was strangely quiet in response to my posting PEP 3102 a few > days ago. Only two comments, one of a general "ick" variety that seems > mainly based on personal bias, and another which likes the idea but > votes a -1 on the 'naked star' syn

Re: [Python-3000] PEP 3102 feedback

2006-05-24 Thread Fred L. Drake, Jr.
Talin writes: > So in other words, nothing has really changed - most people seem to > like the idea of keyword-only arguments, but find the 'required > keyword arguments' syntax confusing. (I haven't found many people > who were in favor of it, however Guido says that's the form that he > pref

[Python-3000] PEP 3102 comments

2006-05-24 Thread tomer filiba
talin asked for comments, so def f(a, b, *, c, d) seems wrong to me. '*' can't be a token on its own, at least that's the way i see it. opeators shouldn't stand for themselves. just like the {/} (empty set) was rejected. anyway, this pep is certainly very useful (i would have used it countless t

Re: [Python-3000] PEP 3102 comments

2006-05-24 Thread Benji York
tomer filiba wrote: > i'd vote for placing it at the end of the last > argument's name, for example: > > def f(a, b*, c, d) Another idea: def f(a, b; c, d): It fails the "syntax variants shouldn't look like grime on your monitor" test though. Hmm, the next best thing I can come up with is: d

Re: [Python-3000] PEP 3102 comments

2006-05-24 Thread Antoine Pitrou
Le mercredi 24 mai 2006 à 15:43 -0400, Benji York a écrit : > Hmm, the next best thing I can come up with is: > > def f(a, b, =, c, d): Why not: def f(a, b, !c, !d): The exclamation mark can be thought to say "you must explicitly mention this one by its name". I think having a sigil in front o

Re: [Python-3000] PEP 3102 comments

2006-05-24 Thread Benji York
Antoine Pitrou wrote: > Why not: > def f(a, b, !c, !d): > > The exclamation mark can be thought to say "you must explicitly mention > this one by its name". > I think having a sigil in front of a variable name is less ugly than > having a separate sigil between commas as a fake parameter. In th

Re: [Python-3000] PEP 3102 comments

2006-05-24 Thread Antoine Pitrou
Le mercredi 24 mai 2006 à 17:15 -0400, Benji York a écrit : > In that case, just use the current default value syntax, sans value (d, > below): > > def f(a, b, c=None, d=): Then we can't decide whether "c" can be positional or is keyword-only. ___ Py

Re: [Python-3000] PEP 3102 comments

2006-05-24 Thread Benji York
Antoine Pitrou wrote: > Le mercredi 24 mai 2006 à 17:15 -0400, Benji York a écrit : > >>In that case, just use the current default value syntax, sans value (d, >>below): >> >>def f(a, b, c=None, d=): > > Then we can't decide whether "c" can be positional or is keyword-only. True. As I suspect

Re: [Python-3000] PEP 3102 comments

2006-05-24 Thread Greg Ewing
tomer filiba wrote: > talin asked for comments, so > > def f(a, b, *, c, d) > > seems wrong to me. '*' can't be a token on its own, at least > that's the way i see it. opeators shouldn't stand for themselves. But * is not an operator here. It's just a token with a special meaning in this context

Re: [Python-3000] PEP 3102 comments

2006-05-24 Thread Greg Ewing
Antoine Pitrou wrote: > Why not: > def f(a, b, !c, !d): That looks like "you're not allowed to pass these arguments". :-) -- Greg ___ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: ht

Re: [Python-3000] PEP 3102 comments

2006-05-24 Thread Talin
tomer filiba wrote: > talin asked for comments, so > > def f(a, b, *, c, d) > > seems wrong to me. '*' can't be a token on its own, at least > that's the way i see it. opeators shouldn't stand for themselves. > just like the {/} (empty set) was rejected. > Um, before we get all tangled up in sy