]>
granicus.if.org Git - python/log
Barry Warsaw [Tue, 14 Jan 1997 17:11:02 +0000 (17:11 +0000)]
Raise ConversionError instances the new fangled way, e.g.:
raise ConversionError, msg
where `msg' is passed as the argument to the constructor.
Guido van Rossum [Tue, 14 Jan 1997 15:43:41 +0000 (15:43 +0000)]
Increased buffer sizes used by hex() and oct() -- on 64-bit or 128-bit
machines, the string may get longer than 20 characters!
Barry Warsaw [Mon, 13 Jan 1997 23:03:54 +0000 (23:03 +0000)]
Output for test of the timing module
Barry Warsaw [Mon, 13 Jan 1997 23:03:07 +0000 (23:03 +0000)]
Test of the timing module
Barry Warsaw [Mon, 13 Jan 1997 22:57:42 +0000 (22:57 +0000)]
Renamed.
Barry Warsaw [Mon, 13 Jan 1997 22:54:27 +0000 (22:54 +0000)]
Use the new regrtest harness
Barry Warsaw [Mon, 13 Jan 1997 22:44:55 +0000 (22:44 +0000)]
Formatting, and minor error detection
Barry Warsaw [Mon, 13 Jan 1997 22:36:29 +0000 (22:36 +0000)]
updated the hex(-16) test since hex() of a signed literal has changed.
Barry Warsaw [Mon, 13 Jan 1997 22:36:03 +0000 (22:36 +0000)]
updated the oct(-100) test since oct() of a signed literal has changed.
Barry Warsaw [Mon, 13 Jan 1997 22:09:43 +0000 (22:09 +0000)]
initthread(): Removed extraneous Py_INCREF(ThreadError)
Barry Warsaw [Mon, 13 Jan 1997 20:53:46 +0000 (20:53 +0000)]
Catch sunaudiodev.error on open() and re-raise TestFailed exception.
Barry Warsaw [Mon, 13 Jan 1997 20:50:40 +0000 (20:50 +0000)]
Oops, remove debugging statements
Barry Warsaw [Mon, 13 Jan 1997 20:34:44 +0000 (20:34 +0000)]
A slightly better test of sunaudiodev module. Include the audio data
in the distribution.
Barry Warsaw [Mon, 13 Jan 1997 19:35:39 +0000 (19:35 +0000)]
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().
Guido van Rossum [Sun, 12 Jan 1997 20:14:01 +0000 (20:14 +0000)]
Skip empty paths read from the registry.
Guido van Rossum [Sun, 12 Jan 1997 20:02:04 +0000 (20:02 +0000)]
Fix leak involving BuildValue("...O...").
Guido van Rossum [Sun, 12 Jan 1997 19:48:03 +0000 (19:48 +0000)]
Changed hex() and oct() again, to never emit a '-' sign.
Guido van Rossum [Sat, 11 Jan 1997 19:59:17 +0000 (19:59 +0000)]
Add the Lib/MACHDEP subdir to TESTPATH.
Guido van Rossum [Sat, 11 Jan 1997 19:29:30 +0000 (19:29 +0000)]
Add entries for cStringIO and cPickle
Guido van Rossum [Sat, 11 Jan 1997 19:28:55 +0000 (19:28 +0000)]
On Windows, -u implies binary mode for stdin/stdout
(as well as unbuffered stdout/stderr).
Guido van Rossum [Sat, 11 Jan 1997 19:26:21 +0000 (19:26 +0000)]
New, better hash for floating point and complex
Guido van Rossum [Sat, 11 Jan 1997 19:22:11 +0000 (19:22 +0000)]
Use new struct which supports standardized sizes
Guido van Rossum [Sat, 11 Jan 1997 19:21:33 +0000 (19:21 +0000)]
Add __len__ method
Guido van Rossum [Sat, 11 Jan 1997 19:21:09 +0000 (19:21 +0000)]
Use newer struct, which handles unsigned long right
Guido van Rossum [Sat, 11 Jan 1997 17:04:56 +0000 (17:04 +0000)]
Added warning that gethostname() doesn't always return fqdn, and show
how to find it using gethostbyaddr().
Barry Warsaw [Fri, 10 Jan 1997 18:42:18 +0000 (18:42 +0000)]
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)
Fred Drake [Fri, 10 Jan 1997 18:26:09 +0000 (18:26 +0000)]
(ftplib.py): Added parse150() function and FTP.ntransfercmd(). This allows
access to the expected size of a transfer when available.
Guido van Rossum [Fri, 10 Jan 1997 17:39:30 +0000 (17:39 +0000)]
Subtle change to hex/oct formatting so the largest negative number
does not receive a minus sign.
Jack Jansen [Fri, 10 Jan 1997 15:25:47 +0000 (15:25 +0000)]
Return preferences of unknown type as opaque data
Jack Jansen [Fri, 10 Jan 1997 15:25:06 +0000 (15:25 +0000)]
Minor fix to get non-gusi python to compile again
Jack Jansen [Fri, 10 Jan 1997 15:24:19 +0000 (15:24 +0000)]
Mac-specific version of getmtime (for non-GUSI Python, which needs
different include files)
Fred Drake [Fri, 10 Jan 1997 15:13:12 +0000 (15:13 +0000)]
(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).
Barry Warsaw [Thu, 9 Jan 1997 23:51:21 +0000 (23:51 +0000)]
Formatting changes, plus memory management in initsyslog()
Barry Warsaw [Thu, 9 Jan 1997 23:50:28 +0000 (23:50 +0000)]
initsignal(): Py_DECREFs really should be Py_XDECREFs in case the
PyInt_FromLong's failed.
Barry Warsaw [Thu, 9 Jan 1997 22:29:57 +0000 (22:29 +0000)]
Plugged a couple of potential return value problems, memory leaks, and
descriptor leaks.
Barry Warsaw [Thu, 9 Jan 1997 22:29:12 +0000 (22:29 +0000)]
Primarily formatting changes, but I also plugged a couple of potential
return value problems, memory leaks, and descriptor leaks.
Barry Warsaw [Thu, 9 Jan 1997 22:22:05 +0000 (22:22 +0000)]
Nailed a couple of memory leaks, caught by Purify.
Jack Jansen [Thu, 9 Jan 1997 16:26:23 +0000 (16:26 +0000)]
High-level interface to Internet Config
(and readability fix to icgluetest.py)
Barry Warsaw [Tue, 7 Jan 1997 21:05:29 +0000 (21:05 +0000)]
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.
Barry Warsaw [Tue, 7 Jan 1997 21:02:06 +0000 (21:02 +0000)]
Added an os._exit(0) in the parent so we don't have two test processes
after test_socket.py is run!
Jack Jansen [Tue, 7 Jan 1997 16:24:18 +0000 (16:24 +0000)]
Added icglue modules and (optionally) NumPy and PIL extensions
Jack Jansen [Tue, 7 Jan 1997 16:22:39 +0000 (16:22 +0000)]
- Added optional profiling support
- Added Internet Config interface
- Use different ports of zlib and libpng
Jack Jansen [Tue, 7 Jan 1997 16:19:42 +0000 (16:19 +0000)]
Added profiler initialization/finalization code (if __profile__ is defined)
Jack Jansen [Tue, 7 Jan 1997 16:18:32 +0000 (16:18 +0000)]
Low-level interface to Internet Config (to be augmented by nice Python
wrapper shortly)
Jack Jansen [Tue, 7 Jan 1997 16:17:44 +0000 (16:17 +0000)]
Minimal test of icglue module
Guido van Rossum [Mon, 6 Jan 1997 23:01:02 +0000 (23:01 +0000)]
Document that sys.builtin_module_names is now a tuple.
Guido van Rossum [Mon, 6 Jan 1997 22:59:08 +0000 (22:59 +0000)]
cPickle, version 0.1.
Guido van Rossum [Mon, 6 Jan 1997 22:57:52 +0000 (22:57 +0000)]
Jim's latest version.
Guido van Rossum [Mon, 6 Jan 1997 22:56:52 +0000 (22:56 +0000)]
Check for duplicate keyword arguments at compile time.
Guido van Rossum [Mon, 6 Jan 1997 22:55:54 +0000 (22:55 +0000)]
Make builtin_module_names a tuple instead of a list.
Guido van Rossum [Mon, 6 Jan 1997 22:53:20 +0000 (22:53 +0000)]
Fix overflow test for multiply to catch some cases it missed.
Added warning about dependency of float/complex hash on int hash.
Guido van Rossum [Mon, 6 Jan 1997 22:50:12 +0000 (22:50 +0000)]
Jim's latest version
Barry Warsaw [Mon, 6 Jan 1997 22:48:32 +0000 (22:48 +0000)]
New strop_joinfields implementation, highly optimized for Lists. All
other sequences use the Sequence protocol from the abstract API. The
algorithm has changed so that only one pass through the sequences are
made.
Barry Warsaw [Mon, 6 Jan 1997 22:46:45 +0000 (22:46 +0000)]
New output file for strop test
Barry Warsaw [Mon, 6 Jan 1997 22:46:07 +0000 (22:46 +0000)]
Added a couple of strop.join() tests for large lists and long items
within the lists (new output file to be checked in shortly).
Barry Warsaw [Mon, 6 Jan 1997 22:44:27 +0000 (22:44 +0000)]
added PyTuple_GET_SIZE macro
Barry Warsaw [Mon, 6 Jan 1997 22:42:50 +0000 (22:42 +0000)]
added PyString_GET_SIZE macro
for both PyString_GET_SIZE and PyString_AS_STRING, cast first argument
to a PyStringObject*
Barry Warsaw [Mon, 6 Jan 1997 22:42:00 +0000 (22:42 +0000)]
added PyList_GET_SIZE macro
for both PyList_GET_SIZE and PyList_GET_ITEM, cast first argument to a
PyListObject*
Guido van Rossum [Mon, 6 Jan 1997 16:50:09 +0000 (16:50 +0000)]
Rewrote translate() as follows:
- 'delete' is a C++ keyword; use 'del_table' instead
- apply Py_CHARMASK() to del_table[i] before using it as an index
*** this fixes a bug that was just reported on the list ***
- if the translation didn't make any changes, INCREF and return
the original string
- when del_table is empty or omitted, don't copy the translation
table to a table of ints (should be a bit faster)
Rewrote maketrans() to avoid copying the table (2-3% faster).
Barry Warsaw [Fri, 3 Jan 1997 23:46:51 +0000 (23:46 +0000)]
strop_upper(), strop_lower(): shared code version caused to much of a
performance hit. Urg. Reverted.
strop_joinfields(): re-instate optimizations for lists and tuples, but
support arbitrary other kinds of sequences as well.
Guido van Rossum [Fri, 3 Jan 1997 23:39:26 +0000 (23:39 +0000)]
Fix the following bug:
- When dragging the mouse in either listbox, the *first* entry
clicked on is selected rather than the last (but the last one is
highlighted).
This is done by changing the bindtags so that our binding is executed
after the default binding (which sets the 'active' index to the last
item selected), and using 'active' instead of 'anchor' as the index to
ask for.
Roger E. Masse [Fri, 3 Jan 1997 23:00:51 +0000 (23:00 +0000)]
Renamed but not well tested.
Roger E. Masse [Fri, 3 Jan 1997 23:00:13 +0000 (23:00 +0000)]
This is a very inobstrusive test for the existance of the SGI cd module
and all it's attributes. More comprehensive examples can be found in
Demo/cd and require that you have a CD and a CD ROM drive
Roger E. Masse [Fri, 3 Jan 1997 22:58:43 +0000 (22:58 +0000)]
Output file for test_cd.py
Barry Warsaw [Fri, 3 Jan 1997 22:45:34 +0000 (22:45 +0000)]
Several changes:
- split_whitespace(): slightly better memory ref handling when errors
occur.
- strop_joinfields(): First argument can now be any sequence-protocol
conformant object.
- strop_find(), strop_rfind(): Use PyArg_ParseTuple for optional
arguments
- strop_lower(), strop_upper(): Factor logic into a common function
do_casechange().
- strop_atoi(), strop_atol(): Use PyArg_ParseTuple.
- strop_maketrans(): arguments used to be optional, although the
documentation doesn't reflect this. Make the source conform to the
docs. Arguments are required, but two empty strings will return the
identity translation table.
- General pass fixing up formatting, and checking for return values.
Guido van Rossum [Fri, 3 Jan 1997 22:42:08 +0000 (22:42 +0000)]
Some small changes.
Raise ImportError instead of SystemExit when $DISPLAY is not set, so
regrtest.py will do the right thing.
Add a call to gl.clear() to clear the window before drawing in it.
Add some verbose prints for completeness.
Use gl.v2i() for the coordinates of one of the lines, for a little bit
of variety.
Reduce the time the window is displayed from 5 to 2 seconds.
Roger E. Masse [Fri, 3 Jan 1997 22:40:34 +0000 (22:40 +0000)]
Renamed, but not throughly tested.
Roger E. Masse [Fri, 3 Jan 1997 22:39:31 +0000 (22:39 +0000)]
Output file for test_al.py
Roger E. Masse [Fri, 3 Jan 1997 22:39:03 +0000 (22:39 +0000)]
This is a very inobstrusive test for the existance of the al module and all
it's attributes. More comprehensive examples can be found in Demo/al
Roger E. Masse [Fri, 3 Jan 1997 22:17:11 +0000 (22:17 +0000)]
Renamed, but untested.
Guido van Rossum [Fri, 3 Jan 1997 21:05:44 +0000 (21:05 +0000)]
Added PyLong*UnsignedLong and PyCobject interfaces.
Barry Warsaw [Fri, 3 Jan 1997 20:19:05 +0000 (20:19 +0000)]
very minor typo
Barry Warsaw [Fri, 3 Jan 1997 20:04:09 +0000 (20:04 +0000)]
Output of socket module test.
Barry Warsaw [Fri, 3 Jan 1997 20:03:32 +0000 (20:03 +0000)]
Test of the socket module. The following functions and methods are
not currently tested (or even touched):
# socket.fromfd()
# sktobj.getsockopt()
# sktobj.recvfrom()
# sktobj.sendto()
# sktobj.setblocking()
# sktobj.setsockopt()
# sktobj.shutdown()
Roger E. Masse [Fri, 3 Jan 1997 19:26:27 +0000 (19:26 +0000)]
Renamed, reindented. (was already partially complete)
Guido van Rossum [Fri, 3 Jan 1997 19:21:53 +0000 (19:21 +0000)]
'I' and 'L' now always return a Python long.
Guido van Rossum [Fri, 3 Jan 1997 19:20:52 +0000 (19:20 +0000)]
Added unsigned data formats (B, H, I, L).
Roger E. Masse [Fri, 3 Jan 1997 19:20:17 +0000 (19:20 +0000)]
Updated to include the verbose flag from test_support
Guido van Rossum [Fri, 3 Jan 1997 19:09:47 +0000 (19:09 +0000)]
Add new formats B, H, I, L for unsigned data types (analogous to the
recent changes in the struct module).
Guido van Rossum [Fri, 3 Jan 1997 19:08:16 +0000 (19:08 +0000)]
Changed the ``add/sub_offset'' hacks for dealing with C's unsigned
int/long types, and use the new PyLong_FromUnsignedLong() and
PyLong_AsUnsignedLong() interfaces instead.
Semantic change: the 'I' format will now always return a long int.
Guido van Rossum [Fri, 3 Jan 1997 19:00:37 +0000 (19:00 +0000)]
Change the ``calcsize*3'' test to be portable to 64-bit machines.
Roger E. Masse [Fri, 3 Jan 1997 18:51:01 +0000 (18:51 +0000)]
Reindented.
Barry Warsaw [Fri, 3 Jan 1997 17:18:10 +0000 (17:18 +0000)]
Check of return values and proper error handling.
Guido van Rossum [Fri, 3 Jan 1997 17:14:46 +0000 (17:14 +0000)]
Added PyLong_FromUnsignedLong() and PyLong_AsUnsignedLong().
Barry Warsaw [Fri, 3 Jan 1997 16:01:20 +0000 (16:01 +0000)]
Output for signal module test
Guido van Rossum [Fri, 3 Jan 1997 15:54:36 +0000 (15:54 +0000)]
Add $(srcdir) in front of the test program's name (else it won't work
when $(srcdir) isn't '.', i.e. when using VPATH).
Guido van Rossum [Fri, 3 Jan 1997 15:40:33 +0000 (15:40 +0000)]
Fill pad bytes with zeros (fixing a bug dating from the very first version!).
Guido van Rossum [Fri, 3 Jan 1997 04:20:09 +0000 (04:20 +0000)]
Describe standard float/double support.
Rewrite example to be an interactive session
Barry Warsaw [Fri, 3 Jan 1997 00:26:28 +0000 (00:26 +0000)]
Scratch the ears of gcc -Wall.
Barry Warsaw [Fri, 3 Jan 1997 00:15:03 +0000 (00:15 +0000)]
Added declaration for PyErr_SetInterrupt.
Barry Warsaw [Fri, 3 Jan 1997 00:14:25 +0000 (00:14 +0000)]
Several changes:
- Conform to standard Python C coding styles.
- All static symbols were renamed and shorted.
- Eyeballed all return values and memory references.
- Fixed a bug in signal.pause() so that exceptions raised in signal
handlers are now properly caught after pause() returns.
- Removed SIGCPU and SIGFSZ. We surmise that these were typos for the
previously missing SIGXCPU and SIGXFSZ.
Guido van Rossum [Fri, 3 Jan 1997 00:09:46 +0000 (00:09 +0000)]
Added f/d tests for specific byte orders.
Guido van Rossum [Thu, 2 Jan 1997 23:23:20 +0000 (23:23 +0000)]
Ok, ok, I've fixed gradual underflow on packing too.
Still don't know what to do with Inf/NaN, so I raise an exception on
pack(), and something random decided by ldexp() will happen on
unpack().
Guido van Rossum [Thu, 2 Jan 1997 22:52:15 +0000 (22:52 +0000)]
Use the new struct module's ability to pack and unpack standardized
data formats. The _xdr module is no longer used, since struct
supports the required IEEE floats and doubles.
(I have one doubt about not using _xdr. The struct module doesn't
handle Inf, NaN and gradual underflow correctly. If the _xdr module
does these things better, it may still have a (small) competitive
advantage. On the other hand, since not all platforms support IEEE
floating point, it's not clear that it would be a good idea to ever
transfer Inf or NaNs. Gradual underflow can be fixed in the struct
module.
Guido van Rossum [Thu, 2 Jan 1997 22:31:07 +0000 (22:31 +0000)]
Oops -- unpack float/double didn't do the right thing if e==0.
Guido van Rossum [Thu, 2 Jan 1997 22:21:36 +0000 (22:21 +0000)]
Support float and double in non-native formats.
These use the ANSI/IEEE standard, which is also used by XDR;
so the _xdr module may become obsolete.
Barry Warsaw [Thu, 2 Jan 1997 20:36:36 +0000 (20:36 +0000)]
rotorobj_setkey(): A single string argument is now required (i.e. no
long optional with nearly-no-op missing).
Barry Warsaw [Thu, 2 Jan 1997 20:02:44 +0000 (20:02 +0000)]
<rotorobj>.setkey() now requires exactly one argument
Barry Warsaw [Thu, 2 Jan 1997 20:01:44 +0000 (20:01 +0000)]
Switched over to use the new testregr.py test harness.
Barry Warsaw [Thu, 2 Jan 1997 19:48:00 +0000 (19:48 +0000)]
setkey method's argument is no longer optional (it used to be a no-op
when missing).