Message388550
| Author | gousaiyang |
|---|---|
| Recipients | christian.heimes, gousaiyang, miss-islington, pablogsal, steve.dower, vstinner, zkonge |
| Date | 2021-03-12.20:48:21 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1615582102.02.0.844290944949.issue43439@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
In addition to the consistency with existing audit hook signatures, there may also be another benefit of wrapping it with a tuple of length 1. If gc.get_referrers or gc.get_referents happens to gain a new keyword-only argument in the future, we may need to add the new argument to the hook args. Extending the `(objs,)` tuple to `(objs, new_kwarg)` is a bit more elegant than appending the `new_kwarg` to the end of the `objs` tuple itself (considering a hook function which tries to be compatible with both the old and the new signature). |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2021-03-12 20:48:22 | gousaiyang | set | recipients: + gousaiyang, vstinner, christian.heimes, steve.dower, pablogsal, miss-islington, zkonge |
| 2021-03-12 20:48:22 | gousaiyang | set | messageid: <1615582102.02.0.844290944949.issue43439@roundup.psfhosted.org> |
| 2021-03-12 20:48:22 | gousaiyang | link | issue43439 messages |
| 2021-03-12 20:48:21 | gousaiyang | create | |