Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
spenrose
on Feb 20, 2011
|
parent
|
context
|
favorite
| on:
Python's Mutable Default Problem
Yes, it's a wart. You learn the patterns he mentions pretty quickly.
code_duck
on Feb 20, 2011
[–]
I knew the pattern well from other languages, but would have assumed that it wasn't necessary in Python. So, this is good to note.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: