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 nickeubank
Recipients nickeubank
Date 2016-03-21.17:00:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1458579615.34.0.816469803879.issue26605@psf.upfronthosting.co.za>
In-reply-to
Content
As a social scientists trying to help other social scientists move from language like R, Stata, and Matlab into Python, one of the behaviors I've found unnecessarily difficult to explain is the "file.open()/file.close()" idiom (or, alternatively, context managers). In normal operating systems, and many high level languages, saving is a one-step operation. 

I understand there are situations where an open file handle is useful, but it seems a simple `to_file` method on strings (essentially wrapping a context-manager) would be really nice, as it would save users from learning this idiom. 

Any chance it's feasible? Sadly, I have no real C skills so can't implement myself. :(
History
Date User Action Args
2016-03-21 17:00:15nickeubanksetrecipients: + nickeubank
2016-03-21 17:00:15nickeubanksetmessageid: <1458579615.34.0.816469803879.issue26605@psf.upfronthosting.co.za>
2016-03-21 17:00:15nickeubanklinkissue26605 messages
2016-03-21 17:00:15nickeubankcreate