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
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
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
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
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
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
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
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
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
>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
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
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
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
"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
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
> "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
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
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
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
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
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
21 matches
Mail list logo