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


Groups > comp.lang.python > #91702

replace parens update

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <tyler@tysdomain.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'conventions.': 0.09; 'pgp': 0.09; 'python': 0.11; 'message-----': 0.15; '-----begin': 0.16; '-----end': 0.16; 'conforms': 0.16; 'from:addr:tyler': 0.16; 'from:addr:tysdomain.com': 0.16; 'from:name:littlefield, tyler': 0.16; 'gnupg': 0.16; 'hash:': 0.16; 'message-id:@tysdomain.com': 0.16; 'naming': 0.16; 'received:174.136': 0.16; 'received:tds- solutions.net': 0.16; 'reply-to:addr:tyler': 0.16; 'reply- to:addr:tysdomain.com': 0.16; 'sha1': 0.16; 'skip:f 60': 0.16; 'skip:v 60': 0.16; 'url:py': 0.16; 'machine': 0.21; 'all:': 0.22; "i've": 0.24; 'signed': 0.24; 'header:User-Agent:1': 0.26; 'skip:i 60': 0.29; 'subject:update': 0.29; 'standards': 0.31; 'twitter:': 0.32; 'version:': 0.33; 'to:addr:python-list': 0.35; 'replace': 0.35; 'skip:s 60': 0.35; 'rather': 0.38; 'version': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'here:': 0.62; 'url:u': 0.67; 'header:Reply-To:1': 0.67; 'reply-to:no real name:2**0': 0.71; 'to:name:python': 0.84; 'care,': 0.91
X-Virus-Scanned amavisd-new at tds-solutions.net
Date Mon, 01 Jun 2015 13:36:27 -0400
From "Littlefield, Tyler" <tyler@tysdomain.com>
Reply-To tyler@tysdomain.com
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
MIME-Version 1.0
To Python <python-list@python.org>
Subject replace parens update
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
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.9.1433180532.13271.python-list@python.org> (permalink)
Lines 29
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1433180532 news.xs4all.nl 2897 [2001:888:2000:d::a6]:42556
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:91702

Show key headers only | View raw


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello all:
I've put a new version here:
https://dl.dropboxusercontent.com/u/10204868/replace_parens.py

It's for me, a lot easier to understand. It uses regex to replace
parens rather than using a state machine and conforms to the python
standards for naming and conventions.

HTH,
- -- 
Take care,
Ty
twitter: @sorressean
web:http://tysdomain.com
pubkey: http://tysdomain.com/files/pubkey.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBAgAGBQJVbJgbAAoJEAdP60+BYxejGSoIAJUc3n7dL74MOc6APQ1gY+io
iQhMtmYEp2s5zjv7NP7i+ENWBys8+r7GDBghYW6xrV1JD24VuSFWi1Zya1RuRy2b
v95b+EH/ppHGva4jF71uBAVW4Rh3gdW0uqDrmW4FCdWhZaTATv3hlwG/M5QcFvjF
fDj/lXEB/zljqmf8Hdp3FuHj+QkwJwZihVOhHOHIiZ4zXMlT2J+M76LQKdHcMpFE
SJVaju5isJYEWXGJ9r/iJwgf87Y9fe20bWfqNw0MQtxjiApwo5wcvZshBz6vbLHg
ehKRD/Xz9yBSWnfTrSw0wkOE1uVk4cQlVLhBkP6WvfSf1UYKtXnf6zyNwILu+Rs=
=Ka2/
-----END PGP SIGNATURE-----

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


Thread

replace parens update "Littlefield, Tyler" <tyler@tysdomain.com> - 2015-06-01 13:36 -0400

csiph-web