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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -