This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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.
History
Date User Action Args
2011-08-21 19:15:43hyneksetrecipients: + hynek, tarek, eric.araujo, python-dev, petri.lehtinen
2011-08-21 19:15:43hyneksetmessageid: <1313954143.68.0.428911579858.issue12721@psf.upfronthosting.co.za>
2011-08-21 19:15:43hyneklinkissue12721 messages
2011-08-21 19:15:42hynekcreate