[win32] Permission denied in fancy_rename
Aaron Bentley
aaron.bentley at utoronto.ca
Thu May 4 01:50:18 BST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Robert Collins wrote:
| On Wed, 2006-05-03 at 19:17 -0500, John Arbash Meinel wrote:
|>Well, you can just make it part of the api that you must run the
|>generator to completion, and then the file will close itself.
|
|
| Dunno about you, but pulling multi mb files over wet spaghetti because
| our interface doesn't allow closing when we have what we wanted would
| really suck.
I think that in the vast majority of 'get' cases, we want to read the
entire stream, so a file-like object is overkill. And in the majority
of 'put' cases, we don't have a file-like object, so it's a burden to
provide one to Transport.
But as I said, one approach would be for iterators returned by get_bytes
to have 'close' methods. That would be in-line with the direction
Python is going.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFEWU/K0F+nu1YWqI0RAln4AJ4itRQJqksNeAsN2PItIbu2055rSwCfT2Bg
xT+VVIitZVk+TiWFlq4SBGQ=
=SJLh
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list