# PythonCodeTextSplitter

> **Class** in `langchain_text_splitters`

📖 [View in docs](https://reference.langchain.com/python/langchain-text-splitters/python/PythonCodeTextSplitter)

Attempts to split the text along Python syntax.

## Signature

```python
PythonCodeTextSplitter(
    self,
    **kwargs: Any = {},
)
```

## Extends

- `RecursiveCharacterTextSplitter`

## Constructors

```python
__init__(
    self,
    **kwargs: Any = {},
) -> None
```


---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/02991cb4cf2063d51a07268edafb05fe53de1826/libs/text-splitters/langchain_text_splitters/python.py#L11)