Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
loosing_mro_ref.MyKey Class Reference
Inheritance diagram for loosing_mro_ref.MyKey:
Inheritance graph
Collaboration diagram for loosing_mro_ref.MyKey:
Collaboration graph

List of all members.

Public Member Functions

def __hash__
def __eq__

Public Attributes

_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Detailed Description

Definition at line 9 of file

Member Function Documentation

def loosing_mro_ref.MyKey.__eq__ (   self,

Definition at line 13 of file

00014     def __eq__(self, other):
00015         # the following line decrefs the previous X.__mro__
00016         X.__bases__ = (Base2,)
00017         # trash all tuples of length 3, to make sure that the items of
00018         # the previous X.__mro__ are really garbage
00019         z = []
00020         for i in range(1000):
00021             z.append((i, None, None))
00022         return 0

Definition at line 10 of file

00011     def __hash__(self):
00012         return hash('mykey')

Member Data Documentation

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.

The documentation for this class was generated from the following file: