Don't worry, when it comes to these issues I'm quite used to it. Delicious! Sprinkle some bugs on top and it's even better ;-)
What the meme really, really, fails to point out is "Default parameter values are always evaluated when, and only when, the “def” statement they belong to is executed"(1). So my prior suggestion was wrong too. And the article points out that the meme should be rewritten to resemble: Code: def myfunc(value=None): if value is None: value = [] # modify value here If you want to elaborate on how you'd rather accomplish this in your language of choice, I'm all ears. There's certainly more than one way to do it. Q. Why is this so clumsy? A. The trick is to use Perl's strengths rather than its weaknesses. --- Larry Wall in <8225@jpl-devvax.JPL.NASA.GOV> s/Perl/your language/ig
I started my programming with perl. I opened some script years later and was confused at the black magic I saw.
Dude who immediately went for personal attacks is suddenly touchy when someone else does the same for him. I'm sure you don't remember the start of the thread where I talked strictly about python and you jumped in with calls of "fanboy" and other colorful language.
I didn't even mean for my comment to be an attack TBH... I just thought coursework would help, keep an open mind and never stop learning. Is that so wrong? Lol, took me 3 tries to figure out why the meme was wrong. It's a big world and you must persevere; you can't know everything. It takes work.
Picking up on this now and before I made any changes it is now working without any errors. Maybe this is an ever changing condition?
Asked around: Here is what i was told: Option 1: option 2: Option 3 and 4: Any thoughts on what would be the best route? thanks!