22 Feb
2014
22 Feb
'14
9:12 a.m.
On Sat, 22 Feb 2014 15:57:02 +0900 "Stephen J. Turnbull" <stephen@xemacs.org> wrote:
try: interpolable = func(key) except TypeError: interpolable = "not a string: %s" % key except KeyError: interpolable = "no such key: %s" % key print("Some message that refers to '%s' % interpolable")
I think that's a rare enough case, though (compared to the other idioms showcased in the PEP), that we needn't care about it. Regards Antoine.