Returns a function that selects special children of the given path.
(self, part, parts)
| 400 | return selector(part, parts) |
| 401 | |
| 402 | def special_selector(self, part, parts): |
| 403 | """Returns a function that selects special children of the given path. |
| 404 | """ |
| 405 | if parts: |
| 406 | part += self.sep |
| 407 | select_next = self.selector(parts) |
| 408 | |
| 409 | def select_special(path, exists=False): |
| 410 | path = self.concat_path(path, part) |
| 411 | return select_next(path, exists) |
| 412 | return select_special |
| 413 | |
| 414 | def literal_selector(self, part, parts): |
| 415 | """Returns a function that selects a literal descendant of a path. |