# 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
```

| Name | Type |
|------|------|
| `kwargs` | `Any` |


---

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