summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* removed unused varsGuido van Rossum1995-01-261-1/+0
|
* apply dictclear to dict of deleted modulesGuido van Rossum1995-01-261-1/+3
|
* move callable() hereGuido van Rossum1995-01-261-0/+29
|
* fix leak in func_dealloc (forgot to decref name)Guido van Rossum1995-01-201-0/+1
|
* Fix NULL dereference in case of out-of-memory conditionJack Jansen1995-01-191-4/+5
|
* fix strobject() behaviorGuido van Rossum1995-01-171-2/+4
|
* added reverselist; free recycling bin on error exitGuido van Rossum1995-01-171-0/+16
|
* long_scan is no longer usedGuido van Rossum1995-01-171-0/+2
|
* make a few things staticGuido van Rossum1995-01-171-2/+2
|
* don't declare fmod/pow for any STDC compilerGuido van Rossum1995-01-171-1/+1
|
* different init for __builtins__Guido van Rossum1995-01-171-0/+2
|
* added $& to $(LIB) target for SequentGuido van Rossum1995-01-171-1/+1
|
* fix reentrancy bug in slice assignmentGuido van Rossum1995-01-171-4/+20
|
* properly implement cmp() for class instancesGuido van Rossum1995-01-121-0/+31
|
* move coerce() from bltinmodule.c to object.c and implement builtin_coerce() ↵Guido van Rossum1995-01-101-0/+33
| | | | differently
* implement coercions involving instances properlyGuido van Rossum1995-01-101-1/+53
|
* fix memory leak and null pointer dereferenceGuido van Rossum1995-01-102-2/+6
|
* add restrictions in restricted modeGuido van Rossum1995-01-103-25/+45
|
* add builtins handling and restricted flagGuido van Rossum1995-01-101-2/+14
|
* * Objects/classobject.c: added 5th (function) parameter toGuido van Rossum1995-01-071-27/+49
| | | | | instancebinop, to support things like Rational * float; added documentation strings to classes and methods
* * Objects/methodobject.c: changed drastically, the object nowGuido van Rossum1995-01-071-27/+44
| | | | | contains a pointer to the struct methodlist (which must be static); added attributes __name__, __doc__ and __self__
* Added __doc__ attribute (alias func_doc), initialized from firstGuido van Rossum1995-01-071-1/+16
| | | | constant in code object if it is a string, else None
* initialize __doc__ to NoneGuido van Rossum1995-01-071-0/+2
|
* added getattr(), supporting __doc__ and _name__Guido van Rossum1995-01-071-2/+33
|
* attribute-less object is AttributeError, not TypeErrorGuido van Rossum1995-01-071-1/+1
|
* Added 1995 to copyright message.Guido van Rossum1995-01-0419-47/+50
| | | | | floatobject.c: fix hash(). methodobject.c: support METH_FREENAME flag bit.
* * Objects/mappingobject.c (mappingremove): don't callGuido van Rossum1995-01-022-0/+6
| | | | lookmapping() for empty dictionary
* Lots of minor changes. Note for mappingobject.c: the hash table pointerGuido van Rossum1995-01-0212-96/+170
| | | | can now be NULL.
* fix comparison of instances without _-cmp__Guido van Rossum1994-11-101-3/+3
|
* Comparison of two class instances without __cmp__ or __rcmp__ methodsSjoerd Mullender1994-10-191-2/+5
| | | | was broken.
* * Include/classobject.h, Objects/classobject.c, Python/ceval.c:Guido van Rossum1994-09-286-204/+219
| | | | | | | | | | | | | | | | | | entirely redone operator overloading. The rules for class instances are now much more relaxed than for other built-in types (whose coerce must still return two objects of the same type) * Objects/floatobject.c: add overflow check when converting float to int and implement truncation towards zero using ceil/float * Objects/longobject.c: change ValueError to OverflowError when converting to int * Objects/rangeobject.c: modernized * Objects/stringobject.c: use HAVE_LIMITS instead of __STDC__ * Objects/xxobject.c: changed to use new style (not finished?)
* rearranged code in debugging version of DELREF to avoid touching dataGuido van Rossum1994-09-071-1/+2
| | | | after it has been freed.
* Yet another version (by me) of __getattr__ etc.Guido van Rossum1994-09-051-174/+51
|
* Mods (really diffs to 2.29) by Michael Scharf for alternative __getattr__ etc.Guido van Rossum1994-09-051-105/+204
|
* Merge back to main trunkGuido van Rossum1994-08-309-128/+258
|
* fix nasty bug in resizing (formatstring)Guido van Rossum1994-08-301-18/+98
|
* mods by Andrew Kuchling to implementGuido van Rossum1994-08-291-41/+240
| | | | | pow(x,y,z) == pow(x,y)%z, but without incurring overflow Correct problems found by THINK C 6.0
* New patches by Andrew to fix various problemsGuido van Rossum1994-08-291-33/+67
| | | | Add cast for Lance
* Correct problems found by THINK C 6.0Guido van Rossum1994-08-291-44/+67
|
* * configure.in, */Makefile*.in: OPT can now be specified in theGuido van Rossum1994-08-231-1/+2
| | | | | | env at configure time and will then be put in all Makefiles as default * */Makefile*.in: remove lib*.a before adding to it
* If an attribute is deleted, __setattr__ is called with 2 instead of 3Guido van Rossum1994-08-161-1/+5
| | | | arguments (adding __delattr__ was deemed too much overhead)
* New patches by Andrew to fix various problemsGuido van Rossum1994-08-121-5/+24
|
* * Objects/classobject.c, Include/classobject.h: added __getattr__Guido van Rossum1994-08-121-17/+99
| | | | | | | | and __setattr__ support to override getattr(x, name) and setattr(x, name, value) for class instances. This uses a special hack whereby the class is supposed to be static: the __getattr__ and __setattr__ methods are looked up only once and saved in the instance structure for speed
* Merge alpha100 branch back to main trunkGuido van Rossum1994-08-016-122/+229
|
* Added getmaxint() so sys can initialize sys.maxint.Guido van Rossum1993-12-242-9/+17
| | | | Added Makefile.in.
* * rangeobject.[ch], bltinmodule.c: incorporate new version of rangeGuido van Rossum1993-12-211-23/+127
| | | | object (unchanged from source except "range" -> "xrange").
* New fileGuido van Rossum1993-12-201-0/+66
|
* * import.c (get_module): pass .py filename to parse_file, not .pyc filename!Guido van Rossum1993-11-301-3/+6
| | | | | | | | | | | * funcobject.c (func_repr): don't call getstringvalue(None) for anonymous functions. * bltinmodule.c: removed lambda (which is now a built-in function); removed implied lambda for string arg to filter/map/reduce. * Grammar, graminit.[ch], compile.[ch]: replaced lambda as built-in function by lambda as grammar entity: instead of "lambda('x: x+1')" you write "lambda x: x+1". * Xtmodule.c (checkargdict): return 0, not NULL, for error.
* Fix lay-out of previous fix.Guido van Rossum1993-11-232-4/+8
|
* * timemodule.c: Add hack for Solaris 2.Guido van Rossum1993-11-234-16/+12
| | | | | | | | | | | | | | | * posixmodule.c: don't prototype getcwd() -- it's not portable... * mappingobject.c: double-check validity of last_name_char in dict{lookup,insert,remove}. * arraymodule.c: need memmove only for non-STDC Suns. * Makefile: comment out HTML_LIBS and XT_USE by default * pythonmain.c: don't prototype getopt() -- it's not standardized * socketmodule.c: cast flags arg to {get,set}sockopt() and addrbuf arg to recvfrom() to (ANY*). * pythonrun.c (initsigs): fix prototype, make it static * intobject.c (LONG_BIT): only #define it if not already defined * classobject.[ch]: remove all references to unused instance_convert() * mappingobject.c (getmappingsize): Don't return NULL in int function.