Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | classobject.c moduleobject.c stdwinmodule.c xxobject.c: | Guido van Rossum | 1992-09-04 | 3 | -9/+29 |
| | | | | | raise AttributeError, not KeyError, when attribute deletion fails. sunaudiodevmodule.c: check for deletion before calling setmember. | ||||
* | Remove outdated warning in comments. | Guido van Rossum | 1992-09-03 | 1 | -3/+0 |
| | |||||
* | Remove bogus type-and-refcnt setting from newsizedstringobject(). | Guido van Rossum | 1992-09-03 | 1 | -3/+0 |
| | |||||
* | Compare instance methods by comparing the object and the function. | Guido van Rossum | 1992-09-03 | 1 | -1/+11 |
| | |||||
* | If a type has a repr function but no print function, printing it now | Guido van Rossum | 1992-09-03 | 1 | -5/+34 |
| | | | | | | | | calls the repr function. When the refcount is bad, don't print the object at all (chances of crashes). Changes to checking and printing of references: the consistency check is somewhat faster; don't print strings referenced once (most occur in function's name lists). | ||||
* | * renamed malloc.h mymalloc.h, and added MALLARG as the type of the | Guido van Rossum | 1992-08-19 | 1 | -1/+7 |
| | | | | | | | | argument to malloc() (size_t or unsigned int) * listobject.c: check for overflow of the size of the object, so things like range(0x7fffffff) will raise MemoryError instead of calling malloc() with -4 (and then crashing -- malloc's fault) | ||||
* | oct(0) should return '0', not '00' | Guido van Rossum | 1992-08-14 | 1 | -2/+4 |
| | |||||
* | * macmodule.c: include allobjects.h, not .c | Guido van Rossum | 1992-08-14 | 1 | -5/+5 |
| | | | | | | * timemodule.c: the mac has no unistd.h * classobject.c: fixed several cases of return NULL that should be return -1 !!! | ||||
* | * classobject.[ch], {float,long,int}object.c, bltinmodule.c: | Guido van Rossum | 1992-08-14 | 3 | -56/+91 |
| | | | | | | 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. | ||||
* | * xxobject.c: added tp_as_number, tp_as_sequence, tp_as_mapping to | Guido van Rossum | 1992-08-14 | 1 | -6/+9 |
| | | | | the type object. | ||||
* | Changes so that user-defined classes can implement operations invoked | Guido van Rossum | 1992-08-12 | 1 | -7/+494 |
| | | | | | by special syntax: you can now define your own numbers, sequences and mappings. | ||||
* | * Makefile: cosmetics | Guido van Rossum | 1992-08-05 | 2 | -16/+46 |
| | | | | | | | | | | | | | | | | | | | | | | | | | * socketmodule.c: get rid of makepair(); fix makesocketaddr to fix broken recvfrom() * socketmodule: get rid of getStrarg() * ceval.h: move eval_code() to new file eval.h, so compile.h is no longer needed. * ceval.c: move thread comments to ceval.h; always make save/restore thread functions available (for dynloaded modules) * cdmodule.c, listobject.c: don't include compile.h * flmodule.c: include ceval.h * import.c: include eval.h instead of ceval.h * cgen.py: add forground(); noport(); winopen(""); to initgl(). * bltinmodule.c, socketmodule.c, fileobject.c, posixmodule.c, selectmodule.c: adapt to threads (add BGN/END SAVE macros) * stdwinmodule.c: adapt to threads and use a special stdwin lock. * pythonmain.c: don't include getpythonpath(). * pythonrun.c: use BGN/END SAVE instead of direct calls; also more BGN/END SAVE calls etc. * thread.c: bigger stack size for sun; change exit() to _exit() * threadmodule.c: use BGN/END SAVE macros where possible * timemodule.c: adapt better to threads; use BGN/END SAVE; add longsleep internal function if BSD_TIME; cosmetics | ||||
* | * Makefile adapted to changes below. | Guido van Rossum | 1992-08-04 | 1 | -2/+9 |
| | | | | | | | | | | | * split pythonmain.c in two: most stuff goes to pythonrun.c, in the library. * new optional built-in threadmodule.c, build upon Sjoerd's thread.{c,h}. * new module from Sjoerd: mmmodule.c (dynamically loaded). * new module from Sjoerd: sv (svgen.py, svmodule.c.proto). * new files thread.{c,h} (from Sjoerd). * new xxmodule.c (example only). * myselect.h: bzero -> memset * select.c: bzero -> memset; removed global variable | ||||
* | listobject.c: added optional cmp function to list.sort(). | Guido van Rossum | 1992-08-03 | 1 | -7/+54 |
| | |||||
* | fileobject.c: fix fatal bug in getline() (forgot to initialize fp now) | Guido van Rossum | 1992-07-31 | 1 | -0/+1 |
| | |||||
* | Makefile: added instann rules and $(*DEST*) defines. | Guido van Rossum | 1992-07-06 | 1 | -48/+46 |
| | | | | | fileobject.c: report more moeaningful error for I/O on closed files; user getargs() everywhere. | ||||
* | Changes for new UNIX-specific built-in module 'select' and new header for | Guido van Rossum | 1992-06-23 | 1 | -0/+11 |
| | | | | | interfaces to variants of select() system call, "myselect.h". This includes adding fileno() methods to files, sockets and stdwin. | ||||
* | sysmodule.c: calling sys.settrace() or sys.setprofile() without | Guido van Rossum | 1992-06-19 | 1 | -0/+1 |
| | | | | | | | | | arguments crashed in INCREF() calls which should be XINCREF() calls. timemodule.c: fix for SEQUENT port (sys/select, struct timezone) by Jaap Vermeulen xxobject.c: include modsupport.h | ||||
* | New copyright | Guido van Rossum | 1992-04-06 | 1 | -1/+1 |
| | |||||
* | Copyright for 1992 added | Guido van Rossum | 1992-04-05 | 13 | -13/+13 |
| | |||||
* | Don't allow assignment to attributes named __*__ | Guido van Rossum | 1992-04-05 | 1 | -2/+16 |
| | |||||
* | lint fix | Guido van Rossum | 1992-03-27 | 2 | -3/+11 |
| | |||||
* | answer lint's complaints | Guido van Rossum | 1992-03-27 | 1 | -5/+13 |
| | |||||
* | Lint stuff (involves casts, yuck!) | Guido van Rossum | 1992-03-27 | 1 | -27/+33 |
| | |||||
* | Lint | Guido van Rossum | 1992-03-27 | 1 | -1/+2 |
| | | | | ./ | ||||
* | Lint | Guido van Rossum | 1992-03-27 | 1 | -1/+2 |
| | |||||
* | Fix lint bug | Guido van Rossum | 1992-03-27 | 1 | -1/+3 |
| | |||||
* | Lint... | Guido van Rossum | 1992-03-27 | 1 | -0/+1 |
| | |||||
* | Silence lint | Guido van Rossum | 1992-03-27 | 1 | -2/+2 |
| | |||||
* | Quiet lint | Guido van Rossum | 1992-03-27 | 1 | -3/+2 |
| | |||||
* | Change error handling. Call clearerr() more often. | Guido van Rossum | 1992-03-04 | 1 | -15/+11 |
| | |||||
* | Include modsupport.h for getargs(). | Guido van Rossum | 1992-01-27 | 2 | -0/+2 |
| | |||||
* | Get rid of redundant type checks. | Guido van Rossum | 1992-01-26 | 1 | -53/+26 |
| | | | | Define % operator similar to int%int. | ||||
* | Add prototypes. | Guido van Rossum | 1992-01-19 | 1 | -105/+148 |
| | | | | Change / and % to match divmod. | ||||
* | Make / and % do the same as divmod. | Guido van Rossum | 1992-01-19 | 1 | -117/+67 |
| | |||||
* | New function gettupleslice(v, i, j). | Guido van Rossum | 1992-01-14 | 1 | -0/+12 |
| | |||||
* | Changed to 2's complement bitwise ops. Got rid of ZABS etc. | Guido van Rossum | 1992-01-14 | 1 | -306/+195 |
| | |||||
* | Different shift implementation. | Guido van Rossum | 1992-01-14 | 1 | -2/+34 |
| | |||||
* | Added READONLY specifier to data members. | Guido van Rossum | 1992-01-14 | 1 | -2/+2 |
| | |||||
* | Added f_lasti and f_lineno members. | Guido van Rossum | 1992-01-14 | 1 | -0/+4 |
| | |||||
* | Fixed bug in long masking ops. | Guido van Rossum | 1991-12-31 | 1 | -28/+31 |
| | |||||
* | Change error messages for impossible assignment slightly. | Guido van Rossum | 1991-12-24 | 1 | -2/+4 |
| | |||||
* | Fix assignment of a list to a slice of itself. | Guido van Rossum | 1991-12-24 | 1 | -1/+10 |
| | |||||
* | Added message to EOFError. | Guido van Rossum | 1991-12-24 | 1 | -1/+2 |
| | |||||
* | Explicitly check for weird values after calling pow(). | Guido van Rossum | 1991-12-16 | 1 | -0/+9 |
| | |||||
* | Add "varargs" attribute. | Guido van Rossum | 1991-12-16 | 1 | -5/+20 |
| | |||||
* | Use new exceptions. | Guido van Rossum | 1991-12-10 | 4 | -28/+18 |
| | |||||
* | Use IOError. | Guido van Rossum | 1991-12-10 | 1 | -1/+1 |
| | |||||
* | Use AttributeError. | Guido van Rossum | 1991-12-10 | 1 | -1/+1 |
| | |||||
* | Improved exceptions. | Guido van Rossum | 1991-12-10 | 1 | -13/+15 |
| |