Re: why brackets & commas in func calls can't be ommited? (maybe it could be PEP?)

2007-03-23 Thread Jorgen Grahn
On Thu, 22 Mar 2007 14:20:42 -0400, Steve Holden <[EMAIL PROTECTED]> wrote: ... > I'm in danger of getting short-tempered on c.l.py for the first time in > a long time. If you think that five arguments is an excessive number for > a function then you live in a world of toy programs. Or at least

Re: why brackets & commas in func calls can't be ommited? (maybe it could be PEP?)

2007-03-22 Thread Paul Rubin
Steve Holden <[EMAIL PROTECTED]> writes: > > I agree that in you example the first syntax yields a full /five/ > > spaces less than the second syntax. However, it ignores the fact > > that if you are creating functions with that many arguments, you are > > probably doing something wrong. Can't thos

Re: why brackets & commas in func calls can't be ommited? (maybe it could be PEP?)

2007-03-22 Thread Steve Holden
Bart Willems wrote: > dmitrey wrote: >> 1st still is shorter by 1 char; considering majority of people use >> space after comma & number of parameters can be big it yileds >> foo bar baz bar2 bar3 bar4 >> vs >> foo(bar, baz, bar2, bar3, bar4) > > I think most readers already agree on the ambiguiti

Re: why brackets & commas in func calls can't be ommited? (maybe it could be PEP?)

2007-03-22 Thread Bart Willems
dmitrey wrote: > 1st still is shorter by 1 char; considering majority of people use > space after comma & number of parameters can be big it yileds > foo bar baz bar2 bar3 bar4 > vs > foo(bar, baz, bar2, bar3, bar4) I think most readers already agree on the ambiguities part. Now, for the length o

Re: why brackets & commas in func calls can't be ommited? (maybe it could be PEP?)

2007-03-22 Thread Sebastian Kaliszewski
dmitrey wrote: > if you want > result = func1(func2(arg)) > you should use > result = func1 (func2 arg) This is in conflict with current meanig, Ergo it breaks old code rgds \SK -- http://mail.python.org/mailman/listinfo/python-list

Re: why brackets & commas in func calls can't be ommited? (maybe it could be PEP?)

2007-03-22 Thread Laurent Pointal
Dennis Lee Bieber a écrit : > On Thu, 22 Mar 2007 03:27:37 +1100, Steven D'Aprano > <[EMAIL PROTECTED]> declaimed the following in > comp.lang.python: > >> So what should "a b c d" be? >> >> (a, b, c, d) >> a(b, c, d) >> a(b, (c, d)) >> a(b(c, d)) >> a(b(c(d))) >> >> Have I missed anything? Which

Re: why brackets & commas in func calls can't be ommited? (maybe it could be PEP?)

2007-03-21 Thread Erik Max Francis
Diez B. Roggisch wrote: > dmitrey wrote: > >> I looked to the PEPs & didn't find a proposition to remove brackets & >> commas for to make Python func call syntax caml- or tcl- like: instead >> of >> result = myfun(param1, myfun2(param5, param8), param3) >> just make possible using >> result = my

Re: why brackets & commas in func calls can't be ommited? (maybe it could be PEP?)

2007-03-21 Thread Steven Bethard
dmitrey wrote: > I looked to the PEPs & didn't find a proposition to remove brackets & > commas for to make Python func call syntax caml- or tcl- like: instead > of > result = myfun(param1, myfun2(param5, param8), param3) > just make possible using > result = myfun param1 (myfun2 param5 param8) pa

Re: why brackets & commas in func calls can't be ommited? (maybe it could be PEP?)

2007-03-21 Thread Bruno Desthuilliers
dmitrey a écrit : > Hi all, > I looked to the PEPs & didn't find a proposition to remove brackets & > commas for to make Python func call syntax caml- or tcl- like: instead > of > result = myfun(param1, myfun2(param5, param8), param3) > just make possible using > result = myfun param1 (myfun2 para

Re: why brackets & commas in func calls can't be ommited? (maybe it could be PEP?)

2007-03-21 Thread dmitrey
>foo bar baz >foo(bar,baz) 1st still is shorter by 1 char; considering majority of people use space after comma & number of parameters can be big it yileds foo bar baz bar2 bar3 bar4 vs foo(bar, baz, bar2, bar3, bar4) > result = func1 for this case should using result = func1() should remain + re

Re: why brackets & commas in func calls can't be ommited? (maybe it could be PEP?)

2007-03-21 Thread Steve Holden
Bart Ogryczak wrote: > On Mar 21, 3:38 pm, "dmitrey" <[EMAIL PROTECTED]> wrote: >> Hi all, >> I looked to the PEPs & didn't find a proposition to remove brackets & >> commas for to make Python func call syntax caml- or tcl- like: instead >> of >> result = myfun(param1, myfun2(param5, param8), param

Re: why brackets & commas in func calls can't be ommited? (maybe it could be PEP?)

2007-03-21 Thread Steven D'Aprano
On Wed, 21 Mar 2007 07:55:08 -0700, dmitrey top posted: > I think it should result What's "it"? Please don't top post, it makes your answer hard to understand and makes your readers have to do more work to read your posts. We're not being paid to read your posts, so I'd estimate that about 70% of

Re: why brackets & commas in func calls can't be ommited? (maybe it could be PEP?)

2007-03-21 Thread Bart Ogryczak
On Mar 21, 3:38 pm, "dmitrey" <[EMAIL PROTECTED]> wrote: > Hi all, > I looked to the PEPs & didn't find a proposition to remove brackets & > commas for to make Python func call syntax caml- or tcl- like: instead > of > result = myfun(param1, myfun2(param5, param8), param3) > just make possible usin

Re: why brackets & commas in func calls can't be ommited? (maybe it could be PEP?)

2007-03-21 Thread Duncan Booth
"dmitrey" <[EMAIL PROTECTED]> wrote: > + it will not yield incompabilities with previous Python versions. So how would you write: func(-3) func(*param) with your scheme? These already have an incompatible meaning: func -3 func *param1 -- http://mail.python.org/mailman/list

Re: why brackets & commas in func calls can't be ommited? (maybe it could be PEP?)

2007-03-21 Thread Jason
On Mar 21, 8:38 am, "dmitrey" <[EMAIL PROTECTED]> wrote: > Hi all, > I looked to the PEPs & didn't find a proposition to remove brackets & > commas for to make Python func call syntax caml- or tcl- like: instead > of > result = myfun(param1, myfun2(param5, param8), param3) > just make possible usin

Re: why brackets & commas in func calls can't be ommited? (maybe it could be PEP?)

2007-03-21 Thread Piet van Oostrum
> "dmitrey" <[EMAIL PROTECTED]> (d) wrote: >d> I think it should result >d> result = func1(func2, arg) >d> if you want >d> result = func1(func2(arg)) >d> you should use >d> result = func1 (func2 arg) >d> if >d> ... = word1 word2 word3 ... >d> then only word "word1" should be call to func "word

Re: why brackets & commas in func calls can't be ommited? (maybe it could be PEP?)

2007-03-21 Thread Diez B. Roggisch
dmitrey wrote: > Hi all, > I looked to the PEPs & didn't find a proposition to remove brackets & > commas for to make Python func call syntax caml- or tcl- like: instead > of > result = myfun(param1, myfun2(param5, param8), param3) > just make possible using > result = myfun param1 (myfun2 param5

Re: why brackets & commas in func calls can't be ommited? (maybe it could be PEP?)

2007-03-21 Thread Bjoern Schliessmann
dmitrey wrote: > it would reduce length of code lines and make them more readable, > + no needs to write annoing charecters. IMHO, it's less readable. I suppose I'm not on my own with this opinion. Regards, Björn -- BOFH excuse #34: (l)user error -- http://mail.python.org/mailman/listinf

Re: why brackets & commas in func calls can't be ommited? (maybe it could be PEP?)

2007-03-21 Thread dmitrey
I think it should result result = func1(func2, arg) if you want result = func1(func2(arg)) you should use result = func1 (func2 arg) if ... = word1 word2 word3 ... then only word "word1" should be call to func "word1" with parameters word2, word3 etc > If you have > result = func1 func2 arg > is

Re: why brackets & commas in func calls can't be ommited? (maybe it could be PEP?)

2007-03-21 Thread Miki
Hello Dmitrey, > I looked to the PEPs & didn't find a proposition to remove brackets & > commas for to make Python func call syntax caml- or tcl- like: instead > of > result = myfun(param1, myfun2(param5, param8), param3) > just make possible using > result = myfun param1 (myfun2 param5 param8) p

why brackets & commas in func calls can't be ommited? (maybe it could be PEP?)

2007-03-21 Thread dmitrey
Hi all, I looked to the PEPs & didn't find a proposition to remove brackets & commas for to make Python func call syntax caml- or tcl- like: instead of result = myfun(param1, myfun2(param5, param8), param3) just make possible using result = myfun param1 (myfun2 param5 param8) param3 it would redu