Perl, Python and noo perl

Matthew Hawkins matthew at
Fri Apr 5 15:39:48 EST 2002

On Fri, 05 Apr 2002, Damien Elmes wrote:
> Any examples? With python you can do crazy tricks such as changing the base
> classes of a particular instance on the fly. It's also trivial to customise the
> methods used to set and extract attributes, which is very powerful.

One thing I like there (new in 2.2) is being able to directly inherit
from the builtin data types, and as you said, mess with the way they
give & take data.  In particular it makes the instances where you can't
simply make everything XML and use XSLT to switch formats very straightforward
and enjoyable.

On the downside, the XML routines in Python need a *lot* of work.  The
best I've found is 4suite, and even it chews through ram like there's no
tomorrow and takes hours to run a simple template that xalan does in a
couple of minutes with orders of magnitude less ram used.

(oh, and while I have the soap box, my perl script works fine now that I
ditched the cause of the problem (Tie::DBI) and worked around a few other
irritating perl things.  Score:  Matt - 1, Larry - 1)


More information about the linux mailing list