summaryrefslogtreecommitdiff
path: root/Objects/abstract.c
AgeCommit message (Expand)AuthorLines
2004-03-22Backported fix of revision 2.217.Armin Rigo-2/+2
2004-03-20Raise RuntimeError if the second argument to isinstance() or issubclass()Brett Cannon-9/+48
2003-03-01Removed duplicate test from inner loop.Raymond Hettinger-6/+1
2003-02-18Make PyNumber_Check() a bit more careful, since all sorts of thingsGuido van Rossum-1/+3
2003-02-12Add missing cast in previous fix.Guido van Rossum-1/+2
2003-02-12SF #532767: isinstance(x, X) should work when x is a proxy for an XGuido van Rossum-6/+19
2003-02-10Fold long lines.Guido van Rossum-4/+7
2002-12-31Merge to trunk from release branch:Guido van Rossum-0/+1
2002-12-30Always try nb_* slots before trying sq_concat, sq_inplace_concat, sq_repeat,Neil Schemenauer-50/+128
2002-12-12Change issubclass() so that recursive tuples (directly or indirectlyWalter Dörwald-4/+4
2002-12-12Enhance issubclass() and PyObject_IsSubclass() so that a tuple isWalter Dörwald-28/+42
2002-12-07Fix typo in abstract.c which caused __rpow__ to not be invoked.Raymond Hettinger-1/+1
2002-11-24Simplify use of NB_BINOP and NB_TERNOP by making them do the pointerNeil Schemenauer-15/+15
2002-11-24Remove special handling of str and unicode in PyNumber_InPlaceRemainder. TheyNeil Schemenauer-9/+2
2002-11-18str and unicode objects now have a __mod__ slot so don't special case them inNeil Schemenauer-6/+0
2002-11-05Use PyList_CheckExact and PyTuple_CheckExact for checking whetherMichael W. Hudson-1/+1
2002-08-16Squash a few calls to the hideously expensive PyObject_CallObject(o,a)Guido van Rossum-2/+2
2002-07-28Patch #554716: Use __va_copy where available.Martin v. Löwis-0/+4
2002-06-06Close SF bug 563740. complex() now finds __complex__() in new style classes.Raymond Hettinger-2/+2
2002-06-05Better isinstance error message.Thomas Heller-1/+2
2002-04-23abstract_get_bases(): Clarify exactly what the return values andBarry Warsaw-9/+46
2002-04-16SF bug 544647.Guido van Rossum-2/+6
2002-04-16Whitespace normalization and fold some long lines.Guido van Rossum-20/+19
2002-03-08Fix leak of NotImplemented in previous checkin to PyNumber_Add().Jeremy Hylton-4/+6
2002-03-08Fix for SF bug 516727: MyInt(2) + "3" -> NotImplementedJeremy Hylton-4/+3
2002-03-02Revert the last odd change to PyNumber_Long: the problem it was tryingTim Peters-10/+2
2002-03-01SF patch 514641 (Naofumi Honda) - Negative ob_size of LongObjectsGuido van Rossum-2/+10
2002-01-05Implement PyObject_DelItemString. Fixes #498915.Martin v. Löwis-0/+18
2001-11-24PyObject_GetItem(), PyObject_SetItem(), PyObject_DelItem(): Fix a fewGuido van Rossum-5/+10
2001-11-09Add PyObject_CheckReadBuffer(), which returns true if its argumentJeremy Hylton-29/+35
2001-11-01PyFunction_Call() did not check the result of PyObject_Repr() for NULL, andFred Drake-2/+2
2001-10-28PyObject_CallFunctionObArgs() ---> PyObject_CallFunctionObjArgs()Fred Drake-5/+5
2001-10-27PyObject_CallFunction(), PyObject_CallMethod(): Make sure we do not touchFred Drake-18/+11
2001-10-26Added two new functions to conveniently call functions/methods from C.Fred Drake-0/+76
2001-10-26Generalize dictionary() to accept a sequence of 2-sequences. At theTim Peters-1/+1
2001-10-22Make the error message for unsupported operand types cleaner, inGuido van Rossum-7/+27
2001-10-18Fix error checking done by abstract_issubclass and abstract_isinstance.Neil Schemenauer-44/+61
2001-10-07Implement isinstance(x, (A, B, ...)). Note that we only allow tuples,Guido van Rossum-1/+16
2001-10-01binary_op1(), ternary_op(): rearrange the code so that slotw is testedGuido van Rossum-14/+14
2001-09-30SF bug [#466173] unpack TypeError unclearTim Peters-1/+1
2001-09-29The changes to ternary_op could cause a core dump. Fix this, andGuido van Rossum-55/+44
2001-09-28It's a fact: for binary operators, *under certain circumstances*,Guido van Rossum-28/+48
2001-09-14PyObject_CallObject(): this may as well call PyEval_CallObject()Guido van Rossum-16/+1
2001-09-10Fix tortured comment -- I must be on drugs today.Tim Peters-2/+2
2001-09-10More on SF bug [#460020] bug or feature: unicode() and subclasses.Tim Peters-1/+5
2001-09-10More for SF bug [#460020] bug or feature: unicode() and subclassesTim Peters-1/+5
2001-09-10SF bug #460020: bug or feature: unicode() and subclasses.Tim Peters-2/+9
2001-09-08Generalize operator.indexOf (PySequence_Index) to work with anyTim Peters-72/+62
2001-09-07PySequence_Check(), PyMapping_Check(): only return true if theGuido van Rossum-2/+4
2001-08-17Patch #445762: Support --disable-unicodeMartin v. Löwis-0/+8