How to change syntax for calling functions in python? -
functions applied arguments in way: func(arg). however, if argument long (for example combination of other functions), code more readable if following syntax used: x.sun(). there trick in python allow switch first syntax one.
for example, in particular case able use x.list() in stead of list(x).
Comments
Post a Comment