Guido van Rossum
04691fc1c1
Changes so that user-defined classes can implement operations invoked
...
by special syntax: you can now define your own numbers, sequences and
mappings.
1992-08-12 15:35:34 +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
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
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
000239517d
added BYTE, CHAR and unsigned variants
1992-06-03 17:07:40 +00:00
Guido van Rossum
5a8f824933
Added declaration for mkvalue()
1992-04-13 15:54:59 +00:00
Guido van Rossum
5113f5fd34
Copyright for 1992 added
1992-04-05 14:20:22 +00:00
Guido van Rossum
704a26c5f3
lint (added flushline() interface)
1992-03-27 17:29:31 +00:00
Guido van Rossum
559e55f73c
Make it lint-free
1992-03-27 17:23:59 +00:00
Guido van Rossum
c1b5cec10e
*** empty log message ***
1992-03-24 13:46:39 +00:00
Guido van Rossum
9b9ccd3fe3
Moved definition of search path DELIM here (from sysmodule.c).
1992-03-23 18:20:32 +00:00
Guido van Rossum
d510c786b8
Added definitions of sys_trace and sys_profile
1992-03-23 18:20:04 +00:00
Guido van Rossum
355a33dc6e
Initial revision
1992-02-26 15:19:31 +00:00
Guido van Rossum
550fbcc2aa
New getargs() function. Define macros with conventional names,
...
except get*str*arg --> get*Str*arg; get*str*arg fetches a C string.
1992-01-27 16:50:21 +00:00
Guido van Rossum
b674c3bba5
Initial revision
1992-01-19 16:32:47 +00:00
Guido van Rossum
44c8f69ff2
Added typedef for longobject and declarations for long_{format,scan}.
1992-01-19 16:31:28 +00:00
Guido van Rossum
3d09543472
Move the longobject typedef to longobject.h.
...
Remove some functions that need not be exported.
1992-01-19 16:30:12 +00:00
Guido van Rossum
7c36ad7f44
New function gettupleslice(v, i, j).
1992-01-14 18:45:33 +00:00
Guido van Rossum
11c03836a2
Change tb_here() prototype.
1992-01-14 18:45:09 +00:00
Guido van Rossum
22f863feee
Added UNPACK_VARARG.
1992-01-14 18:38:56 +00:00
Guido van Rossum
088bc2ad3c
Added f_lasti and f_lineno members.
1992-01-14 18:32:11 +00:00
Guido van Rossum
768a3f0ab8
Added SystemExit.
1991-12-31 13:13:47 +00:00
Guido van Rossum
85fc392b9e
Added ImportError.
1991-12-24 13:26:33 +00:00
Guido van Rossum
fb905c3ebf
Regularize exceptions.
1991-12-16 15:42:38 +00:00
Guido van Rossum
750bf14c32
Added UNPACK_ARG.
1991-12-16 13:07:35 +00:00
Guido van Rossum
c06022966f
Add "varargs" attribute.
1991-12-16 13:07:24 +00:00
Guido van Rossum
a317365eb2
SyntaxError.
1991-12-16 13:06:04 +00:00
Guido van Rossum
97ff5308fe
Added _GLOBAL opcodes.
1991-12-10 13:59:17 +00:00
Guido van Rossum
876336bc7d
New exceptions.
1991-12-10 13:56:23 +00:00
Guido van Rossum
7928cd7636
Added shift and mask ops.
1991-10-24 14:59:31 +00:00
Guido van Rossum
7a6dfa7d79
Added shifting and masking ops to as_number struct
1991-10-24 14:58:18 +00:00
Guido van Rossum
8883aaa5eb
Added some new tokens
1991-10-20 20:24:45 +00:00
Guido van Rossum
2b9d6e2008
newclassobject gets a third parameter (optional class name)
1991-10-20 20:12:10 +00:00
Guido van Rossum
4b3c1da660
Added/moved dict2 interfaces.
1991-08-16 09:00:42 +00:00
Guido van Rossum
4f4a55b90c
Change getbuiltin interface to get the name as an object.
1991-08-16 08:55:53 +00:00
Guido van Rossum
18315a0ecd
New syntax
1991-07-27 21:38:01 +00:00
Guido van Rossum
a049031f2d
Added call_object interface
1991-07-27 21:33:03 +00:00
Guido van Rossum
d6a15ada72
Generalize to macintosh.
1991-06-24 22:30:42 +00:00
Guido van Rossum
1e2293d1f7
Define 'macintosh' if THINK_C is defined.
1991-06-24 22:30:14 +00:00
Guido van Rossum
76085b95b9
Remove StopPrint hack
1991-06-07 22:50:34 +00:00
Guido van Rossum
d783a46d73
printobject now returns an error code
1991-06-07 22:35:42 +00:00
Guido van Rossum
65481401b1
Add "close" function parameter to newopenfileobject().
1991-06-07 13:57:38 +00:00
Guido van Rossum
e24122f5e2
Export getdict2key() interface.
1991-06-07 13:57:16 +00:00
Guido van Rossum
4ed1ad5355
Export newcodeobject() interface.
1991-06-04 19:43:13 +00:00
Guido van Rossum
dce2e3d8f5
Initial revision
1991-06-04 19:42:30 +00:00
Guido van Rossum
301f1a6f79
Added declarations for dnewlongobject and dgetlongvalue.
1991-06-03 10:58:51 +00:00
Guido van Rossum
cf7423ac8f
Added nonzero to number methods
1991-05-14 12:08:10 +00:00
Guido van Rossum
badb116f5e
Added wdigit and stwodigits typedefs, and changed prototypes.
1991-05-14 12:06:16 +00:00
Guido van Rossum
97ad2d80e5
Added divmod and abs methods for numbers
1991-05-05 20:11:43 +00:00
Guido van Rossum
edcc38aac5
Initial revision
1991-05-05 20:09:44 +00:00
Guido van Rossum
faf9c960a2
Renamed class members to instances and class methods to instance methods
...
,.
1991-05-05 20:04:55 +00:00
Guido van Rossum
9227c0e184
Added longobject.h
1991-05-05 20:00:02 +00:00
Guido van Rossum
0bd2441e00
Added external interface to readline, for raw_input().
1991-04-04 15:21:57 +00:00
Guido van Rossum
054ff1f29e
Added opcodes to load local/global variables
1991-04-04 10:45:01 +00:00
Guido van Rossum
572fd57b5a
Changed 'class member' to 'instance'.
1991-04-04 10:42:27 +00:00
Guido van Rossum
d594c91293
Added Getnamev() macro.
1991-04-03 19:03:22 +00:00
Guido van Rossum
88671aeabb
Added declaration for dict2insert.
1991-04-03 19:02:06 +00:00
Guido van Rossum
e543a94746
Satisfy Standard C rules about struct scope.
1991-04-03 19:00:55 +00:00
Guido van Rossum
f70e43a073
Added copyright notice.
1991-02-19 12:39:46 +00:00
Guido van Rossum
b156d7259b
Changes for THINK C 4.0.
1990-12-20 23:13:00 +00:00
Guido van Rossum
d05c4b2a7c
Include <string.h> instead of "string.h".
1990-12-20 23:02:42 +00:00
Guido van Rossum
3f5da24ea3
"Compiling" version
1990-12-20 15:06:42 +00:00
Guido van Rossum
226d79eb4a
Changed interface (no nodes but code).
1990-11-18 17:44:34 +00:00
Guido van Rossum
f1270274e2
Added opcodes for classes.
1990-11-18 17:38:15 +00:00
Guido van Rossum
cc398d1cbb
Added prototype for new function freenode().
1990-11-18 17:37:25 +00:00
Guido van Rossum
10dc2e8097
Initial revision
1990-11-18 17:27:39 +00:00
Guido van Rossum
d5b70f5bac
Add UNREF macro if not tracing refs (see UNREF function in object.c).
1990-11-18 17:27:10 +00:00
Guido van Rossum
c8564cde04
Be more careful with negative reference counts.
1990-11-02 17:51:56 +00:00
Guido van Rossum
14da580104
Added prototype for sortlist().
1990-10-30 13:32:39 +00:00
Guido van Rossum
6990c943a0
Added getdictkeys() prototype.
1990-10-30 13:27:43 +00:00
Guido van Rossum
3ccb6172f8
removed dir statement. Function arguments may now be tests.
1990-10-26 15:01:05 +00:00
Guido van Rossum
0558a205a3
Added getmodulename() public interface.
1990-10-26 15:00:11 +00:00
Guido van Rossum
ed97f6aa04
Added prototype for reload_module.
1990-10-26 14:59:11 +00:00
Guido van Rossum
4ab9b4c9ad
Changed strdup prototype to use const.
1990-10-21 22:13:08 +00:00
Guido van Rossum
3e55cb6302
Added err_badcall() and planned new errors.
1990-10-21 22:09:30 +00:00
Guido van Rossum
0539ba2c74
Removed declarations of err_badargs [sic] and err_nomem.
1990-10-14 20:03:07 +00:00
Guido van Rossum
5c600e1614
Made exception objects extern.
...
Added convenience functions.
1990-10-14 20:00:25 +00:00
Guido van Rossum
ce4704a4f5
Remove dict2 interface -- it's now static.
1990-10-14 19:59:45 +00:00
Guido van Rossum
85a5fbbdfe
Initial revision
1990-10-14 12:07:46 +00:00