Pop return from stack?

Carey Tilden carey.tilden at gmail.com
Mon Aug 16 18:03:30 CEST 2010

On Mon, Aug 16, 2010 at 4:18 AM, Steven D'Aprano
<steve at remove-this-cybersource.com.au> wrote:
> 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?

Are you actually disagreeing with the point or just poking fun at my
examples?  If the former, well, phooey.  If the latter, c'est la vie.

> *wink*



More information about the Python-list mailing list