Message188073
Thanks for the comments Antoine. I didn't have a good reason for using the file name at the time, although even when using the file name I should have used the "file" variable that was already created. I tried using the file descriptor, but I encountered a "[Errno 9] Bad file descriptor" once the methods using _mkstemp_inner call _io.open on the returned fd. This leads me to believe that the fd is being closed somehow, but as you can see from my copy function, I don't implicitly or explicitly close the file using the file descriptor. I'm not sure yet why the file name works as expected but the fd does not. Am I missing something simple?
As for points 2-4 I have most of that done. What's the pythonic way for determining if an argument is file-like? I've seen isinstance, hasattr, etc. |
|
Date |
User |
Action |
Args |
2013-04-29 15:11:28 | kyle.roberts | set | recipients:
+ kyle.roberts, ncoghlan, pitrou, r.david.murray |
2013-04-29 15:11:28 | kyle.roberts | set | messageid: <1367248288.34.0.731919592439.issue17673@psf.upfronthosting.co.za> |
2013-04-29 15:11:28 | kyle.roberts | link | issue17673 messages |
2013-04-29 15:11:27 | kyle.roberts | create | |
|