summaryrefslogtreecommitdiff
path: root/Objects/object.c
AgeCommit message (Expand)AuthorLines
2001-09-04At Guido's suggestion, here's a new C API function, PyObject_Dir(), likeTim Peters-0/+145
2001-08-31Add warning mode for classic division, almost exactly as specified inGuido van Rossum-0/+2
2001-08-30PyObject_Repr(): add missing ">" back at end of format string: "<%sGuido van Rossum-1/+1
2001-08-29Remove GC related code. It lives in gcmodule now.Neil Schemenauer-26/+1
2001-08-24repr's converted to using PyString_FromFormat() instead of sprintf'ingBarry Warsaw-6/+4
2001-08-17Patch #445762: Support --disable-unicodeMartin v. Löwis-1/+15
2001-08-16Add a function _Py_ReadyTypes() which initializes various and sundryGuido van Rossum-4/+21
2001-08-16Update to MvL's patch #424475 to avoid returning 2 when tp_compareGuido van Rossum-2/+5
2001-08-07- Rename PyType_InitDict() to PyType_Ready().Guido van Rossum-2/+2
2001-08-02Merge of descr-branch back into trunk.Tim Peters-83/+210
2001-07-30Add _PyUnicode_AsDefaultEncodedString to unicodeobject.h.Jeremy Hylton-5/+0
2001-07-14_Py_GetObjects(): GCC suggests to add () around && within || for someGuido van Rossum-1/+1
2001-06-09Patch #424475: Speed-up tp_compare usage, by special-casing the commonMartin v. Löwis-20/+49
2001-05-11Cosmetic: code under "else" clause was missing indent.Tim Peters-1/+1
2001-05-07SF bug #422108 - Error in rich comparisons.Tim Peters-1/+7
2001-05-05Make 'x in y' and 'x not in y' (PySequence_Contains) play nice w/ iterators.Tim Peters-0/+1
2001-05-03The weakref support in PyObject_InitVar() as well; this should have come outFred Drake-4/+0
2001-05-03Remove unnecessary intialization for the case of weakly-referencable objects;Fred Drake-4/+0
2001-05-01Printing objects to a real file still wasn't done right: if theGuido van Rossum-32/+14
2001-04-27(Adding this to the trunk as well.)Guido van Rossum-1/+4
2001-03-25Fixed ref count bug. Patch #411191. Found by Walter Dörwald.Marc-André Lemburg-1/+3
2001-02-27Add Vladimir Marangozov's object allocator. It is disabled by default. ThisNeil Schemenauer-0/+4
2001-02-26The return value from PyObject_ClearWeakRefs() is no longer meaningful,Fred Drake-3/+3
2001-02-22_PyObject_Dump(): If argument is NULL, print "NULL" instead ofBarry Warsaw-3/+7
2001-02-22In try_3way_to_rich_compare(), swap the call to default_3way_compare()Guido van Rossum-2/+2
2001-02-01PEP 205, Weak References -- initial checkin.Fred Drake-0/+23
2001-01-24Check the Py_TPFLAGS_HAVE_RICHCOMPARE flag before using theGuido van Rossum-7/+9
2001-01-24PyObject_Dump() -> _PyObject_Dump()Barry Warsaw-3/+3
2001-01-23PyObject_Dump(): Use %p format to print the address of the pointer.Barry Warsaw-2/+4
2001-01-23A few miscellaneous helpers.Barry Warsaw-2/+26
2001-01-22New special case in comparisons: None is smaller than any other objectGuido van Rossum-0/+6
2001-01-22Once again, numeric-smelling objects compare smaller than non-numericGuido van Rossum-2/+17
2001-01-21Remove a smelly export.Neil Schemenauer-1/+1
2001-01-20Tim chastens:Barry Warsaw-1/+5
2001-01-20default_3way_compare(): When comparing the pointers, they must be castBarry Warsaw-2/+2
2001-01-18Rich comparisons fallout: PyObject_Hash() should check for bothGuido van Rossum-1/+1
2001-01-18Changes to recursive-object comparisons, having to do with a test caseGuido van Rossum-107/+137
2001-01-17Deal properly (?) with comparing recursive datastructures.Guido van Rossum-62/+69
2001-01-17This patch adds a new builtin unistr() which behaves like str()Marc-André Lemburg-0/+47
2001-01-17Rich comparisons. Refactored internal routine do_cmp() and added APIsGuido van Rossum-74/+293
2001-01-04Changes for PEP 208. PyObject_Compare has been rewritten. Instances noNeil Schemenauer-118/+139
2000-10-24Ka-Ping Yee <ping@lfw.org>:Fred Drake-2/+2
2000-09-26Rationalize use of limits.h, moving the inclusion to Python.h.Fred Drake-3/+0
2000-09-21As suggested by Toby Dickenson, setting ob_type to NULL inGuido van Rossum-4/+0
2000-09-18PyObject_SetAttr() and PyObject_GetAttr() now also accept UnicodeMarc-André Lemburg-11/+37
2000-09-01REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum-9/+0
2000-08-30PyOS_CheckStack() returns 1 when failing, not -1.Guido van Rossum-1/+1
2000-08-22Added PyOS_CheckStack call to PyObject_CompareJack Jansen-0/+13
2000-08-18make_pair(): When comparing the pointers, they must be cast to integerBarry Warsaw-2/+6
2000-08-16Updated commentAndrew M. Kuchling-1/+1