Message319310
| Author | zach.ware |
|---|---|
| Recipients | docs@python, zach.ware |
| Date | 2018-06-11.15:59:35 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1528732775.39.0.592728768989.issue33836@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
In https://docs.python.org/3/faq/programming.html#why-are-default-values-shared-between-objects there is an example showing memoization using `def expensive(arg1, arg2, _cache={}):`. We should change the signature in that example to make `_cache` a keyword-only parameter and possibly adjust the comment to note that that's been done to prevent accidental calls with three positional arguments. Note to existing contributors: if this wouldn't be within your first couple of patches, please leave this for a new contributor to find. Thanks! |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2018-06-11 15:59:35 | zach.ware | set | recipients: + zach.ware, docs@python |
| 2018-06-11 15:59:35 | zach.ware | set | messageid: <1528732775.39.0.592728768989.issue33836@psf.upfronthosting.co.za> |
| 2018-06-11 15:59:35 | zach.ware | link | issue33836 messages |
| 2018-06-11 15:59:35 | zach.ware | create | |