RE: [Pyunit-interest] Re: PATCH: AssertionError message
Brought to you by:
purcell
From: Patrick K. O'B. <po...@or...> - 2002-06-04 12:48:40
|
[Phlip] > > if first != second: > > raise self.failureException, \ > > (msg or '%s != %s' % (`first`, `second`)) > > Sorry, but do back-ticks do the same as repr? I thought they did string. Yes, backticks (backquotes) do the same as repr. But they a bit of a wart and I wouldn't encourage their use. The code above could instead be: (msg or '%r != %r' % (first, second)) --- Patrick K. O'Brien Orbtech |