# libtmux.Format.join

- **Module:** libtmux
- **Package:** libtmux
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux/blob/d2a146c9a045437b92013d65943b7ac70013fa24/src/libtmux/formats.py#L296
- **Page:** https://libtmux.org/en/py/latest/reference/libtmux-format-join/

```
libtmux.Format.join(
    self, parts: t.Iterable[str | Format]
) -> Format
```

Join *parts* with this format between them, escaping each ``str``.

## Parameters

- `parts` (`t.Iterable[str | Format]`)

## Examples

```python
>>> Format("#{session_name}:").join(["a#1", Format("#{window_index}")])
Format('a#{a:35}1#{session_name}:#{window_index}')
```
