``pfx + 'foo'`` -> Prefix at ``'parent.foo'`` (default '.' separator). ``key`` may be ``str`` or ``int``; ints are stringified.
(self, key)
| 44 | # ----- path navigation ----- |
| 45 | |
| 46 | def __add__(self, key) -> Prefix: |
| 47 | """``pfx + 'foo'`` -> Prefix at ``'parent.foo'`` (default '.' |
| 48 | separator). |
| 49 | |
| 50 | ``key`` may be ``str`` or ``int``; ints are stringified. |
| 51 | """ |
| 52 | return self.append(str(key)) |
| 53 | |
| 54 | def append(self, name: str, sep: str = '.') -> Prefix: |
| 55 | """Return a new Prefix with ``name`` appended via ``sep``. |