summaryrefslogtreecommitdiff
path: root/Objects/classobject.c
AgeCommit message (Expand)AuthorLines
2001-10-26Be smarter about clearing the weakref lists for instances, instance methods,Fred Drake-2/+4
2001-10-22Fix for SF bug #472940: can't getattr() attribute shown by dir()Guido van Rossum-28/+1
2001-10-17Protect references to tp_descr_get and tp_dict with the appropriate test:Guido van Rossum-9/+14
2001-09-30SF bug [#466173] unpack TypeError unclearTim Peters-1/+1
2001-09-20Add optional docstrings to getset descriptors. Fortunately, there'sGuido van Rossum-4/+4
2001-09-20Add optional docstrings to member descriptors. For backwardsGuido van Rossum-4/+7
2001-09-18Properly repr classes without module names.Martin v. Löwis-1/+1
2001-09-18Redo the PyMethod attributes using a dir()-friendly approach, creatingGuido van Rossum-37/+69
2001-09-08Generalize operator.indexOf (PySequence_Index) to work with anyTim Peters-1/+2
2001-09-07PyClass_New(): put the extended Don Beaudry hook back in. When one ofGuido van Rossum-4/+14
2001-09-05Add PyMethod_Function(), PyMethod_Self(), PyMethod_Class() back.Guido van Rossum-0/+30
2001-08-29Use new GC API.Neil Schemenauer-22/+19
2001-08-24Improve the error message issued when an unbound method is called withGuido van Rossum-3/+49
2001-08-24repr's converted to using PyString_FromFormat() instead of sprintf'ingBarry Warsaw-19/+14
2001-08-17Fix core dump in repr() of instancemethod whose class==NULL.Guido van Rossum-7/+11
2001-08-17instance_getattr2(): rewritten to remove unnecessary stuff andGuido van Rossum-24/+13
2001-08-17Instance methods: allow a NULL value for im_class.Guido van Rossum-2/+2
2001-08-16classobject.c:instancemethod_descr_get(): when a bound method isGuido van Rossum-0/+5
2001-08-15PyMethod_Type: add a tp_descr_get slot function to ensure properGuido van Rossum-1/+19
2001-08-08Implement PEP 238 in its (almost) full glory.Guido van Rossum-0/+8
2001-08-02Fix the test_weakref.py failure. Introduced by resolving "a conflict"Tim Peters-7/+0
2001-08-02Merge of descr-branch back into trunk.Tim Peters-74/+161
2001-05-22init_name_op(): add (void) to the argument list to make it a validGuido van Rossum-1/+1
2001-05-11Variant of SF patch 423181Jeremy Hylton-21/+51
2001-05-05Reimplement PySequence_Contains() and instance_contains(), so they workTim Peters-37/+30
2001-05-03Since Py_TPFLAGS_HAVE_WEAKREFS is set in Py_TPFLAGS_DEFAULT, it does notFred Drake-1/+1
2001-04-30Well darnit! The innocuous fix I made to PyObject_Print() causedGuido van Rossum-1/+20
2001-04-23Mondo changes to the iterator stuff, without changing how Python codeGuido van Rossum-2/+38
2001-04-20Iterators phase 1. This comprises:Guido van Rossum-2/+29
2001-03-23Add support for weak references to the function and method types.Fred Drake-1/+6
2001-03-22A small change to the C API for weakly-referencable types: Such typesFred Drake-0/+1
2001-02-26The return value from PyObject_ClearWeakRefs() is no longer meaningful,Fred Drake-2/+1
2001-02-26instancemethod_setattro(): Raise TypeError if an attempt is made toBarry Warsaw-15/+2
2001-02-01PEP 205, Weak References -- initial checkin.Fred Drake-0/+5
2001-01-29Rename dubiously named local variable 'cmpfunc' -- this is also aGuido van Rossum-5/+5
2001-01-29fix indentation glitchJeremy Hylton-1/+1
2001-01-28Re-factored PyInstance_New() into PyInstance_New() and PyInstance_NewRaw().Fred Drake-13/+34
2001-01-18Rich comparisons fallout: instance_hash() should check for bothGuido van Rossum-7/+14
2001-01-17Fix a leak in instance_coerce(). This was introduced by Neil'sGuido van Rossum-2/+0
2001-01-17Rich comparisons.Guido van Rossum-146/+278
2001-01-15Committing PEP 232, function attribute feature, approved by Guido.Barry Warsaw-4/+38
2001-01-04Make instances a new style number type. See PEP 208 for details. InstanceNeil Schemenauer-183/+267
2000-10-24Ka-Ping Yee <ping@lfw.org>:Fred Drake-6/+12
2000-10-04- fix a GC bug caused by malloc() failingNeil Schemenauer-1/+1
2000-09-17Fix for SF bug 110688: Instance deallocation neglected to account forTim Peters-12/+28
2000-09-15Don't remove instance objects from the GC container set until we areNeil Schemenauer-2/+1
2000-09-01REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum-9/+0
2000-09-01refactor __del__ exception handler into PyErr_WriteUnraisableJeremy Hylton-20/+1
2000-08-25Call PyErr_Clear() to clear the AttributeError raised by GetAttr.Thomas Wouters-0/+1
2000-08-24Support for the in-place operations introduced by augmented assignment. OnlyThomas Wouters-11/+45