Python modules and Perl modules
Aahz
aahz at pythoncraft.com
Thu May 29 12:57:00 EDT 2003
In article <20030530003407.59663cda.rm at no-mail.com>,
Roy Marteen <rm at no-mail.com> wrote:
>
>I noticed that Python modules are compiled to .pyo (which is binary),
>and Perl modules are in ascii format. Does this mean that calling
>modules from Python will be faster, because the modules are already in
>Python bytecode?
Well, no, but loading modules is frequently faster. It's also a bit
easier to create a Python module than a Perl module.
Note: the default compiled form of Python modules is .pyc; .pyo is only
created when you run Python in optimized mode.
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"In many ways, it's a dull language, borrowing solid old concepts from
many other languages & styles: boring syntax, unsurprising semantics,
few automatic coercions, etc etc. But that's one of the things I like
about it." --Tim Peters on Python, 16 Sep 93
More information about the Python-list
mailing list