Commit Graph

265 Commits

Author SHA1 Message Date
Guido van Rossum b3b09c97ce added builtin b/w compat module.
changed testing of exec.
1993-10-22 14:24:22 +00:00
Guido van Rossum b37954f917 Added missing "import os" to pdb.help() 1993-10-22 13:57:38 +00:00
Guido van Rossum e61fa0a1e4 * profile.py, pdb.py: added help() function
* builtin.py: b/w compat for builtin -> __builtin__ name change
* string.py: added atof() and atol() and corresponding exceptions
* test_types.py: added test for list sort with  user comparison function
1993-10-22 13:56:35 +00:00
Sjoerd Mullender 35fe6ec4cf Not everyone has Guido's bin in his/her PATH... 1993-10-11 12:39:15 +00:00
Sjoerd Mullender be80e0e83e Instead of single clicks, use double clicks to get the instance window. 1993-10-01 14:39:45 +00:00
Sjoerd Mullender 148644d5ac WDB enhancement: Click once on a line with a class instance in the
local or global variables list and you get a window with the instance
variable of the class instance.  This list is of course automatically
kept up to date.
1993-10-01 14:29:45 +00:00
Sjoerd Mullender c9d73d1f64 Implemented support for CDDB_PATH and CDDB_WRITE_DIR environment
variables.
Added auxiliary routine tochash to convert a table-of-contents to a
hashed toc.
1993-09-27 12:36:01 +00:00
Sjoerd Mullender 4150ede53c Fixed dealing with faulty COMM chunks. 1993-08-26 14:12:07 +00:00
Sjoerd Mullender 4fddf33c87 XEvent.py: Added support for ExposeEvent.
profile.py: Some speed improvements (I hope).
rect.py: Bug fix in union().
1993-08-25 14:09:01 +00:00
Guido van Rossum 8e2ec56cbc * pdb.py: set 'privileged' property when evaluating expressions
* string.py: change whitespace to include \r, \v and \f.
  When importing strop succeeds, re-evaluate meaning of letters.
1993-07-29 09:37:38 +00:00
Guido van Rossum df5638662d * posixpath.py: Fix border cases in normpath ('/foo/..' should return '/')
* ftplib.py: made cwd() use 'CDUP' when dirname is '..'
* FL.py: added new constant FL_PLACE_FULLSCREEN
1993-07-06 15:19:36 +00:00
Guido van Rossum 5ef74b8f8e pdb.py, bdb.py, cmd.py: use __init__() instead of init() 1993-06-23 11:55:24 +00:00
Guido van Rossum 5cfa5dfe97 * calendar.py: all libC functionality now moved to built-in time module
* imghdr.py: added jpeg recognition
* torgb.py: added jpeg conversion
* tzparse.py: use functions from time instead of calendar
* whatsound.py: add /ufs/guido/biin/sgi to $PATH when calling 'whatsound'
1993-06-23 09:30:50 +00:00
Guido van Rossum 9b3bc71598 * aifc.py: don't die on invalid MARK chunk
* calendar.py: remove stuff now built in time; some cleanup and
  generalization in the calendar printing
* cmd.py: use __init__.
* tzparse.py: This module is no longer necessary -- use builtin time instead!
1993-06-20 21:02:22 +00:00
Guido van Rossum 52fc1f607e * calendar.py: minor cleanups
* ftplib.py: support __init__ with optional host, port args
* aifc.py: ensure header is written on close even when no data is written
1993-06-17 12:38:10 +00:00
Guido van Rossum e6dc0ca122 Initial revision 1993-06-03 14:39:09 +00:00
Guido van Rossum 17ed1ae163 * toaiff.py: import whatsound instead of sndhdr
* sndhdr.py: renamed to whatsound.py; use new aifc module for AIFF/AIFC
* ftplib.py: added close() (closes without sending QUIT command)
* aifc.py: documented close()
1993-06-01 13:21:04 +00:00
Guido van Rossum d316607732 * ftplib.py: added abort() command (sends oob data).
* Several modules: change "class C(): ..." to "class C: ...".
* flp.py: support for frozen forms.
* Added string.find() which is like index but returns -1 if not found
1993-05-24 14:16:22 +00:00
Guido van Rossum 02cf582e73 Added cwd() 1993-05-17 08:00:02 +00:00
Guido van Rossum 8379ed5f02 Updated because of new opcodes introduced for "fast" local variables. 1993-03-30 19:13:03 +00:00
Guido van Rossum 0023078a0b Added whatis command (third try -- filesystem was full, rcs lock failed) 1993-03-29 11:39:45 +00:00
Guido van Rossum e7113b6b3d * Fix bug in tzparse.py for DST timezone
* Added whatis command to pdb.py
* new module GET.py (GL definitions from <gl/get.h>)
* rect.py: is_empty takes a rect as argument, not two points.
* Added tests for builtin round() [XXX not yet complete!]
1993-03-29 11:30:50 +00:00
Sjoerd Mullender 04321d1e47 Use type(xxx) in stead of except TypeError. 1993-03-29 10:50:29 +00:00
Sjoerd Mullender 8562c4cee6 Added some error checking. 1993-03-29 10:49:59 +00:00
Guido van Rossum c9e340db8d Definitions from <gl/get.h> 1993-03-01 10:11:55 +00:00
Jack Jansen e8a3c28f8d Added new audio library functionality (getstatus, float sample fmts) 1993-02-10 14:10:56 +00:00
Sjoerd Mullender 4ab6ff80ff AWARE.py: New file with definitions for Aware Inc.'s compression
algorithms in cl module.
aifc.py: fixed a small bug.
1993-02-05 13:43:44 +00:00
Guido van Rossum 995c33a2bb aiff.py, calendar.py: change functions taking a tuple to really take a
tuple (now that it makes a difference to Python)
1993-02-05 09:39:16 +00:00
Sjoerd Mullender 3a997279d5 CL.py, clmodule.c: Adapted to new CL library. Lots of new methods.
aifc.py: Several small improvements.  Use new methods from CL module.
1993-02-04 16:43:28 +00:00
Sjoerd Mullender 8d733a00f0 added kludge for buggy soundfiler from SGI; when reading 0 frames,
just set file pointer correctly instead of returning the complete
file.
1993-01-29 12:01:00 +00:00
Guido van Rossum 35fb82a33f * os.py: _exit doesn't exist in all variations of posix
* Added fcmp() to test_support.py and use it in test*.py
1993-01-26 13:04:43 +00:00
Sjoerd Mullender 93f0740073 Fixed a bug where the library inadvertently skipped over the sound
data.
Pass an extra parameter to the compression library.
1993-01-26 09:24:37 +00:00
Sjoerd Mullender 7564a641e5 Found and fixed a few bugs in the handling of audio files with MARKs. 1993-01-22 14:26:28 +00:00
Sjoerd Mullender eeabe7eb35 New module aifc to read and write AIFF-C and AIFF files. See
(extensive) comments in the file for usage.
1993-01-22 12:53:11 +00:00
Guido van Rossum 80530ce875 * Add some more tests for numbers
* mainloop.py: don't use select unless absolutely necessary (for Mac)
1993-01-21 15:36:40 +00:00
Guido van Rossum fea2af1e9b * More changes due to stricter argument passing rules
* Fixed calendar.py, mimetools.py, whrandom.py to cope with time.time()
  returning a floating point number.  (And fix old bug in calendar)
* Add recursion level to mainloop.mainloop(), to make it reentrant.
1993-01-04 09:16:51 +00:00
Sjoerd Mullender 4fff13faca CL.py: adapted to newest version of CL library.
cdplayer.py: It is now also possible to give the CD's TOC as argument
to init().  The TOC is a string consisting of 2 digits giving the
number of tracks and then for each track the length of the track as
number of minutes and number of seconds (2 digits each).

cddb.py: Interface to the .cddb directory.  Usage is the same as for
cdplayer.py.
1992-12-14 13:16:55 +00:00
Guido van Rossum 89a78697b8 * Got entirely rid of path.py.
* Many modules: fixes for new, stricter, argument passing rules
  (most changes were automatic ones -- not all of this is tested!).
* gwin.py: now uses mainloop.py for its main loop and window admin.
* mainloop.py: always call dispatch() with event as a tuple!
* Fix bug in pdb's 'clear' command -- don't set the bpt but clear it!
1992-12-14 12:57:56 +00:00
Guido van Rossum 6209b97df4 Added output from testall run, for autotest.py. 1992-11-27 22:54:49 +00:00
Guido van Rossum 85f1820ee1 Added some new tests and two new files for testing: test_types.py
(testing operations on built-in types) and autotest.py (automatic
regression testing).
1992-11-27 22:53:50 +00:00
Guido van Rossum 18fc5696c8 * mainloop.py: added facility for calling select(). Also added
embryonic facility for pseudo-modal dialogs.
* stdwinevents.py: added modifier masks for key/mouse events
* renamed exceptions in nntplib.py
* Changed string.join() to call string.joinfields() to profit of
  strop.joinfields()
1992-11-26 09:17:19 +00:00
Guido van Rossum 21974798ce Added all_errors, list of all possible exceptions. 1992-11-06 13:34:17 +00:00
Guido van Rossum c68a40183b Use getsockname() if it exists 1992-11-05 23:01:42 +00:00
Guido van Rossum c567c60135 Added much functionality, changed some names (errors, login). 1992-11-05 22:22:37 +00:00
Guido van Rossum c629d34c4f * change default line numbers for 'list' in pdb.py
* changed eval() into getattr() in cmd.py
* added dirname(), basename() and (dummy) normath() to macpath.py
* renamed nntp.py to nntplib.py
* Made string.index() compatible with strop.index()
* Make string.atoi('') raise string.atoi_error rather than ValueError
* Added dirname() and normpath() to posixpath.
1992-11-05 10:43:02 +00:00
Guido van Rossum 1115ab2a74 Initial revision 1992-11-04 15:51:30 +00:00
Guido van Rossum 2db91358de Misc changes and new modules. whrandom is "objectified". SOCKET.py
is moved to the sgi subdirectory.
1992-10-18 17:09:59 +00:00
Sjoerd Mullender e7daaa3a01 New module "CL" (Compression Library) for Irix 4.0.5 and higher. 1992-09-24 10:40:03 +00:00
Guido van Rossum 7a461e5aaf New module regsub contains sub(), gsub() and split() as in nawk.
string.splitfields(s, '') now returns [s] as split() in nawk.
Added _exit to exported functions of os.
1992-09-20 21:41:09 +00:00
Guido van Rossum 3577113d83 Added post_mortem() and pm() interfaces to pdb and wdb.
Added colorsys.py (color system conversions).
SV.py: new version for new svideo.h (Sjoerd).
DEVICE.py: added VIDEO event type.
1992-09-08 11:59:04 +00:00