Commit Graph

4962 Commits

Author SHA1 Message Date
Guido van Rossum 5cd752028c Describe new ("unsigned") behavior of hex() and oct(). 1997-01-14 18:44:23 +00:00
Barry Warsaw 9a0313cd62 Removed _xdr module 1997-01-14 18:20:26 +00:00
Barry Warsaw bd8a91198d test(): close the pipe, just to shut up Purify. 1997-01-14 17:49:15 +00:00
Barry Warsaw 93d29b6895 Eliminated gcc -Wall complaints:
- Quieted gcc -Wall by removing unused local variables.

    - Added some choice parentheses around assignments in conditional
      tests.

    - Removed an unused (and seemingly unreachable) err label in
      load_short_binstring().

    - in Unpickler_load(), removed \. in string format.

    - init_stuff() was declared to return an int, but had these
      problems:

	- it was returning NULL instead of 0 or 1 in some cases
	- it was falling of the end of the routine without returning
	  anything
	- the call of init_stuff() in initcPickle() was never checking
	  the return value anyway.

      I changed all this by returning 1 in the case of errors, 0 when
      no error occurred.  Then in initcPickle(), if init_stuff()
      returns non-zero, I call Py_FatalError().

Suppressing my urge to reformat according to Python coding standards!
:-)
1997-01-14 17:45:08 +00:00
Barry Warsaw 61a63e152d Quieted gcc -Wall by removing unused local variables.
Suppressing my urge to reformat according to Python coding standards!
:-)
1997-01-14 17:38:28 +00:00
Barry Warsaw 54dbf02da2 Quieted gcc -Wall by removing unused local variables. 1997-01-14 17:37:32 +00:00
Barry Warsaw 845a4c6bb7 Formatting. 1997-01-14 17:36:36 +00:00
Barry Warsaw 41317d120d Obsolete, now that xdrlib.py uses the new-and-improved struct module. 1997-01-14 17:34:06 +00:00
Barry Warsaw 7e98bda43b Raise ConversionError instances the new fangled way, e.g.:
raise ConversionError, msg

where `msg' is passed as the argument to the constructor.
1997-01-14 17:11:02 +00:00
Guido van Rossum 6f72f97c03 Increased buffer sizes used by hex() and oct() -- on 64-bit or 128-bit
machines, the string may get longer than 20 characters!
1997-01-14 15:43:41 +00:00
Barry Warsaw 7a515b9156 Output for test of the timing module 1997-01-13 23:03:54 +00:00
Barry Warsaw a6aca46fcb Test of the timing module 1997-01-13 23:03:07 +00:00
Barry Warsaw 58d40a7400 Renamed. 1997-01-13 22:57:42 +00:00
Barry Warsaw 5b456645fb Use the new regrtest harness 1997-01-13 22:54:27 +00:00
Barry Warsaw 4a6cf4167b Formatting, and minor error detection 1997-01-13 22:44:55 +00:00
Barry Warsaw 6f332d8f35 updated the hex(-16) test since hex() of a signed literal has changed. 1997-01-13 22:36:29 +00:00
Barry Warsaw 906a5e9c68 updated the oct(-100) test since oct() of a signed literal has changed. 1997-01-13 22:36:03 +00:00
Barry Warsaw 64278cf5f7 initthread(): Removed extraneous Py_INCREF(ThreadError) 1997-01-13 22:09:43 +00:00
Barry Warsaw 3de721d073 Catch sunaudiodev.error on open() and re-raise TestFailed exception. 1997-01-13 20:53:46 +00:00
Barry Warsaw 59e066e73b Oops, remove debugging statements 1997-01-13 20:50:40 +00:00
Barry Warsaw b241c42192 A slightly better test of sunaudiodev module. Include the audio data
in the distribution.
1997-01-13 20:34:44 +00:00
Barry Warsaw dbfb8d4626 Rewrite the `hostname mismatch' test as per GvR suggestion.
Don't assume gethostbyaddr()'s primary hostname is the same as
gethostname(), or even that gethostname() can be found in the list of
hosts returned by gethostbyaddr().  We do test for at least one FQDN
in gethostbyaddr().
1997-01-13 19:35:39 +00:00
Guido van Rossum d08735a54b Skip empty paths read from the registry. 1997-01-12 20:14:01 +00:00
Guido van Rossum 9c6ba5e901 Fix leak involving BuildValue("...O..."). 1997-01-12 20:02:04 +00:00
Guido van Rossum ebee0256f3 Changed hex() and oct() again, to never emit a '-' sign. 1997-01-12 19:48:03 +00:00
Guido van Rossum fde462e173 Add the Lib/MACHDEP subdir to TESTPATH. 1997-01-11 19:59:17 +00:00
Guido van Rossum ee88ff9d05 Add entries for cStringIO and cPickle 1997-01-11 19:29:30 +00:00
Guido van Rossum f22d7e2c69 On Windows, -u implies binary mode for stdin/stdout
(as well as unbuffered stdout/stderr).
1997-01-11 19:28:55 +00:00
Guido van Rossum 919cf1aff1 New, better hash for floating point and complex 1997-01-11 19:26:21 +00:00
Guido van Rossum 265b5b3f03 Use new struct which supports standardized sizes 1997-01-11 19:22:11 +00:00
Guido van Rossum 88b85d4f63 Add __len__ method 1997-01-11 19:21:33 +00:00
Guido van Rossum afe3ebfa5c Use newer struct, which handles unsigned long right 1997-01-11 19:21:09 +00:00
Guido van Rossum fe27a50847 Added warning that gethostname() doesn't always return fqdn, and show
how to find it using gethostbyaddr().
1997-01-11 17:04:56 +00:00
Barry Warsaw 5709dcfaec The usual return-value and memory management checks. I'm not planning
a test for this module though (it does compile at least on Solaris
2.5)
1997-01-10 18:42:18 +00:00
Fred Drake 4de02d9722 (ftplib.py): Added parse150() function and FTP.ntransfercmd(). This allows
access to the expected size of a transfer when available.
1997-01-10 18:26:09 +00:00
Guido van Rossum 80dd9b6672 Subtle change to hex/oct formatting so the largest negative number
does not receive a minus sign.
1997-01-10 17:39:30 +00:00
Jack Jansen 8dc797d1f8 Return preferences of unknown type as opaque data 1997-01-10 15:25:47 +00:00
Jack Jansen 466be801fd Minor fix to get non-gusi python to compile again 1997-01-10 15:25:06 +00:00
Jack Jansen 8dc8a6e4be Mac-specific version of getmtime (for non-GUSI Python, which needs
different include files)
1997-01-10 15:24:19 +00:00
Fred Drake 41dc09d10e (Tkinter.py): Add support for Frame(w, class_="classname") as an alternative
to Frame(w, cnf={"class": "classname"}).  I think this is the only
	widget other than Toplevel that needs to be concerned about setting
	the widget's class (-class must be the first option on the Tcl
	widget creation command).
1997-01-10 15:13:12 +00:00
Barry Warsaw 43a476ac00 Formatting changes, plus memory management in initsyslog() 1997-01-09 23:51:21 +00:00
Barry Warsaw 73a75eb79b initsignal(): Py_DECREFs really should be Py_XDECREFs in case the
PyInt_FromLong's failed.
1997-01-09 23:50:28 +00:00
Barry Warsaw 42185a2d7a Plugged a couple of potential return value problems, memory leaks, and
descriptor leaks.
1997-01-09 22:29:57 +00:00
Barry Warsaw 2dc8c2c26b Primarily formatting changes, but I also plugged a couple of potential
return value problems, memory leaks, and descriptor leaks.
1997-01-09 22:29:12 +00:00
Barry Warsaw 4bc9d39560 Nailed a couple of memory leaks, caught by Purify. 1997-01-09 22:22:05 +00:00
Jack Jansen 4b76ba3280 High-level interface to Internet Config
(and readability fix to icgluetest.py)
1997-01-09 16:26:23 +00:00
Barry Warsaw 5bc697dd31 Test of the sunaudiodev module -- it simply plays a sound if it can
find one and doesn't output any data that can be verified.  If it
can't find a sound file by looking in the standard Solaris locations
(which we can extend later), it raises an ImportError.
1997-01-07 21:05:29 +00:00
Barry Warsaw dce1005908 Added an os._exit(0) in the parent so we don't have two test processes
after test_socket.py is run!
1997-01-07 21:02:06 +00:00
Jack Jansen 52e87f3773 Added icglue modules and (optionally) NumPy and PIL extensions 1997-01-07 16:24:18 +00:00
Jack Jansen b28efe669c - Added optional profiling support
- Added Internet Config interface
- Use different ports of zlib and libpng
1997-01-07 16:22:39 +00:00