This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author durin42
Recipients arjennienhuis, barry, benjamin.peterson, christian.heimes, durin42, ecir.hana, eric.smith, exarkun, ezio.melotti, flox, glyph, gregory.p.smith, gvanrossum, loewis, martin.panter, nlevitt@gmail.com, pitrou, serhiy.storchaka, stendec, terry.reedy, uau, vstinner
Date 2013-10-08.21:17:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAPLqtWLq3YeguQsj2nKtdvWiAc2bURkG6Sj=67-ag9b4DEuvCg@mail.gmail.com>
In-reply-to <1381266697.2582.6.camel@fsol>
Content
On Tue, Oct 8, 2013 at 5:11 PM, Antoine Pitrou <report@bugs.python.org>wrote:

>
> Antoine Pitrou added the comment:
>
> > > > Punting this to 3.5 basically means we'll have to either wait for
> > > > 3.5, or do something awful like use cffi to grab sprintf to port
> > > > Mercurial.
> > >
> > > Or write a pure Python implementation.
> >
> > Hah. Probably too slow for anything beyond a proof of concept, no?
>
> If it's only for the Mercurial test suite, that shouldn't be a problem?

It's not just the testsuite though: we do this _all over_ hg itself. For
example, status needs to do something like this:

sys.stdout.write('%(state)s %(path)s\n' % {'state': 'M', 'path':
'some/filesystem/path'})

except we don't know the encoding of the filesystem path (Hi unix!) so we
have to treat the whole thing as opaque bytes. It's even more fun for
'log', becase then it's got localized strings in it as well.
History
Date User Action Args
2013-10-08 21:17:11durin42setrecipients: + durin42, gvanrossum, loewis, barry, terry.reedy, gregory.p.smith, exarkun, pitrou, vstinner, eric.smith, christian.heimes, benjamin.peterson, glyph, ezio.melotti, arjennienhuis, flox, ecir.hana, uau, martin.panter, serhiy.storchaka, nlevitt@gmail.com, stendec
2013-10-08 21:17:11durin42linkissue3982 messages
2013-10-08 21:17:10durin42create