---
title: "Discussion on \"02_The “Mutable Default Argument” Trap (and Why It Happens)\" | Hashnode"
description: "Discussion on \"02_The “Mutable Default Argument” Trap (and Why It Happens)\". A deep dive into object identity, mutability, and Python’s most common gotcha"
url: "https://hashnode.com/posts/02-python-mutable-vs-immutable-default-argument-trap/695fa88fd2f7956b618b2ec9"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [02\_The “Mutable Default Argument” Trap (and Why It Happens)](https://somusblog.hashnode.dev/02-python-mutable-vs-immutable-default-argument-trap?utm_source=hashnode&utm_medium=feed)

A deep dive into object identity, mutability, and Python’s most common gotcha

Jan 8 · 4 min read · somusblog.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#software-engineering](https://hashnode.com/tag/software-engineering)
-   [#data-structures](https://hashnode.com/tag/data-structures)
-   [#python-internals](https://hashnode.com/tag/python-internals)
-   [#learning](https://hashnode.com/tag/learning)

## Written by

[Somu](https://hashnode.com/@SomuSingh)

@SomuSingh · India

  
[View profile](https://hashnode.com/@SomuSingh)

Developer • Learning in public

Full-stack developer documenting what I’m learning as I go. This space is all about tech, understanding how things work, and writing things down as they start to make sense.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
