[win32] Permission denied in fancy_rename
Aaron Bentley
aaron.bentley at utoronto.ca
Thu May 4 00:34:08 BST 2006
-----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.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFEWT3w0F+nu1YWqI0RAu/sAJ47xv5FuZw7CcPdiNsCi4EhsSK8XwCfYbfY
S+jHMa+6xw2UpVaey661l6Q=
=Vuw4
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list