On 13 July 2018 at 09:00, Dirk Laurie <dirk.laurie@gmail.com> wrote: > assert( a==1, ('`a` should be `%d`, but was `%s`'):format(1,a) ) > slightly suboptimal, since the message is composed even if the assert succeeds. -- Javier