[Zope3-dev] i18n, unicode, and the underline
Barry Warsaw
barry@python.org
15 Apr 2003 15:35:52 -0400
On Tue, 2003-04-15 at 14:51, Martijn Faassen wrote:
> > - We're still going to have spurious bugs, but we expect them to be
> > special cases. For example, expressions like this will fail intermittently:
> >
> > u"The OID of obj is %s" % obj._p_oid
> >
> > ... but of course this expression is wrong; it should use repr(). It's
> > also for developers only.
>
> If _p_oid is actually a sequence of bytes then yes, that would be wrong.
Personally, I think it's crazy to use anything other than %r / `` /
repr() with oids. :)
-Barry