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


Groups > comp.lang.python > #105983

Re: DSL design (was DSLs in perl and python)

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: DSL design (was DSLs in perl and python)
Date Wed, 30 Mar 2016 00:41:15 +1100
Lines 15
Message-ID <mailman.151.1459258884.28225.python-list@python.org> (permalink)
References <nceihb$vpg$1@dont-email.me> <mailman.274.1458230151.12893.python-list@python.org> <ncekqc$vpg$6@dont-email.me> <mailman.276.1458231695.12893.python-list@python.org> <ncemdm$eav$3@dont-email.me> <7f139f92-3957-40e5-be75-ad19b9401617@googlegroups.com> <ncfao4$88a$1@ger.gmane.org> <mailman.294.1458254815.12893.python-list@python.org> <b3b4b5a9-65e2-4598-8bba-1f4427f9abec@googlegroups.com> <mailman.315.1458307357.12893.python-list@python.org> <21d252f4-c6a8-4241-88e4-c5f492ebb835@googlegroups.com> <d3fa99e0-cf9d-4876-9fa3-a5c7803e9f54@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de 1UPdpYSrU4/aFnbHPxKuCgFYO87oLzxexhxyRdv62Cyg==
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.011
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'cc:addr:python-list': 0.09; 'subject:design': 0.09; 'url:github': 0.09; 'itself.': 0.11; 'syntax': 0.13; 'subject:python': 0.14; 'wed,': 0.15; 'folks': 0.15; '2016': 0.16; 'btw': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'pointer,': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'url:html#re': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'am,': 0.23; 'header:In-Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'url:python': 0.33; 'version:': 0.33; 'received:google.com': 0.35; 'url:org': 0.36; 'received:209.85': 0.36; 'url:library': 0.36; 'subject:: ': 0.37; 'thanks': 0.37; 'received:209.85.213': 0.37; 'received:209': 0.38; 'url:3': 0.60; 'your': 0.60; '30,': 0.63; 'dont': 0.64; 'mar': 0.65; 'here': 0.66; 'chrisa': 0.84; 'dsl': 0.84; 'to:none': 0.91
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; bh=YMGsdMXyoqAVUscC2eL1KDF5dcSL4cUcxLnfkBf3T7k=; b=tJ4T9Icn+Lo/VD0hyZt7p34GypXvTxpyiA7ak7yxIz+ktlWwx0Wls4ErQO6xcPHIAR Ez/0cyaqd+/+k4+PszUpwCF7KKN3WCCA/yrup4m1LxzZ3138InHmP9pjQGY2p/OUgbSF 5mb7+iv6CYB/k0hu1jLNOMHtFUwN9CQLnZOL0IhAgRQ/I+Vbd30cXmYQcQOnlzyXSGzG BJHZqwa+kyyctYrjGdZOzEtcOqsSFxP1F+3fUtDSdF/Gitd07rgxRv7BNcoh3V6FXLue BG6zW98UjlYcyoSfURElwvMPWSxFObeSmHFbwr/JGSMUCes9O+XRtuz9p7ttVlcefSUo ZABg==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc; bh=YMGsdMXyoqAVUscC2eL1KDF5dcSL4cUcxLnfkBf3T7k=; b=bFNPL3zV39T6zNhkEgXG9uvyAa67HMXZL5E1NtZ5YW6qRMzAw3cOpjmqEy2u57jZsa lRn5hRpahVMM736VwZDZAXhucLs+Ru5dBveOlVFrEvXp6SeLKkj4VeISOEvWEcmJH/Ml LeC9HXnq1TmSYxgjJoqx8p653K678o1TjVjKv9oIqegehFaMcpa6RDfJLOKSOJD+633C r1i1CY163u4wk3gSqLcHlv52P/yp332+0fkalLMNQOuOMZE7mCqgxDGow1HbhrSy0Be/ 2WGrKpe/BJwMCqlNMqoGsu7Nf6vjhaRq5Ad1TEaa4MGbC8LDuH0TMUzO7A4RkOBuYNNf wHvg==
X-Gm-Message-State AD7BkJJoC+ifqyGU2g7RI6sMh0Bel9CtQKp2z/6JHiHBpahvvB7WaiAUGF7ytwJvFqEAxtPr2fAWS+Chpv/gPA==
X-Received by 10.50.28.105 with SMTP id a9mr16387966igh.94.1459258875625; Tue, 29 Mar 2016 06:41:15 -0700 (PDT)
In-Reply-To <d3fa99e0-cf9d-4876-9fa3-a5c7803e9f54@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21
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>
Xref csiph.com comp.lang.python:105983

Show key headers only | View raw


On Wed, Mar 30, 2016 at 12:28 AM, Rustom Mody <rustompmody@gmail.com> wrote:
> Thanks once again to Peter and Jussi.
> With that groupindex pointer, this tiny dsl for re's is here
> https://github.com/rusimody/redsl
> [How BTW did you folks go about unearth that groupindex?? Dont see it in docs]

Depending on your version:

https://docs.python.org/2/library/re.html#re.RegexObject.groupindex
https://docs.python.org/3/library/re.html#re.regex.groupindex

You can find that by searching the docs for "?P", the syntax used in
the RE itself.

ChrisA

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


Thread

sobering observation, python vs. perl "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2016-03-17 15:29 +0000
  Re: sobering observation, python vs. perl "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2016-03-17 15:40 +0000
    Re: sobering observation, python vs. perl Marko Rauhamaa <marko@pacujo.net> - 2016-03-17 17:48 +0200
      Re: sobering observation, python vs. perl "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2016-03-17 15:59 +0000
        Re: sobering observation, python vs. perl Marko Rauhamaa <marko@pacujo.net> - 2016-03-17 18:07 +0200
          Re: sobering observation, python vs. perl "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2016-03-17 16:15 +0000
  Re: sobering observation, python vs. perl Marko Rauhamaa <marko@pacujo.net> - 2016-03-17 17:47 +0200
    Re: sobering observation, python vs. perl "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2016-03-17 16:06 +0000
      Re: sobering observation, python vs. perl Marko Rauhamaa <marko@pacujo.net> - 2016-03-17 18:30 +0200
        Re: sobering observation, python vs. perl "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2016-03-17 16:32 +0000
  Re: sobering observation, python vs. perl srinivas devaki <mr.eightnoteight@gmail.com> - 2016-03-17 21:18 +0530
    Re: sobering observation, python vs. perl "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2016-03-17 16:15 +0000
  Re: sobering observation, python vs. perl Tim Chase <python.list@tim.thechases.com> - 2016-03-17 10:52 -0500
    Re: sobering observation, python vs. perl "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2016-03-17 16:08 +0000
      Re: sobering observation, python vs. perl Ethan Furman <ethan@stoneleaf.us> - 2016-03-17 09:21 -0700
        Re: sobering observation, python vs. perl "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2016-03-17 16:36 +0000
          Re: sobering observation, python vs. perl Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-03-17 17:09 +0000
          Re: sobering observation, python vs. perl Ethan Furman <ethan@stoneleaf.us> - 2016-03-17 10:26 -0700
            Re: sobering observation, python vs. perl "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2016-03-17 17:35 +0000
              Re: sobering observation, python vs. perl Ethan Furman <ethan@stoneleaf.us> - 2016-03-17 11:21 -0700
          DSLs in perl and python (Was sobering observation) Rustom Mody <rustompmody@gmail.com> - 2016-03-17 10:47 -0700
            Re: DSLs in perl and python (Was sobering observation) Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-03-17 22:22 +0000
            Re: DSLs in perl and python (Was sobering observation) MRAB <python@mrabarnett.plus.com> - 2016-03-17 22:43 +0000
              Re: DSLs in perl and python (Was sobering observation) Rustom Mody <rustompmody@gmail.com> - 2016-03-18 05:57 -0700
                Re: DSLs in perl and python (Was sobering observation) Jussi Piitulainen <jussi.piitulainen@helsinki.fi> - 2016-03-18 15:18 +0200
                Re: DSLs in perl and python (Was sobering observation) Peter Otten <__peter__@web.de> - 2016-03-18 14:22 +0100
                Re: DSLs in perl and python (Was sobering observation) Rustom Mody <rustompmody@gmail.com> - 2016-03-18 19:07 -0700
                DSL design (was DSLs in perl and python) Rustom Mody <rustompmody@gmail.com> - 2016-03-29 06:28 -0700
                Re: DSL design (was DSLs in perl and python) Chris Angelico <rosuav@gmail.com> - 2016-03-30 00:41 +1100
                Re: DSL design (was DSLs in perl and python) Jussi Piitulainen <jussi.piitulainen@helsinki.fi> - 2016-03-29 16:45 +0300
                Finding methods, was Re: DSL design (was DSLs in perl and python) Peter Otten <__peter__@web.de> - 2016-03-29 15:51 +0200
      Re: sobering observation, python vs. perl Marko Rauhamaa <marko@pacujo.net> - 2016-03-17 18:34 +0200
        Re: sobering observation, python vs. perl "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2016-03-17 16:42 +0000
          Re: sobering observation, python vs. perl Marko Rauhamaa <marko@pacujo.net> - 2016-03-17 19:08 +0200
            Re: sobering observation, python vs. perl "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2016-03-17 17:25 +0000
              Re: sobering observation, python vs. perl BartC <bc@freeuk.com> - 2016-03-17 17:53 +0000
                Re: sobering observation, python vs. perl Rustom Mody <rustompmody@gmail.com> - 2016-03-17 10:59 -0700
                Re: sobering observation, python vs. perl Marko Rauhamaa <marko@pacujo.net> - 2016-03-17 20:53 +0200
                Re: sobering observation, python vs. perl BartC <bc@freeuk.com> - 2016-03-17 19:06 +0000
                Re: sobering observation, python vs. perl Marko Rauhamaa <marko@pacujo.net> - 2016-03-17 21:11 +0200
            Re: sobering observation, python vs. perl Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-03-17 20:47 +0000
      Re: sobering observation, python vs. perl Peter Otten <__peter__@web.de> - 2016-03-18 10:26 +0100
      Re: sobering observation, python vs. perl Steven D'Aprano <steve@pearwood.info> - 2016-03-18 22:47 +1100

csiph-web