Is there a way to format with the new format syntax a string from a function call?
For example:
"my request url was {0.get_full_path()}".format(request)
So it calls the function get_full_path()
function inside the string and not as a parameter in the format function.
EDIT
Here is another example that will probably show my frustration better, this is what I would like:
"{0.full_name()} {0.full_last_name()} and my nick name is {0.full_nick_name()}".format(user)
This is what I want to avoid:
"{0} and {1} and my nick name is {2}".format(user.full_name(), user.full_last_name(), user.full_nick_name())