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
df72a655b9
To ignore a call, cast it to (void), not to (void *)...
1992-08-12 15:27:32 +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
5dc8eb0914
sysmodule.c: calling sys.settrace() or sys.setprofile() without
...
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
1992-06-19 13:57:27 +00:00
Guido van Rossum
138e6bf66e
Removed confusing, incorrect comment.
1992-06-03 17:08:15 +00:00
Guido van Rossum
ab2490a6d5
Added new types to setattr() as well...
1992-06-03 17:07:23 +00:00
Guido van Rossum
899dcf36a0
Added parameter decls to do_mkvalue for non-template machines
1992-05-15 11:04:59 +00:00
Guido van Rossum
fc61adb5f1
Merged with Steve Miale's version
1992-04-13 15:53:41 +00:00
Guido van Rossum
3cfe6faffe
Added mkvalue() function
1992-04-13 10:48:55 +00:00
Guido van Rossum
bd9ccca812
Test for NULL coming out of err_get() in call_exc_trace()
1992-04-09 14:58:08 +00:00
Guido van Rossum
801dcae64d
reverse sense of test for CHECKEXC
1992-04-08 11:32:32 +00:00
Guido van Rossum
5b7313a982
Arg of cmp_outcome becomes an int for portability to the Mac
1992-04-06 13:24:57 +00:00
Guido van Rossum
7cdf5eb5b9
Don't use NULL as 0 int!
1992-04-06 12:34:45 +00:00
Guido van Rossum
74b31c9826
Latest gramamr
1992-04-06 12:34:37 +00:00
Guido van Rossum
bab9d03855
Copyright for 1992 added
1992-04-05 14:26:55 +00:00
Guido van Rossum
94fb82e461
Only * can be used for varargs argument lists
1992-04-05 14:24:50 +00:00
Guido van Rossum
eee3fd495a
(Hopefully) fix bug in reference count in call_exc_trace()
...
plus minor rearrangements found during debugging
1992-04-05 14:18:13 +00:00
Guido van Rossum
e765f7dbae
Fix reference counts of sys_trace and sys_profile
1992-04-05 14:17:55 +00:00
Guido van Rossum
2c81957ba1
tightened try statement syntax
1992-03-31 18:50:52 +00:00
Guido van Rossum
dcc6ef2144
fix HUGE and MAXVAL (suggested by Tim Peters)
1992-03-27 17:30:32 +00:00
Guido van Rossum
df840d911f
lint
1992-03-27 17:29:44 +00:00
Guido van Rossum
0a066c07ac
lint (added prototypes for all static fns)
1992-03-27 17:29:15 +00:00
Guido van Rossum
f1aeab7f81
fix what lint found
1992-03-27 17:28:26 +00:00
Guido van Rossum
292bb8ea33
Shut up lint
1992-03-27 17:23:29 +00:00
Guido van Rossum
2807d191f0
Shut up lint.
1992-03-27 17:23:17 +00:00
Guido van Rossum
e3d7045e47
Add -v option (verbose) and get rid of finaloutput() function (unused)
1992-03-27 17:21:30 +00:00
Guido van Rossum
4cd8b5cad8
Print messages about where from modules are imported when -v is given.
1992-03-27 17:21:04 +00:00
Guido van Rossum
c1b5cec10e
*** empty log message ***
1992-03-24 13:46:39 +00:00
Guido van Rossum
e2437a191d
Added settrace() and setprofile().
1992-03-23 18:20:18 +00:00
Guido van Rossum
9c8d70de45
New trace implementation; and profile (in a similat vein).
1992-03-23 18:19:28 +00:00
Guido van Rossum
56a1bcc107
Totally get rid of silly '\E' escape.
1992-03-12 17:36:11 +00:00
Guido van Rossum
22ebe2f4a7
Strip leading whitespace from input().
1992-03-12 17:33:52 +00:00
Guido van Rossum
f08ab0ad15
Skip leading whitespace of eval() string argument.
1992-03-04 16:41:41 +00:00
Guido van Rossum
c4adc83378
Set sys.last_{type,value} to characteristics of last unhandled exception.
1992-03-04 16:39:39 +00:00
Guido van Rossum
299a734744
Tighten error handling of string printing.
1992-03-04 16:39:08 +00:00
Guido van Rossum
d8bac6de57
Move SEP to osdefs.h. Use MAXPATHLEN from osdefs.h.
1992-02-26 15:19:13 +00:00
Guido van Rossum
7169dbb76d
Move printing of filename and lineno to tb_displayline.
...
Search sys.path if the filename isn't found.
Include osdefs.h.
1992-02-26 15:17:59 +00:00
Guido van Rossum
0f61f8a4bd
Added execfile().
1992-02-25 18:55:05 +00:00
Guido van Rossum
9b1d33b105
Use correct prototype for invert().
1992-02-11 15:56:02 +00:00
Guido van Rossum
5778949295
Get rid of comment about open().
1992-02-05 11:17:52 +00:00
Guido van Rossum
16dfd29e44
Limit length of name passed to sprintf.
1992-02-05 11:17:30 +00:00
Guido van Rossum
c4884007f9
EOF in source is a SyntaxError, not an EOFError.
1992-02-05 11:16:47 +00:00
Guido van Rossum
4ddf8cc408
Get rid of "Unhandled exception: " altogether.
1992-02-05 11:16:28 +00:00
Guido van Rossum
33894be657
Added getattr and setattr built-in functions.
1992-01-27 16:53:09 +00:00
Guido van Rossum
cb4eeddeea
Don't print "Unhandled exception: " when one occurs -- just print its name.
1992-01-27 16:48:10 +00:00
Guido van Rossum
922cfad5a3
New getargs() function: a single varargs function,
...
guided by a format string, makes all get*arg() functions unnecessary.
1992-01-27 16:47:03 +00:00
Guido van Rossum
5ad58c6aef
sysset(name, NULL) does nothing if sys.name is undefined
1992-01-26 18:15:48 +00:00
Guido van Rossum
e0513dee58
getbinaryname is now part of dl_loadmod.
1992-01-26 18:15:22 +00:00
Guido van Rossum
598fd8c980
Raise SyntaxError for syntax errors detected in this phase.
1992-01-26 18:12:03 +00:00