Message186392
It is sometimes useful to create a temporary file as a copy of an existing file (especially e.g. in tests, when you want to mutate the temp file but not the original). I would suggest adding a `copy_from` argument to TemporaryFile and NamedTemporaryFile, which is either the path to an existing file or a file-like object. Then the contents of that source file are copied to the tempfile before it is yielded. |
|
Date |
User |
Action |
Args |
2013-04-09 10:19:58 | pitrou | set | recipients:
+ pitrou, ncoghlan |
2013-04-09 10:19:58 | pitrou | set | messageid: <1365502798.91.0.357173988008.issue17673@psf.upfronthosting.co.za> |
2013-04-09 10:19:58 | pitrou | link | issue17673 messages |
2013-04-09 10:19:58 | pitrou | create | |
|