Just to follow up on this thread, for interested readers' future reference...
On Tue, Apr 21, 2015 at 4:22 PM, Robert Kern wrote:
> On Tue, Apr 21, 2015 at 8:02 PM, Rob Clewley wrote:
>> In fact, I'm trying to build a general purpose tool for exploring the
>> inner workings of numerical algorith
On 22Apr2015 10:50, Chris Angelico wrote:
On Wed, Apr 22, 2015 at 10:11 AM, Cameron Simpson wrote:
I have a context manager named "Pfx" which I use liberally in my code like
this:
from cs.logutils import Pfx, info
def load(filename):
with Pfx("loading %r", filename):
with open(file
On Wed, Apr 22, 2015 at 10:11 AM, Cameron Simpson wrote:
> I have a context manager named "Pfx" which I use liberally in my code like
> this:
>
> from cs.logutils import Pfx, info
>
> def load(filename):
>with Pfx("loading %r", filename):
> with open(filename) as fp:
>lineno = 0
On 21Apr2015 16:46, Rob Clewley wrote:
All of these ideas and links are very helpful, thank you!
Another to add to your list, a be warned that it is baroque.
I have a context manager named "Pfx" which I use liberally in my code like
this:
from cs.logutils import Pfx, info
def load(filen
On 21/04/2015 21:22, Robert Kern wrote:
On Tue, Apr 21, 2015 at 8:02 PM, Rob Clewley wrote:
Hi,
I'm in need of a system for logging the step-wise results and
diagnostic metadata about a python function implementation of an
algorithm that I'm developing. The specific algorithm is not of great
All of these ideas and links are very helpful, thank you!
-Rob
--
https://mail.python.org/mailman/listinfo/python-list
On Tue, Apr 21, 2015 at 8:02 PM, Rob Clewley wrote:
>
> Hi,
>
> I'm in need of a system for logging the step-wise results and
> diagnostic metadata about a python function implementation of an
> algorithm that I'm developing. The specific algorithm is not of great
> consequence except that it's fo
On Tue, Apr 21, 2015 at 1:02 PM, Rob Clewley wrote:
> I don't think the built-in logger is sophisticated enough for this,
> being a flat record of freeform text AFAIU, but the API looks
> appealing.
It doesn't have to be a flat record. You can write a custom a Handler
that does anything you want
Hi,
I'm in need of a system for logging the step-wise results and
diagnostic metadata about a python function implementation of an
algorithm that I'm developing. The specific algorithm is not of great
consequence except that it's for scientific computing and may produce
large (e.g., '00s or maybe