[Python-ideas] Rewriting file - pythonic way
Oleg Broytman
phd at phdru.name
Sun Apr 15 11:19:49 EDT 2018
On Sun, Apr 15, 2018 at 05:15:55PM +0300, Alexey Shrub <ashrub at yandex.ru> wrote:
> В Воскресенье, 15 апр. 2018 в 2:40 , Nick Coghlan <ncoghlan at gmail.com>
> написал:
> > https://bugs.python.org/issue8604#msg174104 is the relevant tracker
> > discussion
>
> Thanks all, I agree that universal and absolutly safe solution is very
> difficult, but for experiment I made some draft
> https://github.com/worldmind/scripts/tree/master/filerewrite
Good!
> main code here
> https://github.com/worldmind/scripts/blob/master/filerewrite/filerewrite.py#L46
Can I recommend to catch exceptions in `backuper.backup()`,
cleanup backuper and unlock locker?
Oleg.
--
Oleg Broytman http://phdru.name/ phd at phdru.name
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-ideas
mailing list