Greg Ewing wrote: > What might make more sense is a context manager, > e.g. > > with renaming_file("blarg.txt", "w") as f: > ... As you were describing the problems with "rename on close", I actually immediately thought of the oft-repeated db transaction commit/rollback example from PEP 343 :) Cheers, Nick. -- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia ---------------------------------------------------------------
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4