[RFC] Hooks and outf
James Westby
jw+debian at jameswestby.net
Fri Aug 1 19:31:56 BST 2008
On Fri, 2008-08-01 at 20:16 +0200, Jelmer Vernooij wrote:
> Hi James,
>
> Am Freitag, den 01.08.2008, 19:00 +0100 schrieb James Westby:
> > I've just started working on hooks for a plugin, and I was wondering
> > if they should receive and outf to use. They currently have to
> > use print, which is a bit of a pain.
> For diagnostic messages, it seems to me the current (warning, info,
> mutter) functions from bzrlib.trace are more appropriate than print
> at the moment.
That's probably true. Perhaps the example in the docs should
be changed from "print 'Hello world'" to "info('Hello world')".
>
> What would you like to use the outf for exactly?
Weren't there a bunch of bugs to do with encoding problems caused by
commands using print? If we end up with several plugins using
print, then are we going to see that again?
Thanks,
James
More information about the bazaar
mailing list