Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | - The repr() of a weakref object now shows the __name__ attribute of | Guido van Rossum | 2003-04-16 | 1 | -6/+15 |
| | | | | | | | the referenced object, if it has one. Also use %p to format pointers consistently, and use <weakproxy ...> in proxy_repr(), to match the type name. | ||||
* | Add support for the iterator protocol to weakref proxy objects. | Fred Drake | 2002-08-09 | 1 | -38/+64 |
| | | | | Part of fixing SF bug #591704. | ||||
* | Remove weakref free list. This has the side effect of fixing a memory | Neil Schemenauer | 2002-03-27 | 1 | -26/+11 |
| | | | | | management bug. Also, move some duplicated code into the new_weakref fucntion. | ||||
* | proxy_compare(): Make sure that we unwrap both objects being compared if | Fred Drake | 2001-12-19 | 1 | -6/+13 |
| | | | | both are proxy objects. | ||||
* | Make sure that when we invoke callback functions associated with weak | Fred Drake | 2001-12-10 | 1 | -20/+24 |
| | | | | | | references, we do not allow any outstanding exceptions "leak" into the callback's execution state. This closes SF bug #478534. | ||||
* | weakref_repr(), proxy_repr(): Conversion of sprintf() to | Barry Warsaw | 2001-11-28 | 1 | -8/+11 |
| | | | | PyOS_snprintf() for buffer overrun avoidance. | ||||
* | Fixes for possible buffer overflows in sprintf() usages. | Marc-André Lemburg | 2001-11-28 | 1 | -1/+1 |
| | |||||
* | Referencable is not a word, so don't use it in an error message <wink>. | Jeremy Hylton | 2001-10-22 | 1 | -2/+2 |
| | |||||
* | Remove an unnecessary check for NULL. | Fred Drake | 2001-10-18 | 1 | -4/+3 |
| | |||||
* | When weakref proxies are involved in binary & ternary slot operations, | Fred Drake | 2001-10-18 | 1 | -15/+28 |
| | | | | | | | | | | | the left-hand operand may not be the proxy in all cases. If it isn't, we end up doing two things: a) unwrapping something that isn't a PyWeakReference (later resulting in a core dump) and b) passing a proxy as the right-hand operand anyway, even though that can't be handled by the actual handler (maybe eventually causing a core dump). This is fixed by always unwrapping all the proxies involved before passing anything to the actual handler. | ||||
* | The weak reference implementation, separated from the weakref module. | Fred Drake | 2001-10-05 | 1 | -0/+715 |