gawel / pyquery

A jquery-like library for python
http://pyquery.rtfd.org/
Other
2.3k stars 182 forks source link

`.attr()` is not documented #86

Closed denilsonsa closed 5 years ago

denilsonsa commented 10 years ago

In the official documentation: http://pyquery.readthedocs.org/en/latest/api.html

There is removeAttr(), but attr() is not listed there.

In other words, the documentation does not explain how to get or set attributes (but it explains how to remove them).

Would be nice to double-check if there are any other undocumented methods.

twz915 commented 9 years ago
doc.attr(attr,attr_value)

Works like JQuery

gawel commented 9 years ago

It's documented here: http://pyquery.readthedocs.org/en/latest/attributes.html

The problem is that there's a lot of magic in that «method». I'm not sure that sphinx know how to interpret the docstring.