[lxml-dev] lhtml
Ian Bicking
ianb at colorstudy.com
Thu May 24 18:42:30 CEST 2007
Ian Bicking wrote:
> I really want to take all our HTML-related routines and put them into a
> proper package
And maybe a bit of advice -- we could just do this as a set of functions
(what we currently have), or potentially explore objectify and add the
routines as methods. E.g., el.find_by_class('classname')
This feels like a cleaner API, but I'm worried that it will mean
problems when mixing non-objectify-HTML with other elements, and if
there's problems with threads or memory overhead, or any other issues.
I don't really mind functions, which is why I am unsure; OTOH, almost
every function has a first argument of "el", which makes them seem like
methods.
--
Ian Bicking | ianb at colorstudy.com | http://blog.ianbicking.org
| Write code, do good | http://topp.openplans.org/careers
More information about the lxml-dev
mailing list