Back to index

python3.2  3.2.2
Classes | Variables
borrowed_ref_2 Namespace Reference

Classes

class  A
class  B
class  D
class  C

Variables

tuple c = C()
tuple a = A()
list lst = [None]
int i = 0

Detailed Description

_PyType_Lookup() returns a borrowed reference.
This attacks PyObject_GenericSetAttr().

NB. on my machine this crashes in 2.5 debug but not release.

Variable Documentation

tuple borrowed_ref_2.a = A()

Definition at line 28 of file borrowed_ref_2.py.

tuple borrowed_ref_2.c = C()

Definition at line 27 of file borrowed_ref_2.py.

Definition at line 33 of file borrowed_ref_2.py.

list borrowed_ref_2.lst = [None]

Definition at line 32 of file borrowed_ref_2.py.