Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #76659

Re: MacroPy tracing not working for me...

References <CANc-5UwMj5-qvJ9qvXbJYmGPMH=p5RO2Bt98Y8aia5ce=ke5RQ@mail.gmail.com>
Date 2014-08-20 22:03 +1000
Subject Re: MacroPy tracing not working for me...
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.13202.1408536247.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Wed, Aug 20, 2014 at 12:18 AM, Skip Montanaro <skip@pobox.com> wrote:
> import macropy.tracing
> with macropy.tracing.trace:
>     ... my broken code here ...
>
> (The first example is just "with trace: ..." and doesn't say where the
> trace object came from. I assumed it came from the tracing module.)

I'd say that's correct; there's an example here:

https://github.com/lihaoyi/macropy

from macropy.tracing import macros, trace
with trace:
    sum = 0
    for i in range(0, 5):
        sum = sum + 5

And I'm seeing the same issue you are (even saving the exact example
to a file and running it). Sounds like something to raise as an issue.

ChrisA

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: MacroPy tracing not working for me... Chris Angelico <rosuav@gmail.com> - 2014-08-20 22:03 +1000

csiph-web