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, serhiy.storchaka, vstinner
Date 2016-03-22.00:18:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1458605933.44.0.0721155103262.issue26605@psf.upfronthosting.co.za>
In-reply-to
Content
Seems like existence of a method in the stdlib (or at least in the pathlib part of the stdlib) suggests issues with text encoding can be overcome. 

IMHO I would suggest most people have no idea about that method (I've been doing python for years and this has always been a personal frustration, and I've asked several others for better options and no one had one to offer),  and it seems like it would make much more sense as a string method. If someone has a string they want to save to disk, I can't imagine anyone looking in the Path library. 

I respect the desire to avoid bloat -- the context manager or open/close idiom has just felt unnecessarily complicated (dare I say unpythonic?) for a common task. 

Also, I think it's one that data scientists use a lot when they generate outputs to pull into LaTeX documents.
History
Date User Action Args
2016-03-22 00:18:53nickeubanksetrecipients: + nickeubank, vstinner, serhiy.storchaka
2016-03-22 00:18:53nickeubanksetmessageid: <1458605933.44.0.0721155103262.issue26605@psf.upfronthosting.co.za>
2016-03-22 00:18:53nickeubanklinkissue26605 messages
2016-03-22 00:18:53nickeubankcreate