Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python.announce > #939
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <news@google.com> |
| X-Original-To | python-announce@python.org |
| Delivered-To | python-announce-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'url:pypi': 0.03; 'syntax': 0.04; 'classes,': 0.05; 'cpython': 0.05; 'inspired': 0.05; 'modify': 0.07; 'parser': 0.07; 'pypy': 0.07; 'string': 0.09; 'url:github': 0.09; 'runs': 0.10; 'python': 0.11; '2.7': 0.14; 'up-to-date': 0.14; 'finds': 0.16; 'macros': 0.16; 'semantics': 0.16; 'subject: \n ': 0.16; 'subject:Case': 0.16; 'subject:Classes': 0.16; 'tracing': 0.16; 'user-defined': 0.16; 'pushed': 0.16; 'hey': 0.18; 'all,': 0.19; 'module': 0.19; 'mechanism': 0.19; 'example': 0.22; 'programming': 0.22; 'import': 0.22; 'print': 0.22; 'header:User-Agent:1': 0.23; 'fine': 0.24; "i've": 0.25; 'xml': 0.29; 'matching': 0.30; 'code': 0.31; 'concise': 0.31; 'integrating': 0.31; 'markup': 0.31; 'anyone': 0.31; 'class': 0.32; 'thanks!': 0.32; 'url:python': 0.33; 'received:209.85': 0.35; 'received:google.com': 0.35; 'version': 0.36; 'programming,': 0.36; 'url:org': 0.36; 'list': 0.37; 'received:209': 0.37; 'implement': 0.38; 'extremely': 0.39; 'functional': 0.39; 'easy': 0.60; 'hope': 0.61; 'full': 0.61; 'providing': 0.61; 'subject:more': 0.64; 'world': 0.66; 'subject:. ': 0.67; 'to:addr:comp-lang-python-announce': 0.70; 'apart': 0.72; 'to:addr:moderators.isc.org': 0.77; 'features:': 0.84; 'scala': 0.84; 'useful!': 0.84 |
| Delivered-To | comp-lang-python-announce@moderators.isc.org |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-received:path:newsgroups:date:complaints-to :injection-info:nntp-posting-host:user-agent:mime-version:message-id :subject:from:injection-date:to:content-type :content-transfer-encoding; bh=hiDSSKBUMRixP22u1owkGHT/mb13ZMHiYB6M2ywLrzc=; b=dA+sfLLhs/42e7gc56MFyri6wl8bdgIdVYr/g6np10wtnnwnMCHIeG4mKv8cR+7kKy YjkBXiPhWWG0lgVPtmppV8r61LCyjt304ObsrrmnGRU1S0EzYXKeHuhPJPPiOTMMNg8t SiQ5rGeYvkyHOwalUBOs61me+zLQ50NwHVpJ0BEgI5n4amksr0S6az8VlQ87kg9o4Cr6 qh74Eq7SUpwd9xpUDBJ5Okf7fydB2GPffWR8BX14+pN7Fvef73btbhaKoMD8Y4+OYMPj CoJdYm5CPJ8obuCoeG8C5LvkrvsY6B6uMqF1G1QVOrVsTCewwXsp2Y1L8IaFoqv6SeDR FtxA== |
| X-Received | by 10.224.10.6 with SMTP id n6mr8305047qan.4.1368048768773; Wed, 08 May 2013 14:32:48 -0700 (PDT) |
| X-Received | by 10.49.134.36 with SMTP id ph4mr908745qeb.30.1368048768747; Wed, 08 May 2013 14:32:48 -0700 (PDT) |
| Newsgroups | comp.lang.python.announce |
| Date | Wed, 8 May 2013 14:32:48 -0700 (PDT) |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=18.111.54.12; posting-account=wOrl5goAAADy7XOwC-APBHTPH8Gy_fDY |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Subject | MacroPy 0.1.2: Macros for Pythoon. Quasiquotes, Case Classes, Pattern Matching, LINQ and more! |
| From | Haoyi Li <haoyi.sg@gmail.com> |
| Injection-Date | Wed, 08 May 2013 21:32:48 +0000 |
| To | comp-lang-python-announce@moderators.isc.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | quoted-printable |
| X-Mailman-Approved-At | Thu, 09 May 2013 21:09:03 +0200 |
| X-BeenThere | python-announce-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| Reply-To | python-list@python.org |
| List-Id | Announcement-only list for the Python programming language <python-announce-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-announce-list/> |
| List-Post | <mailto:python-announce-list@python.org> |
| List-Help | <mailto:python-announce-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=subscribe> |
| Approved | python-announce-list@python.org |
| Message-ID | <mailman.1502.1368126543.3114.python-announce-list@python.org> (permalink) |
| Lines | 40 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1368126544 news.xs4all.nl 15977 [2001:888:2000:d::a6]:42927 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python.announce:939 |
Show key headers only | View raw
Hey All, MacroPy is an implementation of Macros in the Python Programming, providing a mechanism for user-defined functions (macros) to perform transformations on the abstract syntax tree(AST) of Python code at module import time. This is an easy way to modify the semantics of a python program in ways which are otherwise impossible, for example providing an extremely concise way of declaring classes: @case class Point(x, y) p = Point(1, 2) print p.x # 1 print p # Point(1, 2) Apart from this, we've used MacroPy's macros to implement a pretty impressive list of features: - Quasiquotes - String Interpolation - Pyxl, integrating XML markup into a Python program - Tracing and Smart Asserts - Case Classes, easy Algebraic Data Types from Scala - Pattern Matching from the Functional Programming world - LINQ to SQL from C# - Quick Lambdas from Scala and Groovy, - Parser Combinators, inspired by Scala's. The full documentation is over on github (https://github.com/lihaoyi/macropy) if anyone wants to check it out. It runs fine on both CPython 2.7 and PyPy 1.9, and I've just pushed the last up-to-date version of MacroPy to PyPI: https://pypi.python.org/pypi/MacroPy Hope someone finds this useful! Thanks! -Haoyi
Back to comp.lang.python.announce | Previous | Next | Find similar | Unroll thread
MacroPy 0.1.2: Macros for Pythoon. Quasiquotes, Case Classes, Pattern Matching, LINQ and more! Haoyi Li <haoyi.sg@gmail.com> - 2013-05-08 14:32 -0700
csiph-web