[win32] Permission denied in fancy_rename

Robert Collins robertc at robertcollins.net
Thu May 4 00:50:20 BST 2006


On Wed, 2006-05-03 at 19:34 -0400, Aaron Bentley wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Robert Collins wrote:
> | On Wed, 2006-05-03 at 12:27 -0500, John Arbash Meinel wrote:
> |
> |>Aaron Bentley wrote:
> |>
> |>>John Arbash Meinel wrote:
> |>>
> |>>>Anyway, I think get_bytes/put_bytes is good, but we should think about
> |>>>the memory impact.
> |>>
> |>>Perhaps get_bytes/put_bytes should take/produce an iterable?  That would
> |>>ensure a low memory impact.
> |>>
> |>>Strings, files, and string iterators are all iterables of strings, and
> |>>we can special-case files and strings if we want.
> |>>
> |>>Aaron
> |>>
> |>
> |>You've been trying to get iterators for a while now, and this might just
> |>be the place for it.
> |
> |
> | How do you close an iterator ?
> 
> By invoking its close method, if it's a file-like object.  For other
> objects that can be used as iterators, it will vary.
> 
> Or, to put it another way, finalizing iterators isn't a responsibility
> of get_bytes.  It must be done in the calling code.

Because of our problems with open files on windows, I think we must
define the interface of the return value of get_bytes *so that* the
calling code can fulfil that responsibility.

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/20060504/758d0e0f/attachment.pgp 


More information about the bazaar mailing list