<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div><blockquote type="cite" class=""><div class=""><div class=""><blockquote type="cite" class="">I’ll repeat myself: what about .format()? If you localize you can’t use<br class="">f-strings. What about templates in web apps? Obviously f-strings won’t do.<br class="">What about json blobs in REST APIs? Again no help from f-strings. What about<br class="">functions with more than 3 arguments generally?<br class=""></blockquote><br class="">For f-strings, can't we turn the dictionary into a namespace, like so<br class=""></div></div></blockquote><div><br class=""></div><div>I say I’m talking about cases where you can’t use f-strings and you directly talk about f-strings… I think you might have missed the point. </div><br class=""><blockquote type="cite" class=""><div class=""><div class="">For functions with more than 3 arguments, perhaps you could give some<br class="">examples where you'd like improvement.<br class=""></div></div></blockquote></div><br class=""><div class=""><br class=""></div><div class="">Sure. Run this script against django: <a href="https://gist.github.com/boxed/e60e3e19967385dc2c7f0de483723502" class="">https://gist.github.com/boxed/e60e3e19967385dc2c7f0de483723502</a></div><div class=""><br class=""></div><div class="">It will print all function calls that are positional and have > 2 arguments. Not a single one is good as is, all would be better with keyword arguments. A few of them are pass through as discussed before, but far from all. </div><div class=""><br class=""></div><div class="">For example:</div><div class=""><br class=""></div><div class="">django-master/django/http/multipartparser.py 225<br class="">                                     handler.new_file(<br class="">                                    field_name, file_name, content_type,<br class="">                                    content_length, charset, content_type_extra,<br class="">                                )</div><div class=""><br class=""></div><div class="">That’s positional because keyword is more painful.</div><div class=""><br class=""></div><div class="">/ Anders</div></body></html>