消息 [142639]
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. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2011-08-21 19:15:43 | hynek | 修改 | recipients:
+ hynek, tarek, eric.araujo, python-dev, petri.lehtinen |
| 2011-08-21 19:15:43 | hynek | 修改 | messageid: <1313954143.68.0.428911579858.issue12721@psf.upfronthosting.co.za> |
| 2011-08-21 19:15:43 | hynek | 链接 | issue12721 messages |
| 2011-08-21 19:15:42 | hynek | 创建 | |
|