Commit Graph

248 Commits

Author SHA1 Message Date
Guido van Rossum 94472a0374 classobject.c moduleobject.c stdwinmodule.c xxobject.c:
raise AttributeError, not KeyError, when attribute deletion fails.
sunaudiodevmodule.c: check for deletion before calling setmember.
1992-09-04 09:45:18 +00:00
Guido van Rossum 97f0277208 Restructured (yet again) to treat all modules more alike. 1992-09-03 20:49:55 +00:00
Guido van Rossum a5f61380f8 Got rid the bogus cache code and fix some unchecked errors. 1992-09-03 20:41:22 +00:00
Guido van Rossum aa7ca2dc1a Use getargs() everywhere now. Standardize lay-out yet more (an ongoing
project :-).  Change object administration: objects are removed from the
list of known objects as soon as their form is destroyed.
1992-09-03 20:37:02 +00:00
Guido van Rossum 3d1e146086 Improve check for offset out of range 1992-09-03 20:35:01 +00:00
Guido van Rossum e270b432f3 Re-implement some operations from string.py in C, for speed. 1992-09-03 20:21:07 +00:00
Jack Jansen e1b4d7ce14 Added rms, maxpp and avgpp methods. 1992-08-24 14:36:31 +00:00
Jack Jansen 8eace20f68 Removed debug statement 1992-08-24 14:35:38 +00:00
Jack Jansen 3accf984b3 Added method to write image files. 1992-08-20 11:54:27 +00:00
Guido van Rossum b001f7adb1 rearranged modules alphabetically 1992-08-19 16:44:41 +00:00
Guido van Rossum 90ddb7b5cb unpack() now returns a tuple, not a list 1992-08-19 16:44:15 +00:00
Guido van Rossum 3af03d8f3e don't call gl.foreground and create a new window after all (seems to
break window positions in .Xdefaults)
1992-08-19 16:42:53 +00:00
Guido van Rossum 448f4bf45a added getname, getdefault and getminmax functions 1992-08-19 16:41:15 +00:00
Guido van Rossum f9f2e82fca New thread.c from Sjoerd, supports _exit_prog(). Use this in goaway()
to avoid hanging in cleanup().
1992-08-17 08:59:08 +00:00
Guido van Rossum 0297512a08 struct: pack/unpack binary structs; fcntl: fcntl(), ioctl(). 1992-08-17 08:55:12 +00:00
Guido van Rossum 6d946f98bd * macmodule.c: include allobjects.h, not .c
* timemodule.c: the mac has no unistd.h
* classobject.c: fixed several cases of return NULL that should be
  return -1 !!!
1992-08-14 13:49:30 +00:00
Guido van Rossum 39789030bd Fix bug introduced by Jack (duplicate def of qread) 1992-08-13 14:23:56 +00:00
Jack Jansen 743db36cd2 Modified to allow other threads to run in a multithreaded environment. 1992-08-13 14:13:11 +00:00
Guido van Rossum 423d6c6bca DO_TIMES must now be defined in the Makefile 1992-08-12 15:34:02 +00:00
Guido van Rossum 38fbf52b8e Made module regex optional; added optional module nis. 1992-08-12 15:28:52 +00:00
Guido van Rossum 3562d52e93 Added error handling and free resources. 1992-08-12 15:26:16 +00:00
Guido van Rossum 9de7a01e0e NIS interface by Fred Gansevles <Fred.Gansevles@cs.utwente.nl>. 1992-08-12 14:57:12 +00:00
Guido van Rossum a1ed37cb59 Last-minute changes for release. 1992-08-10 14:55:00 +00:00
Guido van Rossum 21803b8a6f Makefile, Configure.py: ##ask --> ##[el]if[yes|no]
posixmodule.c: waitpid() is separate
1992-08-09 12:55:27 +00:00
Guido van Rossum de126a6ff8 Replaced max=-1 by max = -1. 1992-08-06 16:53:58 +00:00
Guido van Rossum ff4949eeee * Makefile: cosmetics
* 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
1992-08-05 19:58:53 +00:00
Guido van Rossum 25bec8c8dc Sometimes, recvfrom() returns an empty address; this is not an error.
Also, get rid of makepair() in favor of mkvalue().
1992-08-05 19:00:45 +00:00
Guido van Rossum 1984f1e1c6 * Makefile adapted to changes below.
* 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
1992-08-04 12:41:02 +00:00
Guido van Rossum 4fbf798f86 * myselect.h: bzero -> memset
* select.c: bzero -> memset; removed global variable
1992-08-04 09:13:45 +00:00
Guido van Rossum f16eda5ff8 cdmodule.c: 2 minor changes by Sjoerd. 1992-08-03 19:06:59 +00:00
Guido van Rossum 7b2c03f39b New rotor methods: setkey(), encryptmore() and decryptmore(). 1992-08-02 09:00:06 +00:00
Guido van Rossum e6e9fe18bb Changes to make it compile under SGI -- revamped new/dealloc a bit. 1992-07-31 15:11:01 +00:00
Guido van Rossum 500982062f New file rotormodule.c (by Lance Ellinghouse). 1992-07-31 15:10:13 +00:00
Guido van Rossum b64e63545f Added conversions to/from ADPCM(-4); renamed adpcm to adpcm3 (what it
really was).
1992-07-06 14:21:56 +00:00
Guido van Rossum 3ee199e0cd added WE_KEY detail format to stdwinmodule.c. 1992-06-30 12:48:26 +00:00
Guido van Rossum dd9ed839d6 Added qgetfd() to cstubs for GL.
Added new module dbm (interface to ndbm).
1992-06-29 17:10:40 +00:00
Guido van Rossum 8e7a0f026e Added adpcm2lin and lin2adpcm. 1992-06-23 15:23:57 +00:00
Guido van Rossum 9d47992719 Use "myselect.h" as intended. 1992-06-23 15:23:28 +00:00
Guido van Rossum ed233a5696 Changes for new UNIX-specific built-in module 'select' and new header for
interfaces to variants of select() system call, "myselect.h".  This includes
adding fileno() methods to files, sockets and stdwin.
1992-06-23 09:07:03 +00:00
Guido van Rossum 710e1df585 Some UNIX types want the exact size of the address structure 1992-06-12 10:39:36 +00:00
Guido van Rossum dfd6e46779 Fix for SEQUENT by Jaap Vermeulen 1992-06-12 10:39:22 +00:00
Guido van Rossum aad5344fc1 Fix bug in ulaw2lin for 4-byte values 1992-06-05 15:11:56 +00:00
Guido van Rossum 0e69587dc0 Added {get,set}sockopt(). allowbroadcast is now obsolete. 1992-06-05 15:11:30 +00:00
Guido van Rossum 3dd8c9895e fixed bugs in generic_setattr (returned NULL instead of
-1 for errors)
1992-06-03 17:07:49 +00:00
Guido van Rossum f0476350b8 Added 1992 to copyright notice 1992-06-03 17:07:06 +00:00
Guido van Rossum 2c4be64f20 added readscaled() function. 1992-06-03 17:06:36 +00:00
Guido van Rossum 9c52e0ff32 Initial revision 1992-06-03 17:06:14 +00:00
Guido van Rossum c888bf7cae append the default path to $PYTHONPATH; ignore empty $PYTHONPATH.
default DATE is now 3 Jun 1992
1992-06-03 17:05:13 +00:00
Guido van Rossum b66efa0d75 Initial revision 1992-06-01 16:01:24 +00:00
Guido van Rossum 5773798e50 Mark's name is Callow, not Callows 1992-05-15 11:06:29 +00:00
Guido van Rossum 178969df92 Added support for CD module 1992-05-15 11:06:12 +00:00
Guido van Rossum 86d2568e16 Initial revision 1992-05-15 11:05:54 +00:00
Guido van Rossum 46003ff66a Added gete?[gu]id functions 1992-05-15 11:05:24 +00:00
Guido van Rossum c3c7ac8ba7 Wanneer er geen disk in de speler zit falen sommige routines. De
exceptie heeft nu in dat geval als argument "no disc in player", behalve
wanneer de bibliotheek routine errno zet.  In dat laatste geval wordt
(nog steeds) err_errno() gebruikt.

Wanneer een routine uit de bibliotheek faalt wordt nu altijd een IOError
gegenereerd.  Een RuntimeError treedt alleen op bij verkeerde argumenten.
1992-05-06 09:48:30 +00:00
Guido van Rossum cbcdff7fcf Don't use \ for continuation lines; minor changes. 1992-05-06 09:47:10 +00:00
Guido van Rossum ece6efe5d1 Return more structured data in some cases 1992-04-15 15:56:11 +00:00
Guido van Rossum 16b8f3047f Initial revision 1992-04-13 18:22:53 +00:00
Guido van Rossum 2ee12f4090 Use mkvalue() instead of painfully constructing values 1992-04-13 15:54:35 +00:00
Guido van Rossum d9f5733a92 change the date to say >= 6 Apr 1992 1992-04-08 11:17:17 +00:00
Guido van Rossum 336b591e55 in form_dealloc, only hide the form if it's visible 1992-04-08 11:16:25 +00:00
Guido van Rossum 7cdf5eb5b9 Don't use NULL as 0 int! 1992-04-06 12:34:45 +00:00
Guido van Rossum bab9d03855 Copyright for 1992 added 1992-04-05 14:26:55 +00:00
Guido van Rossum f1644a54ad Don't define DO_TIMES (now in posixmodule.c) 1992-04-05 14:25:41 +00:00
Guido van Rossum 22db57e4a2 Added times() (from time) 1992-04-05 14:25:30 +00:00
Guido van Rossum 5113f5fd34 Copyright for 1992 added 1992-04-05 14:20:22 +00:00
Guido van Rossum df840d911f lint 1992-03-27 17:29:44 +00:00
Guido van Rossum 4f1691d0d5 Remove redundant vars 1992-03-27 17:26:25 +00:00
Guido van Rossum 9abc539846 Lint fluff 1992-03-27 17:24:37 +00:00
Guido van Rossum 50e61dc259 Check empty argument lists.
Lint fixes (and include <unistd.h>)
1992-03-27 17:22:31 +00:00
Guido van Rossum 2762f250eb Initialized sigsave to shut lint up 1992-03-27 17:22:13 +00:00
Guido van Rossum d15b73353f Lint fixes. 1992-03-27 17:22:00 +00:00
Guido van Rossum 2bac4d3368 Added forms_(de)activate_all_forms functions; minor lay-out fixes. 1992-03-27 17:20:21 +00:00
Guido van Rossum cd8077603a Got rid of display_form() (same as show_form()). 1992-03-24 13:32:06 +00:00
Guido van Rossum 3e94197a52 Improved error handling. 1992-03-23 18:21:32 +00:00
Guido van Rossum b3a0e4c842 Implemented show_choice(); moved items around a little bit. 1992-03-23 18:20:54 +00:00
Guido van Rossum 27aaa6daa9 Add interface to times(2). 1992-03-12 17:33:14 +00:00
Guido van Rossum aa9de679b5 Initial revision 1992-03-04 16:40:03 +00:00
Guido van Rossum 444db07d3c Get rid of RuntimeError. 1992-02-26 15:26:56 +00:00
Guido van Rossum 06a6702dc8 Addef gflush 1992-02-26 15:19:45 +00:00
Guido van Rossum c39de5fe61 Added uname. Made lstat/readlink/symlink unconditional (the latter
two raise posix.error if symlinks aren't supported).
1992-02-05 11:15:54 +00:00
Guido van Rossum 3c8ba7a1ea Fixed getargs() call in setfont.
Improved setwincursor() to allow None to explicitly turn the cursor off.
1992-02-05 11:15:00 +00:00
Guido van Rossum ef0a00ec0c Use getargs() function. 1992-01-27 16:51:30 +00:00
Guido van Rossum 9c16d7fbac Cal get*Str*arg() instead of get*str*arg(), until the code is fixed. 1992-01-27 16:49:54 +00:00
Guido van Rossum 9db23a8c5f Change prototypes decision. 1992-01-27 16:48:48 +00:00
Guido van Rossum 3b1a57a4a0 Ported to THINK C. 1992-01-27 16:47:46 +00:00
Guido van Rossum d577c0ca90 Fix range error (doc and impl of re_search disagreed!)
Use getargs() function.
Drop re_string from re object.
1992-01-27 16:46:19 +00:00
Guido van Rossum fc58e58cb7 Use getargs() function. 1992-01-27 16:45:55 +00:00
Guido van Rossum 521f81ca26 Retract the rage bugfix, but change the range assertion. 1992-01-26 18:23:48 +00:00
Guido van Rossum b7e5160838 Add method to call wsetactive(win). 1992-01-26 18:13:18 +00:00
Guido van Rossum 2d78590183 Make "range" one smaller (discrepancy between doc and source for regex.c!). 1992-01-26 18:12:41 +00:00
Guido van Rossum 5f21dd106f #ifdef'ed an unreachable line out. 1992-01-19 16:49:14 +00:00
Guido van Rossum b674c3bba5 Initial revision 1992-01-19 16:32:47 +00:00
Guido van Rossum 1cab95c14d Use Tatu Ylonen's copyleft-free reimplementation of
GNU regular expressions
1992-01-19 16:31:57 +00:00
Guido van Rossum 450ed49a89 Change versions.
Save argv[0] in global argv0.
1992-01-19 16:27:42 +00:00
Guido van Rossum 77b4604eaf Added close method for menus.
Check for closed objects in getattr (not perfect, but better).
1992-01-14 18:41:24 +00:00
Guido van Rossum 2d709b1608 Get rid of AMOEBA deps; add declaration of fmod() if __STDC__ is not defined. 1992-01-14 18:37:27 +00:00
Guido van Rossum 2817875b2e Converted to use == equality check syntax. 1992-01-12 17:18:12 +00:00
Guido van Rossum b824fc6773 'regs' is a read-only data member, not a function. 1992-01-01 14:52:16 +00:00
Guido van Rossum 9b4e1b36f9 Auto include patchlevel in version.
Replace regexp by regex.
1991-12-30 01:43:49 +00:00
Guido van Rossum 6f4c43d4fd Initial revision 1991-12-30 01:42:57 +00:00