Commit Graph

335 Commits

Author SHA1 Message Date
Guido van Rossum 794b93ea8a * Modules/Setup.*: removed all except Setup.in (huh? I thought
I'd done that already?!); disable gdbm by default
	* configure.in, */Makefile*.in: OPT can now be specified in the
	env at configure time and will then be put in all Makefiles as
	default
	* */Makefile*.in: remove lib*.a before adding to it
1994-08-23 13:51:25 +00:00
Guido van Rossum aa0f4c73e5 * Modules/signalmodule.c: added pause(). 1994-08-23 13:49:37 +00:00
Guido van Rossum 0b498beea2 * Modules/makesetup: support C++ files now; these should be given
as file.C or file.cc or file.c++; C files can be given as file.c
	(instead of file.o, which is still supported)
1994-08-23 13:49:15 +00:00
Guido van Rossum 794d81313b * Modules/posixmodule.c: some more NT changes 1994-08-23 13:48:48 +00:00
Guido van Rossum 9731d4470f * Modules/config.c.in: change mac specific things 1994-08-23 13:48:30 +00:00
Guido van Rossum 72824bab44 Move all code from version.c into config.c 1994-08-19 12:03:04 +00:00
Guido van Rossum 0c7095484e Changes for Mac 1994-08-19 12:01:32 +00:00
Guido van Rossum 6a3eb5f14d Changes to make it work and compile on NT, by Mark Hammond.
(NT changes for posixmodule.c re-invented by Guido.)
1994-08-18 15:42:46 +00:00
Guido van Rossum 5806a4f5c3 * Modules/stropmodule.c: implement find/rfind instead of
index/rindex (raising and catching an exception is much more
	expensive than returning and testing -1)
1994-08-17 13:15:46 +00:00
Guido van Rossum 9bb4fd6061 * tkintermodule.c (*FileHandler): generalize to arbitrary file ids
and objects that hav a fileno() method; fix bug in FileHandler
	(should call XDECREF instead of DECREF)
1994-08-09 14:15:19 +00:00
Guido van Rossum 4b4c664d2e * Modules/{Setup.in, gdbmmodule.c}, Doc/{lib,libgdbm}.tex: added
Anthony Baxter's gdbm module (derived from Jack's dbm module)
1994-08-08 08:06:37 +00:00
Guido van Rossum c65a525cdc * Modules/{Setup.in,Makefile.pre.in}: renamed some modules to
shorter names (dropped the "module" from the name): sunaudiodev,
	imgformat, audioop, imageop, imgfile

	* Modules/stropmodule.c (strop_rindex): make rindex('abc', '') do
	the right thing (i.e. return 3 instead of 0)

	* Modules/socketmodule.c: disabled allowbroadcast() socket method
1994-08-05 13:44:50 +00:00
Guido van Rossum e2ca9bd156 * tkintermodule.c: OK, I've fixed the "tty" problem. You're right
no need for the stdin handler, a Tk_DoOneEvent(TK_DONT_WAIT) did
	the trick.  I've included a diff to tkintermodule.c.
1994-08-03 08:01:43 +00:00
Guido van Rossum b6775db241 Merge alpha100 branch back to main trunk 1994-08-01 11:34:53 +00:00
Guido van Rossum e44e373cbc Added some names to Setup.in, and added syslogmodule.c.
posixmodule.c: use pclose, not fclose!
selectmodule.c: trap negative fileno's, change some error messages.
stropmodule.c: change semantics of rindex to match string.py.
1994-07-14 13:56:50 +00:00
Guido van Rossum d308e2ba3e * tkintermodule.c
(PyInit_tkinter): Only create stdin file handler when stdin
	 is a tty.
	 (Tkinter_Cleanup): New function.  This is an exit handler that
	 cleanup Tk.
1994-07-07 09:25:12 +00:00
Guido van Rossum f713247ed7 Initial revision 1994-06-27 08:00:16 +00:00
Guido van Rossum 7687522309 * tkintermodule.c (Tkapp_New): Remove #ifdef WITH_APPINIT.
* tkintermodule.c (FileHandler): Make arg a tuple; bug found
	by <tnb2d@cs.virginia.edu>.  Call the Python file handler
	function with (file, mask) argument.  Fix a few of my refcnt bugs.
1994-06-27 07:59:42 +00:00
Guido van Rossum bb4ba12242 * Modules/signalmodule.c: added thread compatibility (only main
thread uses signals); much improved efficiency; intrcheck()
doesn't call sigcheck() but only tests and clears the SIGINT
tripped flag.
1994-06-23 11:25:45 +00:00
Guido van Rossum 20882d5067 Split pwd in pwd and grp; added imgformat (by Jack) 1994-06-23 11:15:44 +00:00
Guido van Rossum 1846882254 Initial revision 1994-06-20 07:49:28 +00:00
Guido van Rossum 6299d1ee03 Speed up checking for signals and define intrcheck differently 1994-05-31 12:51:13 +00:00
Guido van Rossum 34162a123a Added some new modules 1994-05-23 12:37:57 +00:00
Guido van Rossum 398d9fec3c New experimental modules -- signal and sybase 1994-05-11 08:59:13 +00:00
Guido van Rossum e4c6131baa crypt module (Steve M's) 1994-05-06 14:25:39 +00:00
Guido van Rossum 094183ebeb At the release of 1.0.1. 1994-02-15 16:04:53 +00:00
Guido van Rossum cbcd8d796f Make more robust against Minix and Mac 1994-01-14 16:55:50 +00:00
Guido van Rossum 4de6cbccf0 new file, setup for minix 1994-01-14 16:55:10 +00:00
Guido van Rossum 7590193909 Add colon to TESTPATH (oops!) 1994-01-13 16:03:27 +00:00
Guido van Rossum 42f69dab7e Added TESTPATH 1994-01-13 16:01:38 +00:00
Guido van Rossum 6eb1d4a4da Clarified comments about build process.
Removed whitespace from variables used to build PYTHONPATH.
1994-01-11 11:31:44 +00:00
Sjoerd Mullender 8b03cae9a8 Integers are specified as "i" and not as "d". 1994-01-07 11:47:39 +00:00
Guido van Rossum 7dd31d0608 Makefile.pre.in (renamed from Makefile.in.in), makesetup: changes to
support new build process and VPATH
Setup*: disable nis and fix comments
rest: fix compiler warnings
1994-01-04 22:08:35 +00:00
Sjoerd Mullender 93fcb9bbbd One NULL should have been 0. 1994-01-03 14:03:25 +00:00
Guido van Rossum 4b35ef5297 Implemented sort of a solution for PYTHONPATH.
Added Setup.guido with my own preferences.
1994-01-03 01:26:03 +00:00
Guido van Rossum 116857ca01 Added George Neville-Neil's timing module 1994-01-02 23:22:21 +00:00
Guido van Rossum a1c996c9d6 1994 Copyright 1994-01-02 02:11:40 +00:00
Guido van Rossum fba715ab6c Added some files to new module 1994-01-02 00:26:09 +00:00
Sjoerd Mullender 0d2d397bc5 Added function ttob. 1993-12-24 14:51:14 +00:00
Guido van Rossum be0e9420a1 New files. 1993-12-24 10:32:00 +00:00
Sjoerd Mullender 92fa23fd6d ANSIfied somewhat. 1993-12-24 10:05:51 +00:00
Sjoerd Mullender c4f169cc5a rgbimgmodule.c, Makefile, config.c: new module to read RGB image files.
Does not need any SGI-specific libraries.
cgen.py, cstubs, Makefile: Generate glmodule.c differently so that it
	can be compiled using an ANSI compiler.
1993-12-21 17:06:12 +00:00
Sjoerd Mullender 7030b1ff2d almodule.c: added close method, equivalent to closeport.
thread.h: use PROTO instead of _P for prototypes.
1993-12-20 17:26:34 +00:00
Guido van Rossum 248a50c168 * Grammar: corrected old typo (class instead of 'class')
* dosmodule.c: MSDOS specific stuff from posixmodule.c.
* posixmodule.c: removed all MSDOS specific stuff.
* tokenizer.h, parsetok.h: in prototypes, don't mix named and unnamed
  parameters (MSC doesn't like this).
1993-12-20 12:53:10 +00:00
Guido van Rossum 67a5fdbcc2 * mpzmodule.c: cast some methods to the proper type.
* traceback.c (tb_print): use sys.tracebacklimit as a maximum number of
  traceback entries to print (default 1000).
* ceval.c (printtraceback): Don't print stack trace header -- this is now
  done by tb_print().
1993-12-17 12:09:14 +00:00
Sjoerd Mullender c4801ed513 Added minmax function:
-- function of module audioop: minmax (FRAGMENT, WIDTH)
    Minmax returns a tuple consisting of the minimum and maximum
    values of all samples in the sound fragment.
1993-12-13 12:06:27 +00:00
Sjoerd Mullender 66bca326cb Port to Solaris 2.3. 1993-12-03 16:54:45 +00:00
Guido van Rossum b376a4ad18 * timemodule.c: Add hack for Solaris 2.
* posixmodule.c: don't prototype getcwd() -- it's not portable...
* mappingobject.c: double-check validity of last_name_char in
  dict{lookup,insert,remove}.
* arraymodule.c: need memmove only for non-STDC Suns.
* Makefile: comment out HTML_LIBS and XT_USE by default
* pythonmain.c: don't prototype getopt() -- it's not standardized
* socketmodule.c: cast flags arg to {get,set}sockopt() and addrbuf arg to
  recvfrom() to (ANY*).
* pythonrun.c (initsigs): fix prototype, make it static
* intobject.c (LONG_BIT): only #define it if not already defined
* classobject.[ch]: remove all references to unused instance_convert()
* mappingobject.c (getmappingsize): Don't return NULL in int function.
1993-11-23 17:53:17 +00:00
Guido van Rossum c45611d0e3 * import.c (get_module): total rewrite, to ensure proper search order: for
each dir in sys.path, try each possible extension.  (Note: C extensions
  are loaded before Python modules in the same directory, to allow having
  a C version used when dynamic loading is supported and a Python version
  as a back-up.)
* import.c (reload_module): test for error from getmodulename()
* moduleobject.c: implement module name as dict entry '__name__' instead
  of special-casing it in module_getattr(); this way a module (or
  function!) can access its own module name, and programs that know what
  they are doing can rename modules.
* stdwinmodule.c (initstdwin): strip ".py" suffix of argv[0].
1993-11-17 22:58:56 +00:00
Guido van Rossum 52f2c05401 * parsermodule.c, Makefile, config.c: rudimentary interface to the Python
parser.
* mappingobject.c (lookmapping): 'freeslot' was never used due to a bug in
  the code.
1993-11-10 12:53:24 +00:00