Repository with sources and generator of https://larlet.fr/david/ https://larlet.fr/david/
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

index.md 1005B

12345678910
  1. title: Newbie issues
  2. lang: en
  3. > However, Python only initializes default parameters when the function is first evaluated, which means that the same list is used for every call to the function. As a result, if you mutate those values, the mutations span across invocations.
  4. >
  5. > In this case, user ids and names were appended to the default lists each time it was called. Over hours, those lists began to retrieve tens of thousands of users on each request, overwhelming even the memcache clusters.
  6. >
  7. > <cite>*[Digg's v4 launch: an optimism born of necessity.](https://lethain.com//digg-v4/)* ([cache](/david/cache/2b13b89a56718aa4fb6aea90cbdeab0f/))</cite>
  8. A good reminder that a full team of engineers can fail miserably at investigating a 101 Python course problem. I did that too, I probably will again. I should collect and publish my own *post mortem* mistakes, as [James Bennett did](https://www.b-list.org/weblog/2018/mar/20/mistakes/) ([cache](/david/cache/7306b2b46708f143bb25dc81d79879fe/)).