Re: [Python-Dev] with use case: replacing a file

2005-05-13 Thread Nick Coghlan
Guido van Rossum wrote: P.S. The points regarding non-local flow control in Joel Spolsky's latest Joel on Software article (especially the links at the end) may have had something to do with my change of heart. . . I'm a big fan of Joel. Care to share the specific URL for the article you're

Re: [Python-Dev] with use case: replacing a file

2005-05-13 Thread Phillip J. Eby
At 07:23 PM 5/13/2005 +1000, Nick Coghlan wrote: Guido van Rossum wrote: P.S. The points regarding non-local flow control in Joel Spolsky's latest Joel on Software article (especially the links at the end) may have had something to do with my change of heart. . . I'm a big fan of

[Python-Dev] with use case: replacing a file

2005-05-12 Thread Ka-Ping Yee
Here's another use case to think about. Example 2: Replacing a File. Suppose we want to reliably replace a file. We require that either: (a) The file is completely replaced with the new contents; or (b) the filesystem is unchanged and a meaningful exception is thrown. We'd like to be