Commit Graph

14069 Commits

Author SHA1 Message Date
Guido van Rossum 1e9e400ba7 Added getdouble, getboolean.
Removed redundant global statements
getboolean returns None if argument is empty
AtInsert() concatenates optional arguments after 'insert'
1994-06-20 09:09:51 +00:00
Guido van Rossum 5e8d3724fe Added getvar, getint, lower, tkraise==lift to Misc class 1994-06-20 08:12:01 +00:00
Guido van Rossum 1846882254 Initial revision 1994-06-20 07:49:28 +00:00
Guido van Rossum 169b61295a Constants from <sys/wait.h> (IRIX 5 version) 1994-06-03 15:39:39 +00:00
Guido van Rossum d3b6842d9f added barrier test (by Tim Peters) 1994-05-23 12:17:36 +00:00
Guido van Rossum f3b4903a9f dospath: fix by Amrit (don't normalize glob patterns away)
ftplib: get rid of non-auto port assignment
1994-05-23 12:17:05 +00:00
Guido van Rossum f624666eb3 Generate some files automatically from system files 1994-05-23 12:15:33 +00:00
Guido van Rossum c762becaf5 Changes by Jaap -- added 'fileopen' method 1994-05-18 11:08:10 +00:00
Guido van Rossum 78f8dea44a New module by Jaap V 1994-05-18 11:07:44 +00:00
Guido van Rossum c95f7248d6 Script to regenerate FCNTL.py, IN.py, SOCKET.py 1994-05-17 09:28:58 +00:00
Guido van Rossum 2922c6dabb Changes to use default argument values where possible 1994-05-06 14:28:19 +00:00
Guido van Rossum 19806f4ce2 Module to lock open files using fcntl() 1994-05-03 14:46:18 +00:00
Guido van Rossum c7b6882326 Jack's module for parsing UNIX mailbox files 1994-04-28 09:53:33 +00:00
Guido van Rossum 590b289672 Added tests for missing host to open_http and open_gopher 1994-04-18 09:39:56 +00:00
Guido van Rossum cc54417d1a Module to test threads 1994-04-14 20:28:41 +00:00
Guido van Rossum 7c6ebb572e Renamed urlopen.py to urllib.py. 1994-03-22 12:05:32 +00:00
Guido van Rossum cc32ac9704 Use float constants directly; cosmetic changes; initialize largest
correctly; allow test(N) to set number of calls in the tests.
1994-03-15 16:10:24 +00:00
Guido van Rossum 95bfcda3e0 Added gauss() (same as normal but twice as fast) and betavariate();
print more statistics in test_generator()
1994-03-09 14:21:05 +00:00
Guido van Rossum ff03b1ae5b Random variable generators 1994-03-09 12:55:02 +00:00
Guido van Rossum b19d86232b Search for test files in sys.path 1994-03-09 12:54:32 +00:00
Guido van Rossum d1df83ba6c urlopen: add basejoin() function.
addpack: new module to add packages to sys.path.
1994-03-07 11:45:36 +00:00
Guido van Rossum d66acb45f8 avoid crash in open_ftp when no host in url 1994-03-04 12:10:33 +00:00
Guido van Rossum 67e22c2684 use caching of temp files; added cleanup 1994-03-02 11:28:34 +00:00
Guido van Rossum 914973a0be Added __repr__ to addbase class; delete more objects 1994-02-24 15:55:43 +00:00
Guido van Rossum d5b9ea1c67 Added __del__(), close(), cleanup(), retrieve() and open_local_file() 1994-02-24 13:50:39 +00:00
Guido van Rossum 555915a90b Added ntpath.py (for os.py when used with Windows NT) 1994-02-24 11:32:59 +00:00
Guido van Rossum 749057be5a Redesigned as a class 1994-02-22 19:03:38 +00:00
Guido van Rossum 76ca3c17f0 Fix bug with somtimes uninitialized port 1994-02-22 16:06:02 +00:00
Guido van Rossum 23acc9590c Towards a standard access mechanism for URLs. 1994-02-21 16:36:04 +00:00
Guido van Rossum 3ed23cc158 aifc, sunau: make rate an int; os: restruct; ospath: obsolete; rfc822:
date and addr parsing; string: force result of atof to float and
support atoi, atol, atof in strop; tzparcs: don't call test().
1994-02-15 15:57:15 +00:00
Sjoerd Mullender b513c74b1b wave.py: module to read and write .wav files with the same interface
as aifc.py and sunau.py.
sunau.py: small change in comment (au -> sunau).
1994-02-03 14:19:21 +00:00
Guido van Rossum 3db6ebcc3f Use __builtin__ instead of builtin 1994-01-28 09:59:35 +00:00
Sjoerd Mullender ffe9490d79 aifc.py: framerate should be an int.
sunau.py: should convert number of frames correctly to number of bytes
	when reading.
1994-01-28 09:56:05 +00:00
Guido van Rossum b90bdebf19 sndhdr.py: restored lost file; audiodev.py: import platform specific
modules only when needed
1994-01-14 16:46:14 +00:00
Guido van Rossum fa7fcb93e9 Add test code for audioop and rgbimg (includes three binary files!) 1994-01-12 09:55:11 +00:00
Sjoerd Mullender e03bf9c497 Removed now useless convert functions. 1994-01-06 17:00:04 +00:00
Sjoerd Mullender 49c2df16f5 Removed silly dependence on AL module. 1994-01-06 16:35:34 +00:00
Guido van Rossum 80e32bf546 Added Makefile with clean and clobber targets 1994-01-04 23:24:22 +00:00
Sjoerd Mullender 721cd289ef Specified _framesize twice in access statement. 1994-01-03 10:35:11 +00:00
Guido van Rossum e30cb84ed2 Initial revision 1993-12-29 16:37:25 +00:00
Guido van Rossum 70f1418d35 New files (not really...) 1993-12-29 16:35:41 +00:00
Guido van Rossum dd8cb446e1 Some minute changes. 1993-12-29 15:33:08 +00:00
Sjoerd Mullender 2a45141741 aifc.py, sunau.py: Adapted comments; added access statements.
SUNAUDIODEV.py: Added some constants for Solaris.
1993-12-20 09:36:01 +00:00
Guido van Rossum 6ed9df2641 * aifc.py (Aifc_write): fix bogus reference to filename 1993-12-17 16:43:43 +00:00
Guido van Rossum 7bc817d5ba * Mass change: get rid of all init() methods, in favor of __init__()
constructors.  There is no backward compatibility.  Not everything has
  been tested.
* aiff.{py,doc}: deleted in favor of aifc.py (which contains its docs as
  comments)
1993-12-17 15:25:27 +00:00
Sjoerd Mullender aa14837bd0 Interface to audio hardware for SGI and Sun. 1993-12-17 15:18:37 +00:00
Sjoerd Mullender ad7324c71f Don't close the file explicitly. 1993-12-16 14:02:44 +00:00
Sjoerd Mullender feaa7d296f Don't close the file. 1993-12-16 13:56:34 +00:00
Guido van Rossum 79c85f1778 * wdbframewin.py (re_eval): set __privileged__ in globals so private
variables can still be seen by the debugger
* ftplib.py (retrlines): args should be *args.
* ChangeLog: entries for Sjoerd's addition sunau.py and changes to aiff.py
* test_md5.py: test program for built-in md5 module
1993-12-14 15:54:01 +00:00
Sjoerd Mullender 43bf0bc857 aifc.py: added missing tell() method in AIFC write class;
use audioop module as backup for cl module when reading or
	 writing u-law compressed files.
sunau.py: interface with the same methods as aifc for Sun and NeXT
	  audio files
1993-12-13 11:42:39 +00:00
Guido van Rossum ae3b3a33d8 * test_*.py: new lambda syntax (also affects tests for filter, map,
reduce)
* ftplib.py: added default callback for retrlines; added dir() method
* ftplib.py: don't return self in self.connect(); added hack so that if
  'CDUP' is not understood, 'CWD ..' is tried.
* ftplib.py: second method called init() should have been called
  connect(); if __init__ sees more than one argument, it will also try to
  login().
1993-11-30 13:43:54 +00:00
Guido van Rossum b31c7f732a * test_select.py: (some) tests for built-in select module
* test_grammar.py, testall.out: added test for funny things in string literals
* token.py, symbol.py: definitions used with built-in parser module.
* tokenize.py: added double-quote recognition
1993-11-11 10:31:23 +00:00
Sjoerd Mullender b2e358d433 Use __init__ instead of init.
Also use CDDB_PATH and CDDB_WRITE_DIR environment variables in cddb.py.
1993-11-08 15:10:43 +00:00
Guido van Rossum e65cce5eec * string.py: added rindex(), rfind(); changed index() to interpret
negative start indices starting from the right.
* ftplib.py: debug() -> set_debuglevel(); change demo to use __init__().
* os.py: added execl, execlp, and execvp.
* lambda.py: removed (now that we have built-in map, reduce, bagof, lambda)
* test_b{1,2}.py, testall.out: added tests for bagof, lambda, map, reduce
* commands.py: use os, not posix
* test_grammar.py: make it easy to disable non-portable int overflow tests
* dis.py: don't abuse range()
1993-11-08 15:05:21 +00:00
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
Guido van Rossum 87b74730c3 New module 'colorsys' implements conversions between different color systems. 1992-09-07 09:41:48 +00:00
Sjoerd Mullender da3eee99e8 version for new library 1992-09-03 13:08:04 +00:00
Guido van Rossum 4e16098ce7 Added a _v21 def to FL.py and added two new input field types
Added runcall(func, *args) interfaces to profile.py, bdb.py, pdb.py, wdb.py
Added new module bisect.py and used it in sched.py.
Mostly cosmetic changes to profile.py (changed output format).
1992-09-02 20:43:20 +00:00
Guido van Rossum 354166fa05 Changed to use regex directly instead of regexp. 1992-08-25 12:31:03 +00:00
Guido van Rossum 9022fceae8 New module implementing a multi-everything queue. 1992-08-25 12:30:44 +00:00
Guido van Rossum ae507a42a0 splitfields(s, '') is illegal 1992-08-19 16:49:58 +00:00
Guido van Rossum 732282fa11 Module getattr doesn't exist any more, it's now called newdir. 1992-08-19 16:49:37 +00:00
Guido van Rossum 4732ccf642 Added emacs.py (for misc/py-connect.el).
posixpath.py: added undocumented expanndvars() (expands $VAR in string).
1992-08-09 13:54:50 +00:00
Guido van Rossum 2d4aa4f5d4 Removed *.libs (now in ./sgi);
added gettext() method to TextEdit.py;
fixed string.atoi() to ignore leading zeros.
1992-08-06 22:33:41 +00:00
Sjoerd Mullender 099d923344 new file for SGI Video 1992-08-04 13:47:11 +00:00
Guido van Rossum 741c81a51f New module to support decoding multipart messages (also see mimetools). 1992-07-13 14:40:45 +00:00
Guido van Rossum 01ca336ed1 New modules mimetools and rfc822.
Minor, minor changes to commands.py and sndhdr.py.
1992-07-13 14:28:59 +00:00
Guido van Rossum eb23155a8e Changed calendar.py to define lists of literals instead of tuples.
Got rid of old module 'localtime.py'.
1992-07-09 11:05:12 +00:00
Guido van Rossum 73b715e259 Initial revision 1992-06-03 16:50:01 +00:00
Guido van Rossum 05b55e76f0 Fix pnm test for short files and add X bitmap as recognized type 1992-06-03 16:48:44 +00:00
Guido van Rossum d482e8ad4a Remove reference to obsolete module 'audio' 1992-06-03 16:47:49 +00:00
Guido van Rossum ada67ec3e1 Comment out debug prints (by Sjoerd) 1992-06-03 16:47:24 +00:00
Guido van Rossum 1c34fc7afb Initial revision 1992-05-27 14:06:59 +00:00
Guido van Rossum 9ea0fbc6de Unmerged except and finally clauses 1992-05-06 11:39:49 +00:00
Guido van Rossum 8899a9ca40 Add names for perm bits (S_IREAD etc).
Only extract 4 bits of mode to get the file type
1992-05-06 11:38:27 +00:00
Guido van Rossum e238829359 Add CDDA_DATASIZE to exported constants 1992-05-06 11:38:11 +00:00
Guido van Rossum 509d24aac3 fix a typo in samestat() (ST_DEV, not STD_DEV);
rewrite ismount() to compare stats of path and path/..
1992-05-06 11:36:49 +00:00
Guido van Rossum a3cd071e4c DISK is written with a K 1992-04-23 11:34:39 +00:00
Guido van Rossum 58230c3a05 Changed caching code 1992-04-22 14:33:26 +00:00
Guido van Rossum dee5d8eb04 The getstatus() method of a Readcd instance always calls
self.player.getstatus().
1992-04-22 13:44:48 +00:00
Guido van Rossum f94e309321 Initial revision 1992-04-22 13:24:13 +00:00
Guido van Rossum 8176258421 Initial revision 1992-04-21 15:36:23 +00:00
Guido van Rossum 9a1425d4fd Initial revision 1992-04-13 18:30:07 +00:00
Guido van Rossum fff3a1ee05 Added help() fn; use os.sep 1992-04-06 14:04:58 +00:00
Guido van Rossum 6a1f089420 Use *args syntax instead of +args 1992-04-06 14:03:53 +00:00
Guido van Rossum b59cdd4356 Add separator 1992-04-06 14:03:45 +00:00
Guido van Rossum 33693ea92a '+' no longer accepted for varargs list 1992-04-03 16:33:00 +00:00
Guido van Rossum ceb3ba2afc Different syntax: cannot mix except and finally any more 1992-04-03 16:32:37 +00:00
Guido van Rossum 7084ec8167 getattr() is now built-in; no longer need a class to simulate varargs. 1992-04-02 10:37:02 +00:00
Guido van Rossum aa257d90da use os and os.path 1992-03-31 19:07:25 +00:00
Guido van Rossum bf1710ac5f use std module os 1992-03-31 19:06:54 +00:00
Guido van Rossum d9596e3a79 mac -> os 1992-03-31 19:05:11 +00:00
Guido van Rossum 25d7cafd8a posix -> os 1992-03-31 19:04:48 +00:00
Guido van Rossum 3bc034bb79 Use bitwise ops instead of %; added some warnings and comments 1992-03-31 19:03:19 +00:00
Guido van Rossum e58f98bfcf path -> posixpath 1992-03-31 19:02:55 +00:00
Guido van Rossum 41f9503c11 Mostly rewritten to be more flexible and more portable
./
1992-03-31 19:02:01 +00:00
Guido van Rossum 1a76ef260d Added definition for pardir ('..') 1992-03-31 18:57:28 +00:00
Guido van Rossum c96207abb3 posix -> os 1992-03-31 18:55:40 +00:00
Guido van Rossum a05026b38d 'cat' no longer exists 1992-03-31 18:55:00 +00:00
Guido van Rossum 2684738d2f Renamed to posixpath; changed def'n of split(). 1992-03-31 18:54:35 +00:00
Guido van Rossum 627efd94e9 Some weird forms of try statements are no longer allowed. 1992-03-31 18:54:11 +00:00
Guido van Rossum 6da6aebfdb Initial revision 1992-03-30 12:39:06 +00:00
Guido van Rossum 26e67b0db8 Don't import fl (it tries to initialize GL) but assume it's always v2.0. 1992-03-27 15:14:25 +00:00
Guido van Rossum 6ff2e90c51 Add function to expand tabs. 1992-03-27 15:13:31 +00:00
Guido van Rossum cb7ce349e2 Add a function to return just the line number of a code object. 1992-03-27 15:13:08 +00:00
Guido van Rossum c341c62e81 Search through the module search path.
Add a warning to the top that this is the case.
1992-03-27 15:12:43 +00:00
Guido van Rossum b5a40dcade Initial revision 1992-03-27 15:10:29 +00:00
Guido van Rossum edbfcbd7ef use settrace() intreface 1992-03-27 15:09:46 +00:00
Guido van Rossum 35dcf454e1 Document sys.settrace(). 1992-03-27 15:06:53 +00:00
Guido van Rossum 24e77d429d Commented out debug print statements; be a little more clever
about strings containing backslashes.
1992-03-25 14:53:05 +00:00
Guido van Rossum 10d10ffb1b Change the order in which Floatnumber and Intnumber are tried
so it will correctly recognize floats.
Fix the test program so it works again.
1992-03-16 18:30:24 +00:00
Guido van Rossum 29be3b97a6 Initial revision 1992-03-15 21:37:43 +00:00
Guido van Rossum 465c499544 Added a cache so that the slow parser isn't such a problem in practice. 1992-02-19 14:50:10 +00:00
Guido van Rossum 3bead0984c Initial revision 1992-01-27 17:00:37 +00:00
Guido van Rossum 19a86e72df Added MINHEIGHT. Use self.dict as environment for evaluation. 1992-01-27 17:00:10 +00:00
Guido van Rossum fac6da22ff Added a method "format_stack_entry" to be used by derived classes.
Forget about the temp file.
1992-01-27 16:59:34 +00:00
Guido van Rossum d7d8cd44c1 Don't print repeated commands. 1992-01-27 16:59:04 +00:00
Guido van Rossum 23efba4cd1 Rewritten to use bdb.Bdb as base class. 1992-01-27 16:58:47 +00:00
Guido van Rossum 576136044c Adde getmargin() method to calculate the width of the margin. 1992-01-27 16:58:21 +00:00
Guido van Rossum 6fd42b8e92 Split in TextWindow and SourceWindow.
Count lines in Python.
1992-01-27 16:58:03 +00:00
Guido van Rossum 0bf32e3c78 Split in a number of subtest for easy maintenance and continued Mac support. 1992-01-27 16:57:38 +00:00
Guido van Rossum bd7fd1a225 Use output from h2py. 1992-01-24 12:54:01 +00:00
Guido van Rossum 27060c004e Minor fixes. 1992-01-24 01:12:39 +00:00
Guido van Rossum b53e67837b Initial revision 1992-01-24 01:12:17 +00:00
Guido van Rossum 177dd80799 Experimental version writes the command to a file. 1992-01-24 01:12:00 +00:00
Guido van Rossum babe2bf8f4 Initial revision 1992-01-22 22:21:31 +00:00
Guido van Rossum 7ac1c81f4f Added 'r(et)v(al) command.
Added pdd (post-mortem debugging) method to class Pdb.
1992-01-16 13:55:21 +00:00
Guido van Rossum 6fe08b0fe4 Moved documentation out to pdb.doc file.
Moved class Cmd out to module cmd.py.
Rewrote implementation of stack trace to incorporate traceback objects.
1992-01-16 13:50:21 +00:00
Guido van Rossum cff3454eff Use $TMPDIR if it is set in the environment. 1992-01-14 18:31:56 +00:00
Guido van Rossum a61ff7b160 New implementation method for case conversion. 1992-01-14 18:31:29 +00:00
Guido van Rossum 92df0c67d0 Added to-do list. 1992-01-14 18:30:15 +00:00
Guido van Rossum 7ac4878773 Make nicer comments.
Added expanduser() and normcase() and isabs() and isfile().
1992-01-14 18:29:32 +00:00
Guido van Rossum 31104f4624 Initial revision 1992-01-14 18:28:36 +00:00
Guido van Rossum 599f2ed208 Added 'normcase' function. 1992-01-14 18:28:18 +00:00
Guido van Rossum 3ec6c1d401 Get rid of debug print statement. 1992-01-14 18:27:26 +00:00
Guido van Rossum e9cde31c47 Now uses varargs syntax to grep more than one file. 1992-01-12 23:33:52 +00:00
Guido van Rossum b914257366 Almost complete rewritten. Documentation added.
Simple interface "pdb.run('<statement>')" added.
1992-01-12 23:32:55 +00:00
Guido van Rossum c2ef5c2ded Never return a non-existing pathname.
Rewrote has_magic using a regular expression match.
1992-01-12 23:32:11 +00:00
Guido van Rossum 05e5219f53 Rewritten using regex. 1992-01-12 23:29:29 +00:00
Guido van Rossum 9542c58d45 Use module os.
Split off file cache to module 'linecache'.
1992-01-12 23:27:56 +00:00
Guido van Rossum d6c3f25f3e react to interrupts differently 1992-01-12 23:26:55 +00:00
Guido van Rossum bba77af37a Use module 'os' 1992-01-12 23:26:24 +00:00
Guido van Rossum 921c82401b Initial revision 1992-01-10 14:54:42 +00:00
Guido van Rossum 70083dee12 Bugfix: it choked on an empty argument! 1992-01-09 11:37:07 +00:00
Guido van Rossum bdfcfccbe5 New == syntax 1992-01-01 19:35:13 +00:00
Guido van Rossum 4d8e859e8f Initial revision 1992-01-01 19:34:47 +00:00
Guido van Rossum 42d1f63c54 New == syntax; regs is no longer a method. 1992-01-01 19:33:02 +00:00
Guido van Rossum d4e5a733b2 Cosmetic changes; sabotage 'go' and 'stdwin'; New == syntax. 1992-01-01 19:30:14 +00:00
Guido van Rossum 5fca8a1b0d Adapted to new "regex" module.
Introduced egrep() and emgrep() variants.
Use '==' for equality test.
.,
1991-12-31 00:00:35 +00:00
Guido van Rossum 6c6b78d6bd Initial revision 1991-12-30 16:03:05 +00:00
Guido van Rossum 564f5507c3 y
New class syntax
1991-12-30 16:02:20 +00:00
Guido van Rossum d404569b97 New class syntax 1991-12-30 16:02:10 +00:00
Guido van Rossum 4a3a41f1bb Use 'global' instead of struct kludge. 1991-12-26 13:10:50 +00:00
Guido van Rossum 8fd7eee6db Use new stdwinevents. 1991-12-26 13:06:52 +00:00
Guido van Rossum ccfd6e105b New class syntax.
Use ImportERror
1991-12-26 13:06:39 +00:00
Guido van Rossum ce08448165 New class syntax. 1991-12-26 13:06:29 +00:00
Guido van Rossum decc4b99e1 Use ImportError 1991-12-26 13:06:22 +00:00
Guido van Rossum 1820010c1a New class syntax. 1991-12-26 13:05:52 +00:00
Guido van Rossum 470e7617a9 Use AttributeError. 1991-12-26 13:05:43 +00:00
Guido van Rossum aa3760d91d Use ImportError. 1991-12-26 13:05:14 +00:00
Guido van Rossum 61f9d0d242 Use modern stdwinevent constants. 1991-12-26 13:04:16 +00:00
Guido van Rossum 946749f6fe Use AttributeError 1991-12-26 13:04:02 +00:00
Guido van Rossum 2234bc9101 Use ImportError.
New class syntax.
1991-12-26 13:03:52 +00:00
Guido van Rossum 869100a919 Get rid of BCOMPAT.
New class syntax.
1991-12-26 13:03:39 +00:00
Guido van Rossum bb3753d720 Use Attr*Error.
New class syntax.
1991-12-26 13:03:23 +00:00
Guido van Rossum 4dedbf7197 Use KeyError. 1991-12-26 13:03:14 +00:00
Guido van Rossum 5c5e829a5d Use IOError. 1991-12-26 13:02:59 +00:00
Guido van Rossum 2f242582f7 Use ImportError; New class syntax. 1991-12-26 13:00:45 +00:00
Guido van Rossum 7610599756 Added ZeroDivisionError except clauses. 1991-12-16 13:10:58 +00:00
Guido van Rossum befa2936d0 Attempt at speeding up. 1991-12-16 13:10:14 +00:00
Guido van Rossum a594fabbfa New opcodes: UNPACK_ARG, STORE_GLOBAL, DELETE_GLOBAL, LOAD_LOCAL, LOAD_GLOBAL 1991-12-16 13:09:28 +00:00
Guido van Rossum d39e412482 Now automatically test for V2.0. 1991-12-12 17:39:09 +00:00
Guido van Rossum b00649cd06 Initial revision 1991-12-11 17:29:59 +00:00
Guido van Rossum ccf0ca2860 Changes for FORMS 2.0. 1991-12-10 13:49:34 +00:00
Guido van Rossum c67eecf64d Added improved comments. 1991-11-19 20:41:32 +00:00
Guido van Rossum 3f4f91704c Comment 0.9.1 alternative to windows.remove(win) out. 1991-11-19 20:41:07 +00:00
Guido van Rossum eee9498b71 Initial revision 1991-11-12 15:38:08 +00:00
Guido van Rossum 5478cc68f8 Added a comment about a possible interface change. 1991-11-12 15:37:53 +00:00
Guido van Rossum d3778f9f60 Added samefile() function. 1991-11-12 15:37:40 +00:00
Guido van Rossum f109f86de5 Added defines for pixmode. 1991-11-12 15:34:54 +00:00
Guido van Rossum 5f5b137017 Added new constants (some? all?) for FORMS version 1.5. 1991-11-12 15:33:59 +00:00
Guido van Rossum 2483cbb8ce Initial revision 1991-09-17 08:12:16 +00:00
Guido van Rossum a232536f50 test new functions and syntax 1991-08-16 13:29:25 +00:00
Guido van Rossum 333c2e02d0 A plus is also a sign! 1991-08-16 13:29:03 +00:00
Guido van Rossum 7045dd04d7 Initial revision 1991-08-16 13:28:28 +00:00
Guido van Rossum 784ca6c835 path.cat --> join 1991-08-16 13:28:23 +00:00
Guido van Rossum 668317db89 Added warning comment 1991-08-16 13:28:11 +00:00
Guido van Rossum 4d0fdc34d1 path.cat --> join
Added splitext
1991-08-16 13:27:58 +00:00
Guido van Rossum fbe0a8e090 macpath.cat --> join 1991-08-16 13:27:45 +00:00
Guido van Rossum 0b7448020a integrate with stdwinq 1991-08-16 13:24:58 +00:00
Guido van Rossum dff84043e4 save match function instead of regexp object 1991-08-16 13:24:42 +00:00
Guido van Rossum 14d53bf164 Added vspacepixels.
Integrated with stdwinq.
1991-08-16 13:24:20 +00:00
Guido van Rossum 48154be152 Now uses pipes. 1991-08-16 13:23:29 +00:00
Guido van Rossum 0d3f4678ba Used mainloop instead of WindowParent functions 1991-08-16 13:22:53 +00:00
Guido van Rossum e825f15900 minsize->getminsize
Keyboard focus policy
more?
1991-08-16 13:22:23 +00:00
Guido van Rossum e11d4ccbb6 minsize -> getminsize
Keyboard interface
1991-08-16 13:22:08 +00:00
Guido van Rossum 3c8045acf1 Added activate/deactivate.
minsize --> getminsize.
Added 'boxed' option.
Added lost of code to realize (?)
1991-08-16 13:19:43 +00:00
Guido van Rossum 9b1bfc8810 minsize --> getminsize.
Added keyboard downcalls.
(I mean keyboard focus policy and activate/deactivate)
1991-08-16 13:17:27 +00:00
Guido van Rossum ce27298640 minsize --> getminsize; new implementation of getminsize 1991-08-16 13:17:07 +00:00
Guido van Rossum cadae0fc14 minsize --> getminsize 1991-08-16 13:16:25 +00:00
Guido van Rossum d085cc6f5d Initial revision 1991-08-16 13:15:56 +00:00
Guido van Rossum ac62b9e7cb Renamed path.cat to path.join 1991-08-16 13:14:46 +00:00
Guido van Rossum ca197b520e minsize --> getminsize 1991-08-16 13:05:37 +00:00
Guido van Rossum 1e5ad4e9bb Added class StrutAppearance (a label with with 0).
Changed minsize to getminsize.
1991-08-16 13:04:40 +00:00
Guido van Rossum e6afe6a468 Initial revision 1991-08-16 13:02:04 +00:00
Guido van Rossum 8cf301e757 Changed minsize to getminsize. 1991-08-16 13:01:50 +00:00
Guido van Rossum a759f64294 Initial revision 1991-05-14 12:25:35 +00:00
Guido van Rossum aa1791765e *** empty log message *** 1991-05-14 12:22:25 +00:00
Guido van Rossum 17fca179bc *** empty log message *** 1991-05-14 12:13:40 +00:00
Guido van Rossum ab2885ee96 Clarify comment. 1991-04-21 19:34:48 +00:00
Guido van Rossum a31b9ccbbc Delay zero after successful action. 1991-04-21 19:33:53 +00:00
Guido van Rossum fa0e726154 Remove reference to util. 1991-04-21 19:33:30 +00:00
Guido van Rossum e2e162ec42 Initial revision 1991-04-21 19:32:43 +00:00
Guido van Rossum 40b0f3aa0e Use built-in file.read() instead of util.readfile(). 1991-04-21 19:31:39 +00:00
Guido van Rossum 001fa6a20f Don't sleep if msecs <= 0. 1991-04-21 19:31:10 +00:00
Guido van Rossum fb9149c401 Support delayed destroy. Use built-in remove.
Dispatch needn't check for win = self.win.
1991-04-21 19:28:44 +00:00
Guido van Rossum a82a27585a Use text object's new settext() method. 1991-04-21 19:27:48 +00:00
Guido van Rossum 7912b008cf Add destrpy() method. 1991-04-21 19:27:28 +00:00
Guido van Rossum b8f5c093dc Use built-in remove() method of lists instead of util.remove. 1991-04-21 19:26:45 +00:00
Guido van Rossum d9d2c8246c This is no longer needed, since all these functions are now built-in
(with different interfaces).
Change the module definition to call the built-in functions,
for compatibility.
1991-04-07 13:43:34 +00:00
Guido van Rossum 6179fe6a08 Don't us sys.ps1 and sys.ps2.
Exercise trailing comma in tuples.
1991-04-07 13:42:52 +00:00
Guido van Rossum fac38b7c40 Added join() and joinfields() functions.
Fixed center().
Rewrote ljust() and rjust().
1991-04-07 13:42:19 +00:00
Guido van Rossum 2d844d1ddc Initial revision 1991-04-07 13:41:50 +00:00
Guido van Rossum fa54064967 Support packing whole trees. 1991-04-07 13:40:56 +00:00
Guido van Rossum fc61383fad Support [...] ranges. Also [!...] for negated ranges, SYSV shell style. 1991-04-07 13:40:02 +00:00
Guido van Rossum 117dbcb2fe Added window list management functionality.
Automatically call self.destroy() if WE_CLOSE event dispatched.
Added keyboard, alternate drawing and getwindow interface.
Call child's realize method.
1991-04-07 13:37:05 +00:00
Guido van Rossum 4f4794a9a0 Added alternate drawing, realize and getwindow interfaces
(why not keyboard?)
1991-04-07 13:36:09 +00:00
Guido van Rossum aa57a9d733 Added keyboard, alternate drawing, realize and getwindow interfaces. 1991-04-07 13:33:39 +00:00
Guido van Rossum 9ddba3e9ee Enabled logicop arguments (LO_*). 1991-04-07 13:33:03 +00:00
Guido van Rossum efba63ba1c Added dummy realize() method. 1991-04-07 13:32:19 +00:00
Guido van Rossum cbe6b53e1b New: getwindow() parent method and realize() child method. 1991-04-07 13:31:53 +00:00
Guido van Rossum 17d82ce78a Added readfile() and readopenfile() functions. 1991-02-19 13:04:40 +00:00
Guido van Rossum 261cbb2165 Use readfile from util.py. 1991-02-19 13:02:13 +00:00
Guido van Rossum 220d9f1449 The parser module is now called paenlparser. 1991-01-23 13:45:17 +00:00
Guido van Rossum 52cea43097 Added _reset and destroy methods. 1991-01-23 13:43:16 +00:00
Guido van Rossum 52acae65d7 Added XXX remarks. 1991-01-23 13:41:53 +00:00
Guido van Rossum 7df0c16b61 Initial revision 1991-01-23 13:41:31 +00:00
Guido van Rossum 65a9620fa2 Initial revision 1991-01-01 18:17:49 +00:00
Guido van Rossum 762c39e9d2 Initial revision 1991-01-01 18:11:14 +00:00
Guido van Rossum b5e05e95c3 Added explanatory comments. 1991-01-01 18:10:40 +00:00
Guido van Rossum 67c9b8cdad Adapted to new cutbuffer interface. 1990-12-26 15:40:31 +00:00
Guido van Rossum 217a5fa3c3 Initial revision 1990-12-26 15:40:07 +00:00
Guido van Rossum 66a07c07a5 Fix bugf in index -- last char would not be checked. 1990-12-26 15:39:06 +00:00
Guido van Rossum a4ddbd885e Use stdwinevents instead of stdwinsupport. 1990-12-26 15:37:05 +00:00
Guido van Rossum fc8e0d980f Compensate stdwin bug 1990-12-26 15:34:48 +00:00
Guido van Rossum ee11583f00 *** empty log message *** 1990-12-26 15:34:34 +00:00
Guido van Rossum a1ec5fea86 Unimportant changes. 1990-12-26 15:33:35 +00:00
Guido van Rossum debbe041e6 Comment changes. 1990-12-26 15:33:00 +00:00
Guido van Rossum 2e44967104 Initial revision 1990-11-05 19:44:36 +00:00
Guido van Rossum 0c89ec778d *** empty log message *** 1990-11-05 19:44:31 +00:00
Guido van Rossum be5ea23374 Added new event types and selection types. 1990-10-31 11:26:01 +00:00
Guido van Rossum 468c448bcc Added S_IMODE() to strip the file type (S_IFMT) from a mode. 1990-10-31 11:25:23 +00:00
Guido van Rossum 36ddc9e318 Initial revision 1990-10-31 11:24:22 +00:00
Guido van Rossum 6acc1b539a Changed resizing functionality. 1990-10-31 11:21:56 +00:00
Guido van Rossum e15607f3f9 removed resizing functionality. 1990-10-31 11:17:34 +00:00
Guido van Rossum fc9af02697 Separated out resizing functionality. 1990-10-31 11:16:43 +00:00
Guido van Rossum 67d3d1348b Removed reference to minmax. 1990-10-26 14:49:24 +00:00
Guido van Rossum c93fdeb43d Re3moved reference to minmax. 1990-10-26 14:49:08 +00:00
Guido van Rossum 124eb94270 Fix bug in rect.intersect(): empty rects beyond the first were
ignored instead of making the outcome empty...
1990-10-26 13:44:32 +00:00
Guido van Rossum e1f069ec98 Initial revision 1990-10-25 18:51:42 +00:00
Guido van Rossum 4de12876a9 Generalized. 1990-10-25 18:50:59 +00:00
Guido van Rossum ceae528b9f Generalizations. 1990-10-25 18:50:27 +00:00
Guido van Rossum f49ef1cad0 Mad readfile() read the file in one fell swoop. 1990-10-24 16:40:15 +00:00
Guido van Rossum 276123d1dc Changed use of stat. 1990-10-24 16:39:37 +00:00
Guido van Rossum 336f2816cd Initial revision 1990-10-24 16:39:18 +00:00
Guido van Rossum 40d9304d66 Use 'stat' module instead of hardcoding information from <sys/stat.h>. 1990-10-21 16:17:34 +00:00
Guido van Rossum 6b47ed1f9d Initial revision 1990-10-21 16:17:08 +00:00
Guido van Rossum 2dbf39cbc6 Set 'parent' field of new created subwindows so wdiff can implement
'close subwindows' command.
1990-10-21 16:15:58 +00:00
Guido van Rossum 5c124871b6 Make readfile read the file in one fell swoop. 1990-10-21 16:14:50 +00:00
Guido van Rossum c636014c43 Initial revision 1990-10-13 19:23:40 +00:00