>>> h = ' Hi Bye ' >>> d = PyQuery(h) >>> d('p:last').prev_all() [ ] >>> d('p:last').prevAll() [ ]
(self, selector=None)
| 501 | |
| 502 | @with_camel_case_alias |
| 503 | def prev_all(self, selector=None): |
| 504 | """ |
| 505 | >>> h = '<span><p class="hello">Hi</p><p>Bye</p><img scr=""/></span>' |
| 506 | >>> d = PyQuery(h) |
| 507 | >>> d('p:last').prev_all() |
| 508 | [<p.hello>] |
| 509 | >>> d('p:last').prevAll() |
| 510 | [<p.hello>] |
| 511 | """ |
| 512 | return self._filter_only(selector, self._prev_all(), reverse=True) |
| 513 | |
| 514 | def siblings(self, selector=None): |
| 515 | """ |
nothing calls this directly
no test coverage detected