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

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -