Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Cecil Westerhof Newsgroups: comp.lang.python Subject: Re: Messages with a time stamp Date: Sun, 03 May 2015 12:08:25 +0200 Organization: Decebal Computing Lines: 19 Message-ID: <87a8xmkm7a.fsf@Equus.decebal.nl> References: <87r3qykr39.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="1e75f8f7bcfe2945d0316cb03b0f6951"; logging-data="30427"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+5JAut805Z3LtZI3siqv2ovUlQS6LMBTk=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Face: "(y8cC@tg_12{">GF'UXTW]FHI2wMiZNrnf'1EFQ&O#$m:f#O7+7}kR,v+Pti8=Vi/Z"g^?b"E Cancel-Lock: sha1:Mp89fS6tBLKZluJGj5tNgi7qAmo= sha1:5HSyKfikZaXkACUdbVJKFz2tnhM= X-Homepage: http://www.decebal.nl/ Xref: csiph.com comp.lang.python:89849 Op Sunday 3 May 2015 11:36 CEST schreef Mark Lawrence: > Rather than reinvent the wheel maybe you can pinch something from > here > https://docs.python.org/3/howto/logging-cookbook.html#logging-to-multiple-destinations That looks very promising. The only problem could be that it seems not to have the possibility to do: 02:16:40: Start with the time needed to calculate 1 times No recursive, because without tail recursion you would run out of stack space 02:16:40: Timing factorial_iterative (100000): 3.7705 But I could write a patch for that. Then I would be contributing besides bugging this list. ;-) -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof