---
title: "Why Do Python Lists Multiply Oddly? Exploring the CPython Source Code"
url: https://daily.dev/posts/why-do-python-lists-multiply-oddly-exploring-the-cpython-source-code-fwitajphq
source_url: https://codeconfessions.substack.com/p/why-do-python-lists-multiply-oddly
type: article
source: "Confessions of a Code Addict"
published: 2024-03-30T07:51:49.685Z
updated: 2024-05-09T08:58:27.770Z
tags: ["python", "cpython"]
reading_time: 11
upvotes: 2
comments: 1
language: en
---

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

# Why Do Python Lists Multiply Oddly? Exploring the CPython Source Code

**[Confessions of a Code Addict](https://daily.dev/sources/codeconfessions)** · 11 min read · 2 upvotes · 1 comments

## Summary

This post explores why Python lists multiply oddly when using the * operator. It dives into the internal implementation of lists in CPython, explaining how references are stored and how the * operator works. It provides a high level answer using the REPL and then delves into the details of the list object structure in CPython. It also discusses the internal object storage mechanism and how the CPython runtime executes the * operator for lists.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://codeconfessions.substack.com/p/why-do-python-lists-multiply-oddly>

## Community discussion

Top comments from developers on daily.dev.

**@debajyatidey** · 1 upvotes

> Amazing article!

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#python](https://daily.dev/tags/python), [#cpython](https://daily.dev/tags/cpython)

[View this post on daily.dev](https://daily.dev/posts/why-do-python-lists-multiply-oddly-exploring-the-cpython-source-code-fwitajphq)
