summaryrefslogtreecommitdiffstats
path: root/Include/object.h
Commit message (Collapse)AuthorAgeFilesLines
* * 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