Arie Bovenberg <a.c.bovenb...@gmail.com> added the comment:
@rhettinger @tinchester I definitely see now that f-strings should have a place in logging. But do you agree that f-strings don't mix 100% safely with the current logger API? What are your thoughts on a safer set of logger functions (see my comments above, https://bugs.python.org/issue46200#msg409505) Just throwing an additional alternative out there: instead of the @overload approach, one could have 2 logger function families: debugs(s: str) # s-prefix indicates simply logging a string (no formatting done by logger!) debugf(s: LiteralStr, *args, **kwargs) # f prefix indicates logger does the formatting. (no formatting done by user!) @vinay.sajip what are your thoughts on the discussion above? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46200> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com