[merge] LazyFactory
Robert Collins
robertc at robertcollins.net
Tue Aug 15 05:16:17 BST 2006
On Tue, 2006-08-15 at 04:14 +0200, Adeodato Simó wrote:
>
> Well, while I see your point, I think bool(self._dict) reads closer to
> "is this the first registered entry?", than checking _default_key. But
> if you're strong on having it with "_default_key is None", I don't
> object at all to changing it.
I think 'registry.is_first_entry(an_entry)' is much clearer than
'bool(self._dict)'
bool(self._dict)' may be short, but its nearly 100% content-free.
-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: 191 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060815/ff9d5e15/attachment.pgp
More information about the bazaar
mailing list