Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Cameron Simpson Newsgroups: comp.lang.python Subject: Re: psss...I want to move from Perl to Python Date: Sun, 31 Jan 2016 14:48:09 +1100 Lines: 20 Message-ID: References: <53d071aa-0f24-421b-8904-084071c4a8b2@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Trace: news.uni-berlin.de JGwOu6DL7QvtoVC+XyWJpgCm6VWm6/3cxCHN/XV6SCZQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.064 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.01; 'subject:Python': 0.05; 'perl,': 0.07; 'python': 0.10; ':-)': 0.12; 'explicitly': 0.15; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'message-id:@cskk.homeip.net': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'simpson': 0.16; 'wrote:': 0.16; 'cheers,': 0.22; 'import': 0.24; 'header:In- Reply-To:1': 0.24; "i've": 0.25; 'header:User-Agent:1': 0.26; 'linux': 0.26; 'compiled': 0.32; 'but': 0.36; 'loaded': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'charset:us- ascii': 0.37; 'received:localdomain': 0.38; 'subject:from': 0.39; 'to:addr:python.org': 0.40; 'ever': 0.60; 'here.': 0.62; 'course': 0.62; 'more': 0.63; 'cameron': 0.66; '3000': 0.79; 'completion': 0.79; '5.2.1': 0.84; '512': 0.84; 'rusi': 0.91; 'have.': 0.93; 'subject:want': 0.93 Content-Disposition: inline In-Reply-To: <53d071aa-0f24-421b-8904-084071c4a8b2@googlegroups.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:102330 On 30Jan2016 19:22, rusi wrote: >Python 3.4.3+ (default, Oct 14 2015, 16:03:50) >[GCC 5.2.1 20151010] on linux >Type "help", "copyright", "credits" or "license" for more information. >>>> python.el: native completion setup loaded >>>> >>>> import re >>>> re._MAXCACHE >512 > >Have you ever seen a program that uses 512 re's? >I havent :-) I have. I've got one right here. It happens to be in perl, but it has been in need of a recode in Python for a long time. It has about 3000 regexps. Of course they will be explicitly compiled in the recode. Cheers, Cameron Simpson