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

dmitrey openopt at ukr.net
Wed Mar 21 15:55:08 CET 2007


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 it
> result = func1(func2, arg)
> or
> result = func1(func2(arg))
>
> Miki <miki.teb... at gmail.com>http://pythonwise.blogspot.com





More information about the Python-list mailing list