Message225516
| Author |
markgrandi |
| Recipients |
lars.gustaebel, markgrandi, r.david.murray |
| Date |
2014年08月19日.06:41:31 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1408430492.08.0.47023986358.issue22208@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I still don't see why TarFile.add() can't be changed to accept a file like object so users don't have to fumble around with a TarInfo object when they just want add a file like object, and don't care about the permission bits and whatnot. It also says un the TarInfo section that you get those objects from gettarinfo(), and its not clear (at least to me) that you can just manually construct one, and that you only need the size property set.
I still the easiest way to solve this is to have gettarinfo() or add() accept file like objects that don't have file descriptors, as it would go a long way to simplifying the use of this module as well. (in zip file you don't ever have to worry about ZipInfo objects unless you need them...) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014年08月19日 06:41:32 | markgrandi | set | recipients:
+ markgrandi, lars.gustaebel, r.david.murray |
| 2014年08月19日 06:41:32 | markgrandi | set | messageid: <1408430492.08.0.47023986358.issue22208@psf.upfronthosting.co.za> |
| 2014年08月19日 06:41:32 | markgrandi | link | issue22208 messages |
| 2014年08月19日 06:41:31 | markgrandi | create |
|