Pop return from stack?

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Mon Aug 16 07:18:11 EDT 2010


On Sun, 15 Aug 2010 21:01:04 -0700, Carey Tilden wrote:

> On Sun, Aug 15, 2010 at 6:43 PM, bvdp <bob at mellowood.ca> wrote:
> 
>> Not to belabor the point .. but "func" is not a standard lib module.
>> It's part of a much larger application ... and in that application it
>> makes perfect sense to terminate the application if it encounters an
>> error. I fail to see the problem with this. Why would an APPLICATION
>> raise a error or not exit to the system?
> 
> For me, the main reason is to ensure the application has only one exit
> point.  There's only one spot to maintain the code for closing files,
> cleaning up network connections, displaying errors to the user, etc.

You mean all the things that Python's garbage collector already does for 
you?


*wink*



-- 
Steven



More information about the Python-list mailing list