psss...I want to move from Perl to Python

Rustom Mody rustompmody at gmail.com
Sat Jan 30 22:53:14 EST 2016


On Sunday, January 31, 2016 at 9:18:31 AM UTC+5:30, Cameron Simpson wrote:
> 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.
> 

I would guess it needs more recoding than explicit compilation!
Maybe something like http://www.colm.net/open-source/ragel/
Unfortunately no python binding so far :-(



More information about the Python-list mailing list