> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# python-copy-growing-list

> A Python loop rebuilds a growing list with items = items + [value].

## What it flags

A Python loop rebuilds a growing list with items = items + \[value].

## Example

A list initialized to `[]` is repeatedly assigned `items = items + [value]` in a simple loop.

## Example from the editor

```python theme={null}
items = []
for value in values:
    items.append(value)
```

For a list with no observers depending on intermediate copies.

## Configuration

Set the rule to `"off"` in `loadwise.config.json` to drop its findings:

```json theme={null}
{
  "rules": { "python-copy-growing-list": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.