[lxml-dev] pyquery

Stefan Behnel stefan_ml at behnel.de
Sun Dec 14 22:15:20 CET 2008


Hi,

Olivier Lauzanne wrote:
> I have implemented some of the classes that are present in jQuery but not in
> the css standard. Extending the classes seems like the right way to do it.
> You can check it out here.
> 
> http://www.bitbucket.org/olauzanne/pyquery/src/tip/pyquery/cssselectpatch.py
> 
> cssselect should remain standard compliant but I could make a patch so that
> using the jQuery pseudo classes is an option of the CSSSelector class. I
> don't have a strong opinion about doing it or not doing it. What do you
> think ?

Would it make sense to make this a separate module like "jqselect" (which
would inherit most of the API of cssselect) instead of patching into
cssselect itself?

Stefan



More information about the lxml-dev mailing list