Re: Tcl faster than Perl/Python...but only with tricks...
- From: claird@xxxxxxxxx (Cameron Laird)
- Date: Sat, 30 Dec 2006 19:21:23 +0000
In article <en61bi$a5k$1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Stephan Kuhagen <stk@xxxxxxxxxx> wrote:
.
.
.
def do():.
f=file('bigfile')
r = re.compile(r'destroy', re.IGNORECASE)
line=f.readline()
while line!="":
if r.search(line):
print line.rstrip("\r\n")
line=f.readline()
.
.
OTOH, nobody would write something like this in Python, since in the.
tutorial shows you to use for...in or filter() (unfair trick! ;-) as soon
as you start learning Python. In Tcl I thinks it is natural to use
.
.
Plenty of people--including book authors--*do* write
things like this in Python.
.
- Follow-Ups:
- Re: Tcl faster than Perl/Python...but only with tricks...
- From: Stephan Kuhagen
- Re: Tcl faster than Perl/Python...but only with tricks...
- References:
- Tcl faster than Perl/Python...but only with tricks...
- From: Stephan Kuhagen
- Re: Tcl faster than Perl/Python...but only with tricks...
- From: George Petasis
- Re: Tcl faster than Perl/Python...but only with tricks...
- From: Stephan Kuhagen
- Tcl faster than Perl/Python...but only with tricks...
- Prev by Date: Re: Who uses peer text widgets?
- Next by Date: Spawning a Secure Xterm
- Previous by thread: Re: Tcl faster than Perl/Python...but only with tricks...
- Next by thread: Re: Tcl faster than Perl/Python...but only with tricks...
- Index(es):
Relevant Pages
|