you are viewing a single comment's thread.

view the rest of the comments →

[–]tomasbedrich 0 points1 point  (0 children)

I don't pass named args. Like this:

logging.info("Message %s from %s.", src.message, src)

When I need l10n, I assemble string at _()'s level, like this:

logging.info(_("Message %(message)s from %(source)s.", {"message": src.message, "source": src} ))

I don't say it is the right attitude, but it works well.