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


Groups > comp.lang.python > #76659 > unrolled thread

Re: MacroPy tracing not working for me...

Started byChris Angelico <rosuav@gmail.com>
First post2014-08-20 22:03 +1000
Last post2014-08-20 22:03 +1000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#76659 — Re: MacroPy tracing not working for me...

FromChris Angelico <rosuav@gmail.com>
Date2014-08-20 22:03 +1000
SubjectRe: MacroPy tracing not working for me...
Message-ID<mailman.13202.1408536247.18130.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web