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

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -