Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'syntax': 0.04; 'though:': 0.07; 'string': 0.09; '3.0,': 0.09; 'pep': 0.09; 'subject:language': 0.09; 'subject:string': 0.09; 'cc:addr:python- list': 0.11; 'python': 0.11; 'language.': 0.14; 'random': 0.14; 'template': 0.14; '3.3,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'reinstated': 0.16; 'subject:generation': 0.16; 'subject:random': 0.16; 'wrote:': 0.18; 'module': 0.19; "hasn't": 0.19; 'code,': 0.22; 'aug': 0.22; 'cc:addr:python.org': 0.22; "aren't": 0.24; 'paul': 0.24; 'looks': 0.24; 'cc:2**0': 0.24; 'supported': 0.26; 'header:In-Reply-To:1': 0.27; 'statement': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'minor': 0.31; 'run': 0.32; 'fri,': 0.33; 'actual': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'version': 0.36; '2.6': 0.36; 'curious': 0.36; 'should': 0.36; 'pm,': 0.38; 'generating': 0.39; 'simple': 0.61; 'making': 0.63; 'such': 0.63; 'more': 0.64; 'good!': 0.84; 'thing,': 0.91; 'to:none': 0.92 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=KeRCcjtWNJUM6zpxIgBk9v/S6JObhEpASA8rgOclIY4=; b=o/P1Shg/+rwD6T5I4Sq9KoV2TDWc0e/bVKo5E3U8lc3RYHLnqJLn4S+Nf3mzpbpzo7 YuSzf4VIKmcvxOiGkLxc0YMweZaay1/NDEFAASwdh0bnEJw2mSZOpsigaEybLyssFf2W Y/h5E6QBXZuQeCcDlMQBw8GBIuMGMPxxMLAw+XXW4UOOIO9Udxwr1kzGDKtQOMRnOmji hzHb9j6+zT84napIB3sD50KiGqeRXbAC1EkusXtWgGIQWSQNFmfws4IJM9GK44ITAxni tdcm0xo/qB1NpKY4HRzyCHIfD01R0Qy1sisZuU0JU981yXk9YmfiGcvO18ZCCl7CsGhS u9yw== MIME-Version: 1.0 X-Received: by 10.50.176.202 with SMTP id ck10mr3473911igc.2.1407489753139; Fri, 08 Aug 2014 02:22:33 -0700 (PDT) In-Reply-To: <14d94692-2257-4dfb-a82f-f1674a839233@googlegroups.com> References: <14d94692-2257-4dfb-a82f-f1674a839233@googlegroups.com> Date: Fri, 8 Aug 2014 19:22:33 +1000 Subject: Re: Template language for random string generation From: Chris Angelico Cc: "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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1407489761 news.xs4all.nl 2959 [2001:888:2000:d::a6]:38371 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:75873 On Fri, Aug 8, 2014 at 7:01 PM, Paul Wolf wrote: > This is a proposal with a working implementation for a random string generation template syntax for Python. `strgen` is a module for generating random strings in Python using a regex-like template language. Looks good! One thing, though: > * Supports > 2.6 through 3.3 The implication of a simple reading of this statement is that your code should run on 2.6, 2.7, 3.0, 3.1, 3.2, and 3.3, and hasn't been tested on 3.4. But I eyeballed your code, and I'm seeing a lot of u'string' prefixes, which aren't supported on 3.0-3.2 (they were reinstated in 3.3 as per PEP 414), so a more likely version set would be 2.6+, 3.3+. What's the actual version support? Apologies for making such a minor quibble! But I'm curious as to what you actually support. ChrisA