On 6 Feb 2006, at 11:20, Wade Leftwich wrote:
Alastair Houghton wrote:
--------------8<---------------------------
Yes, I thought you'd probably say that :-). Since I'm still learning
my way around Python, it was a good exercise trying to write it
so I'm
still pleased I did it.
Your Python code looked fine, and you definitely know your way around
regular expressions. Are you a recovering Perl programmer? We have
regular support group meetings ...
:-) No, I've always hated Perl (though I can get by in it if I need
to, to the extent that I've been responsible in the past for some
fairly neat customizations for Bugzilla for my previous employer).
As for regular expressions, I spent some considerable time hacking on
(X)Emacs... I even wrote a couple of specialised major modes, with
font-lock support, and there's a bit of code that ships with XEmacs
("rtf-support.el") that I wrote, not to mention a load of the
clipboard stuff. EMACS and XEmacs rely pretty heavily on regular
expressions, especially for syntax highlighting, so I've spent many
an hour deep in the middle of a regular expression (some of the ones
in the elisp files are *huge*).
One thing I miss from EMACS is that I could write
(eval-when-compile (regexp-opt '("Foo" "Bar" "Baz")))
which is a more pleasant way to write
"Foo\\|Ba[rz]"
without any time penalty, since the byte-compiler runs the regexp-opt
function during compilation, so the compiled code just contains the
result. I'm not sure if Python has an equivalent?
I only started writing Python code pretty recently. It's a very
pleasant language. About the only thing I find perplexing so far is
trying to choose from the many different implementations there seem
to be of any given bit of software I might want to use; I think it's
even harder at the moment because there are some great looking
packages under development (e.g. Paste, Routes), but if you want to
use them you restrict your choice of other software---either that, or
you have to do the work to bind them together yourself. And then
there's the whole Zope/Plone thing...
And thanks for helping debug my effort.
:-) That's OK.
I think I've pretty much settled on using SQLAlchemy for the project
I'm working on, so hopefully I'll be making more contributions to it
over the coming months.
Kind regards,
Alastair.
--
http://www.alastairs-place.net
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users