[MERGE] Improve tests for the behaviour of Tree.iter_changes for missing paths that are only present in one tree, and fix found bugs. (Robert Collins)
Robert Collins
robertc at robertcollins.net
Thu Aug 14 03:18:42 BST 2008
On Thu, 2008-08-14 at 11:05 +0900, Stephen J. Turnbull wrote:
> Robert Collins writes:
>
> > That would make it less objectionable for me. But still - this is not an
> > *exceptional* circumstance; using exceptions for situation-normal flow
> > control is pretty ugly IMO.
>
> I suppose you've complained to the BDFL, then?<wink> I'm referring to
> GeneratorExit and StopIteration, of course.
I don't think GeneratorExit is something ever raised by user code is it?
I mean, if I write to the byte-code, sure.
StopIteration is more interesting, but in fact - it is exceptional for
an iterator to end, because you don't know when that is going to be, but
control has returned to you. Using a sentinel may well be cleaner, but -
that, like generator exit, entirely hidden from [most] user code.
-Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080814/aac00705/attachment.pgp
More information about the bazaar
mailing list