syntax - Why python need parentheses in function call? -
why python can't omit parentheses in function call other language(coffeescript haskell) do? historical reason or what?
the parentheses allow disambiguate function object, func
, calling of function, func()
.
function objects first-class objects in python. can, instance, pass them arguments functions, other object. used set callback function -- common practice in gui programming or concurrent programming.
Comments
Post a Comment