Short-circuit Logic

Steven D'Aprano steve+comp.lang.python at pearwood.info
Thu May 30 15:22:46 EDT 2013


On Thu, 30 May 2013 16:40:52 +0000, Steven D'Aprano wrote:

> On Fri, 31 May 2013 01:56:09 +1000, Chris Angelico wrote:

>> You're assuming you can casually hit Ctrl-C to stop an infinite loop,
>> meaning that it's trivial. It's not. Not everything lets you do that;
>> or possibly halting the process will halt far more than you intended.
>> What if you're editing live code in something that's had uninterrupted
>> uptime for over a year?
> 
> Then more fool you for editing live code.

Ouch! That came out much harsher than it sounded in my head :(

Sorry Chris, that wasn't intended as a personal attack against you, just 
as a comment on the general inadvisability of modifying code on the fly 
while it is being run.


-- 
Steven



More information about the Python-list mailing list