[Baypiggies] On Python Design
Alex Martelli
aleax at google.com
Thu Mar 6 02:41:25 CET 2008
On Wed, Mar 5, 2008 at 5:39 PM, Glen Jarvis <glen at glenjarvis.com> wrote:
> PUT DOWN THE CRACK PIPE LOUISE!!! I'm an idiot...
>
> Alex, I didn't actually understand your message before I sent a reply.
> Of course! You're right... in the __init__ of the "cool" object, I can
> call the atexit.register() function AFTER I instantiate the
> monitoring....
>
> This way, the exit will occur only in the parent process.
>
> You can disregard my previous email because obviously I was obviously
> high on stupid when I wrote it.
>
> Your solution, as simple as it is, just wasn't coming to me. I was
> getting suddenly confused and, more importantly, worried, that I'd
> boxed myself in the corner. This was so easy.
>
> I'm on BART, waiting until I can get to embaracadero so I can send
> this... Is it Friday yet? =)
>
> Thanks again for all of your help...
You're welcome! It's happened to all of us, of course, not seeing the
obvious solution/approach (which may not be obvious unless you're
Dutch;-), that's why e.g. brainstorming, pair programming, and code
reviews are "best practices"...!-)
Alex
More information about the Baypiggies
mailing list