Returns a function that selects special children of the given path.
(self, part, parts)
| 388 | return selector(part, parts) |
| 389 | |
| 390 | def special_selector(self, part, parts): |
| 391 | """Returns a function that selects special children of the given path. |
| 392 | """ |
| 393 | if parts: |
| 394 | part += self.sep |
| 395 | select_next = self.selector(parts) |
| 396 | |
| 397 | def select_special(path, exists=False): |
| 398 | path = self.concat_path(path, part) |
| 399 | return select_next(path, exists) |
| 400 | return select_special |
| 401 | |
| 402 | def literal_selector(self, part, parts): |
| 403 | """Returns a function that selects a literal descendant of a path. |