[Python-Dev] [Python-checkins] devguide: Add a note about a possible starter project.

Nick Coghlan ncoghlan at gmail.com
Thu Jan 6 03:45:13 CET 2011


On Thu, Jan 6, 2011 at 8:11 AM, brett.cannon <python-checkins at python.org> wrote:
> +.. todo::
> +    See if tempfile or test.support has a context manager that creates and
> +    deletes a temp file so as to move off of test.support.TESTFN.

Yeah, tempfile.TemporaryFile and friends all support the CM protocol.

There's also the tempfile.TemporaryDirectory CM (as of 3.2).

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-Dev mailing list