Re: Tcl faster than Perl/Python...but only with tricks...



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.
.



Relevant Pages

  • Functions, parameters
    ... I'am still learning Python and while reading Django tutorial couldn't ... What is the common idiom for ... so I can Google it? ... I understand what this filter ...
    (comp.lang.python)
  • Re: A Tcl/Tk programmer learns Python--any advice?
    ... > Tcl programmers often encounter in learning Python? ... > such as grokking object orientation (Tcl procedures are now embedded ... 100% procedural code if you want to. ...
    (comp.lang.python)
  • Re: Tcl/Tk extension access from python under windows
    ... > I found a tcl extension that does exactly what I need to access a DLL ... > equivalent python extension. ... Now that I've been learning Python and exploring the wonders of OOP, ...
    (comp.lang.python)