PEP on path module for standard library
Steven D'Aprano
steve at REMOVETHIScyber.com.au
Sat Jul 30 11:59:59 EDT 2005
On Sat, 30 Jul 2005 14:43:27 +0200, Reinhold Birkenfeld wrote:
>> Less important but non-controversial:
>>
>> - Path.tempfile(), Path.tempdir():
>> Create a temporary file using tempfile.mkstemp, tempfile.mkdtemp
>>
>> - Path.tempfileobject():
>> Create a temporary file object using tempfile.TemporaryFile.
>> (Static method.)
>
> Don't know whether these belong here. They are all not acting upon the
> path, but create the file/dir at another location.
Agreed that they do not belong.
>> - .delete_dammit() recursively deletes it, whatever it is, without you
>> having to do the if file/if directory dance. I suppose it would need
>> a politically correct name.
>> which you really have to do every time you delete.
>
> *grin* Any naming suggestions?
force_delete()
--
Steven.
More information about the Python-list
mailing list