[RFC] bzr.jrydberg.versionedfile
Jan Hudec
bulb at ucw.cz
Wed Dec 21 16:33:01 GMT 2005
On Wed, Dec 21, 2005 at 10:19:41 -0600, John Arbash Meinel wrote:
> Well if we make the contract such that it returns an iterator, in the
> future you could change the implementation so that it wouldn't have to
> read the entire file before it returns text.
> I don't know if this would lead to any improvement. Or if it just means
> that most of the callers will start using:
>
> text = list(get_text())
> Which makes things worse instead of better.
When would you do that? For most purposes I can think of, iterator and list
behave the same enough.
--
Jan 'Bulb' Hudec <bulb at ucw.cz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051221/f62e9b72/attachment.pgp
More information about the bazaar
mailing list