Message142639
| Author |
hynek |
| Recipients |
eric.araujo, hynek, petri.lehtinen, python-dev, tarek |
| Date |
2011年08月21日.19:15:42 |
| SpamBayes Score |
5.6854674e-07 |
| Marked as misclassified |
No |
| Message-id |
<1313954143.68.0.428911579858.issue12721@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
While writing my tests I realized, it would be really useful to make write_file() return the path it wrote to. I need the concatenated filenames most of the time, so I'm getting blocks of:
fn = os.path.join(x,y)
write_file(fn, 'contents')
I'd prefer:
fn = write_file((x,y), 'contents')
Any thoughts? IMHO a write_file that concats path but doesn't return it is only useful in the tree-functions. |
|