Re: final question: logging to stdout and updating files

2012-10-05 Thread Ramchandra Apte
On Thursday, 4 October 2012 19:30:26 UTC+5:30, Steven D'Aprano wrote: > On Thu, 04 Oct 2012 06:34:28 -0700, Ramchandra Apte wrote: > > > > > "Optimize code always even if it causes bugs" - Ramchandra Apte, 2001- > > > > Well, you've just added yourself into my list of people whose advice >

Re: final question: logging to stdout and updating files

2012-10-05 Thread Mark Lawrence
On 04/10/2012 23:36, Prasad, Ramit wrote: Python is a product for Americans! ;) It should ensure America wins the Test Matchwait, do we even have a cricket team? ChrisA could have been talking rugby, your rugby union team isn't't too bad for a bunch of amateurs, some of whom had to take u

Re: final question: logging to stdout and updating files

2012-10-05 Thread Mark Lawrence
On 04/10/2012 15:27, Chris Angelico wrote: ensured that Australia won the next Test Match ChrisA may need to schedule surgical detongueing of his cheek I'll arrange the cheek detonguing very cheaply after a comment like that :) -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/li

RE: final question: logging to stdout and updating files

2012-10-04 Thread Prasad, Ramit
Chris Angelico wrote: > Sent: Thursday, October 04, 2012 9:28 AM > To: python-list@python.org > Subject: Re: final question: logging to stdout and updating files > > On Fri, Oct 5, 2012 at 12:00 AM, Steven D'Aprano > wrote: > > That is *terrible* advice. But if yo

Re: final question: logging to stdout and updating files

2012-10-04 Thread Steven D'Aprano
On Wed, 03 Oct 2012 21:11:29 -0600, Littlefield, Tyler wrote: > I've seen frameworks like django reload files when it detects that > they've been changed; how hard would it be to make my engine reload > files that it detects were changed? Oh, about as hard as writing a program. What sort of fil

Re: final question: logging to stdout and updating files

2012-10-04 Thread Chris Angelico
On Fri, Oct 5, 2012 at 12:00 AM, Steven D'Aprano wrote: > That is *terrible* advice. But if you insist on following it, you can > optimize *any* Python program to this: > > # === start code === > pass # this line is optional > # === end code === > > > There you go. The most heavily optimized, fas

Re: final question: logging to stdout and updating files

2012-10-04 Thread Steven D'Aprano
On Thu, 04 Oct 2012 06:34:28 -0700, Ramchandra Apte wrote: > "Optimize code always even if it causes bugs" - Ramchandra Apte, 2001- Well, you've just added yourself into my list of people whose advice should always be ignored. That is *terrible* advice. But if you insist on following it, you ca

Re: final question: logging to stdout and updating files

2012-10-04 Thread Ramchandra Apte
On Thursday, 4 October 2012 08:41:35 UTC+5:30, Littlefield, Tyler wrote: > pHello all: > > I've seen frameworks like django reload files when it detects that > > they've been changed; how hard would it be to make my engine reload > > files that it detects were changed? I'm also curious how ha

Re: final question: logging to stdout and updating files

2012-10-04 Thread Oscar Benjamin
On 4 October 2012 04:11, Littlefield, Tyler wrote: > pHello all: > I've seen frameworks like django reload files when it detects that they've > been changed; how hard would it be to make my engine reload files that it > detects were changed? I tend to think that it's better to reload things expli

Re: final question: logging to stdout and updating files

2012-10-04 Thread Ramchandra Apte
On Thursday, 4 October 2012 08:41:35 UTC+5:30, Littlefield, Tyler wrote: > pHello all: > > I've seen frameworks like django reload files when it detects that > > they've been changed; how hard would it be to make my engine reload > > files that it detects were changed? I'm also curious how ha

final question: logging to stdout and updating files

2012-10-03 Thread Littlefield, Tyler
pHello all: I've seen frameworks like django reload files when it detects that they've been changed; how hard would it be to make my engine reload files that it detects were changed? I'm also curious how hard it would be to build in some error recovery. For example right now when an exception