Why is Python so slow ?- revisited.

Mike Fletcher mfletch at tpresence.com
Sun Jun 18 23:32:14 EDT 2000


The byte code compilation makes the doc string an attribute of the function
object, as opposed to a statement that needs to be executed on each
iteration of the function.

Enjoy,
Mike

-----Original Message-----
From: William Dandreta [mailto:wjdandreta at worldnet.att.net]
Sent: Sunday, June 18, 2000 11:22 PM
To: python-list at python.org
Subject: Re: Why is Python so slow ?- revisited.

...

The """ syntax would seem to be slower than putting # at the begining of
everyline because with # it only needs to test the first character of the
line, if it's # it can skip the rest of the line. But with """, it needs to
check every character after until it finds the matching """.

...




More information about the Python-list mailing list