summaryrefslogtreecommitdiffstats
path: root/Include/object.h
Commit message (Collapse)AuthorAgeFilesLines
* don't use NDEBUGGuido van Rossum1996-05-241-6/+2
|
* Added some visual enhancements of debugging ifdefs.Guido van Rossum1996-05-221-5/+11
| | | | Added PyNumber_Coerce decl.
* add forgotten PyObject_SetAttrStringGuido van Rossum1995-07-261-0/+1
|
* keyword arguments and faster function callsGuido van Rossum1995-07-181-1/+1
|
* DL_IMPORT needs an argument.Sjoerd Mullender1995-04-251-2/+2
|
* DL_IMPORT macro was called in a funny way (and MW barfed on it)Jack Jansen1995-04-231-2/+2
|
* Also count UNREF's as freeing an object (only relevant whenSjoerd Mullender1995-04-061-1/+2
| | | | COUNT_ALLOCS is defined).
* fix dusty debugging macrosGuido van Rossum1995-03-291-5/+5
|
* make the type a parameter of the DL_IMPORT macro, for Borland CGuido van Rossum1995-02-271-2/+2
|
* change in staticforward -- added statichereGuido van Rossum1995-02-211-1/+7
|
* added PyObject_IsTrue & PyCallable_Check to object interfaceGuido van Rossum1995-02-171-0/+2
|
* new names for lots of new functionsGuido van Rossum1995-01-171-2/+2
|
* The great renaming, phase two: all header files have been updated toGuido van Rossum1995-01-121-91/+94
| | | | | | | use the new names exclusively, and the linker will see the new names. Files that import "Python.h" also only see the new names. Files that import "allobjects.h" will continue to be able to use the old names, due to the inclusion (in allobjects.h) of "rename2.h".
* new tp_str and tp_doc members in type objectGuido van Rossum1995-01-071-0/+10
|
* Added 1995 copyright.Guido van Rossum1995-01-041-7/+7
| | | | | | object.h: made sizes and refcnts signed ints. stringobject.h: make getstrsize() signed int. methodobject.h: add METH_VARARGS and METH_FREENAME flag bit definitions.
* Changes for dynamic linking under NTGuido van Rossum1994-08-181-2/+2
|
* * Objects/{int,long,float}object.c, Include/object.h,Guido van Rossum1994-08-091-1/+2
| | | | | Python/bltinmodule.c: mods by Andrew Kuchling to implement pow(x,y,z) == pow(x,y)%z, but without incurring overflow
* Merge alpha100 branch back to main trunkGuido van Rossum1994-08-011-41/+83
|
* * mpzmodule.c: removed redundant mpz_print function.Guido van Rossum1993-11-051-0/+1
| | | | | | | | | | | | | | * object.[ch], bltinmodule.c, fileobject.c: changed str() to call strobject() which calls an object's __str__ method if it has one. strobject() is also called by writeobject() when PRINT_RAW is passed. * ceval.c: rationalize code for PRINT_ITEM (no change in function!) * funcobject.c, codeobject.c: added compare and hash functionality. Functions with identical code objects and the same global dictionary are equal. Code objects are equal when their code, constants list and names list are identical (i.e. the filename and code name don't count). (hash doesn't work yet since the constants are in a list and lists can't be hashed -- suppose this should really be done with a tuple now we have resizetuple!)
* * Extended X interface: pixmap objects, colormap objects visual objects,Sjoerd Mullender1993-10-111-0/+23
| | | | | | | | image objects, and lots of new methods. * Added counting of allocations and deallocations of builtin types if COUNT_ALLOCS is defined. Had to move calls to NEWREF down in some files. * Bug fix in sorting lists.
* * Added support for X11 modules.Guido van Rossum1993-07-281-0/+11
| | | | | | | * Makefile: change location of FORMS library. * posixmodule.c: turn #if 0 into #ifdef MSDOS (stuff in unistd.h or not) * Almost all .h files: added CPP magic to avoid duplicate inclusions and to support inclusion from C++.
* * accessobject.c (ownercheck): allow a base class access to protectedGuido van Rossum1993-07-111-0/+1
| | | | | | objects of its derived classes; allow anything that has an attribute named "__privileged__" access to anything. * object.[ch]: added hasattr() -- test whether getattr() will succeed.
* * Changed all copyright messages to include 1993.Guido van Rossum1993-03-291-3/+9
| | | | | | | | | | | | | | | | | * Stubs for faster implementation of local variables (not yet finished) * Added function name to code object. Print it for code and function objects. THIS MAKES THE .PYC FILE FORMAT INCOMPATIBLE (the version number has changed accordingly) * Print address of self for built-in methods * New internal functions getattro and setattro (getattr/setattr with string object arg) * Replaced "dictobject" with more powerful "mappingobject" * New per-type functio tp_hash to implement arbitrary object hashing, and hashobject() to interface to it * Added built-in functions hash(v) and hasattr(v, 'name') * classobject: made some functions static that accidentally weren't; added __hash__ special instance method to implement hash() * Added proper comparison for built-in methods and functions
* Made builtins int(), long(), float(), oct() and hex() more generic.Guido van Rossum1992-09-121-0/+5
|
* AOnly define NDEDBUG if DEBUG is not definedGuido van Rossum1992-09-031-0/+3
|
* * classobject.[ch], {float,long,int}object.c, bltinmodule.c:Guido van Rossum1992-08-141-0/+1
| | | | | | coercion is now completely generic. * ceval.c: for instances, don't coerce for + and *; * reverses arguments if left one is non-instance numeric and right one sequence.
* Copyright for 1992 addedGuido van Rossum1992-04-051-1/+1
|
* Added shifting and masking ops to as_number structGuido van Rossum1991-10-241-0/+6
|
* printobject now returns an error codeGuido van Rossum1991-06-071-2/+2
|
* Added nonzero to number methodsGuido van Rossum1991-05-141-0/+1
|
* Added divmod and abs methods for numbersGuido van Rossum1991-05-051-0/+2
|
* Added copyright notice.Guido van Rossum1991-02-191-0/+24
|
* "Compiling" versionGuido van Rossum1990-12-201-34/+23
|
* Add UNREF macro if not tracing refs (see UNREF function in object.c).Guido van Rossum1990-11-181-0/+1
|
* Be more careful with negative reference counts.Guido van Rossum1990-11-021-3/+3
|
* Initial revisionGuido van Rossum1990-10-141-0/+310