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


Groups > comp.lang.python > #76659

Re: MacroPy tracing not working for me...

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.005
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:not': 0.03; 'broken': 0.04; '(even': 0.05; 'assumed': 0.09; 'url:github': 0.09; 'cc:addr:python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'range(0,': 0.16; 'tracing': 0.16; 'wrote:': 0.18; 'wed,': 0.18; '(the': 0.22; 'example': 0.22; 'import': 0.22; 'aug': 0.22; 'issue.': 0.22; 'cc:addr:python.org': 0.22; 'skip': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'raise': 0.29; "doesn't": 0.30; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'trace': 0.31; 'file': 0.32; 'running': 0.33; "i'd": 0.34; 'something': 0.35; 'received:google.com': 0.35; 'issue': 0.38; 'first': 0.61; 'here:': 0.62; 'sum': 0.64; 'here': 0.66; '20,': 0.68; 'saving': 0.69; 'to:none': 0.92; 'from.': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=F65t//zZAyFNi7rS2AYUUZuALCHIVnlFux1WLpp6vOM=; b=tpEcelty2x3SG2uMRSNf1Mp+Gx9oPAXkHi1GvLw5mWFBA7l7OTkzT6fOQ+isqXFD3i bXY0Q9HLOW/IvrfynhMIKVRGxjQe2KwJbG2shNMsHPCi+MM3HAR4YabqR4rWkUHm7/3M ZmFQiHNUb3FdHkZg6/miyGxI9lo3bWE+qLeOKTL6+mI9gQ7zMHjr/HgFfQtGx8iMHBJH Quvi3KyvI0rL8QezFH2HGeum+9ahI5simvclQtXBOt+us0AA0fKIP4O1oiq7RTEpoFbI lAQHgXpLHg6JQLDCJUpC6r0hnSX4KofNY9PWlQOshtLoYszlPY6/31aIBIf7NisX6tLv w+Mg==
MIME-Version 1.0
X-Received by 10.42.62.6 with SMTP id w6mr47271238ich.24.1408536238231; Wed, 20 Aug 2014 05:03:58 -0700 (PDT)
In-Reply-To <CANc-5UwMj5-qvJ9qvXbJYmGPMH=p5RO2Bt98Y8aia5ce=ke5RQ@mail.gmail.com>
References <CANc-5UwMj5-qvJ9qvXbJYmGPMH=p5RO2Bt98Y8aia5ce=ke5RQ@mail.gmail.com>
Date Wed, 20 Aug 2014 22:03:58 +1000
Subject Re: MacroPy tracing not working for me...
From Chris Angelico <rosuav@gmail.com>
Cc Python <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.13202.1408536247.18130.python-list@python.org> (permalink)
Lines 22
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1408536247 news.xs4all.nl 2961 [2001:888:2000:d::a6]:50817
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:76659

Show key headers only | 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