Commit Graph

27 Commits

Author SHA1 Message Date
Guido van Rossum
b0352fa3fc fix args options for setcheckinterval 1996-01-12 01:15:01 +00:00
Sjoerd Mullender
6ec3c653da Implemented two new functions in sys:
getcounts() returns a list of counts of allocations and
		deallocations for all different object types.
	getobjects(n [, type ]) returns a list of recently allocated
		and not-yet-freed objects of the given type (all
		objects if no type given).  Only the n most recent
		(all if n==0) objects are returned.
getcounts is only available if compiled with -DCOUNT_ALLOCS,
getobjects is only available if compiled with -DTRACE_REFS.  Note that
everything must be compiled with these options!
1995-08-29 09:18:14 +00:00
Guido van Rossum
aaf18390ee added sys.platform 1995-07-07 22:45:02 +00:00
Guido van Rossum
9a1f388676 init sys_checkinterval to 10 1995-03-30 11:01:58 +00:00
Guido van Rossum
cc8914fb22 fix comment about exit() 1995-03-20 15:09:40 +00:00
Guido van Rossum
4f508cc806 add explicit 0 flags for methodlist 1995-02-21 21:03:24 +00:00
Guido van Rossum
a0d7a23398 sys.check_interval=x -> sys.setcheckinterval(x) 1995-01-09 17:46:13 +00:00
Guido van Rossum
6d023c98b0 Added 1995 to copyright message.
bltinmodule.c: fixed coerce() nightmare in ternary pow().
modsupport.c (initmodule2): pass METH_FREENAME flag to newmethodobject().
pythonrun.c: move flushline() into and around print_error().
1995-01-04 19:12:13 +00:00
Guido van Rossum
1ae940a587 Lots of changes, most minor (fatal() instead of abort(), use of
err_fetch/err_restore and so on).  But...
NOTE: import.c has been rewritten and all the DL stuff is now in the
new file importdl.c.
1995-01-02 19:04:15 +00:00
Guido van Rossum
1d5735e846 Merge back to main trunk 1994-08-30 08:27:36 +00:00
Guido van Rossum
34679b7661 * Added Fixcprt.py: script to fix copyright message.
* various modules: added 1993 to copyright.
* thread.c: added copyright notice.
* ceval.c: minor change to error message for "+"
* stdwinmodule.c: check for error from wfetchcolor
* config.c: MS-DOS fixes (define PYTHONPATH, use DELIM, use osdefs.h)
* Add declaration of inittab to import.h
* sysmodule.c: added sys.builtin_module_names
* xxmodule.c, xxobject.c: fix minor errors
1993-01-26 13:33:44 +00:00
Guido van Rossum
3165fe6a56 Modified most (but not yet all) I/O to always go through sys.stdout or
sys.stderr or sys.stdin, and to work with any object as long as it has
a write() (respectively readline()) methods.  Some functions that took
a FILE* argument now take an object* argument.
1992-09-25 21:59:05 +00:00
Guido van Rossum
14b4adbd33 Add an optional interface to turn malloc debugging on and off. 1992-09-03 20:25:30 +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
e765f7dbae Fix reference counts of sys_trace and sys_profile 1992-04-05 14:17:55 +00:00
Guido van Rossum
e2437a191d Added settrace() and setprofile(). 1992-03-23 18:20:18 +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
ee3a299c39 Ensure that sys.argv[0] always exists (maybe as empty string). 1992-01-14 18:42:53 +00:00
Guido van Rossum
6a468bf71c Raise SystemExit instead of calling goaway(). 1991-12-31 13:15:35 +00:00
Guido van Rossum
7177657bf2 Added sys.version object. 1991-12-10 14:00:21 +00:00
Guido van Rossum
d6a15ada72 Generalize to macintosh. 1991-06-24 22:30:42 +00:00
Guido van Rossum
3caa6e35cf Added fclose to newopenfileobject() calls. 1991-06-04 19:40:59 +00:00
Guido van Rossum
eb4361af6c Defined path delimiter for MS-DOS as semicolon 1991-05-05 20:14:35 +00:00
Guido van Rossum
f70e43a073 Added copyright notice. 1991-02-19 12:39:46 +00:00
Guido van Rossum
3f5da24ea3 "Compiling" version 1990-12-20 15:06:42 +00:00