News for hackers. Stuff that matters.
Re:Python's Mutable Default Problem by mark-r on Sunday February 20, 2011 @09:03PM (#2243920)
I keep seeing this "problem" come up, but I don't understand how it's realistic. If you have a function that modifies a parameter as a side effect, why would you have a default value for the parameter?

And since the site's comments seem to be taken over by link spam, is this mention on Hacker News just a clever way to juice the Google rank of said spam?

Re:Python's Mutable Default Problem by ylem on Sunday February 20, 2011 @09:27PM (#2243989)
I saw it bite some people where I work. It's now used for discussion with potential hires.