Message337292
| Author | Windson Yang |
|---|---|
| Recipients | Windson Yang, docs@python, tekknolagi |
| Date | 2019-03-06.11:32:12 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1551871932.98.0.33354477409.issue36203@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
Yes, Maxwell. I guess the docs are misleading, the code locate in https://github.com/python/cpython/blob/master/Objects/weakrefobject.c#L748 if (callback == Py_None) callback = NULL; if (callback == NULL) /* return existing weak reference if it exists */ result = ref; if (result != NULL) Py_INCREF(result); else { ... } However, I'm not sure we should fix the docs or the code here. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2019-03-06 11:32:12 | Windson Yang | set | recipients: + Windson Yang, docs@python, tekknolagi |
| 2019-03-06 11:32:12 | Windson Yang | set | messageid: <1551871932.98.0.33354477409.issue36203@roundup.psfhosted.org> |
| 2019-03-06 11:32:12 | Windson Yang | link | issue36203 messages |
| 2019-03-06 11:32:12 | Windson Yang | create | |