Commit Graph

399 Commits

Author SHA1 Message Date
Guido van Rossum b6775db241 Merge alpha100 branch back to main trunk 1994-08-01 11:34:53 +00:00
Guido van Rossum 2979b01ff8 Merge changes 1994-08-01 11:18:30 +00:00
Guido van Rossum 5f47e5752a * Lib/mhlib.py (removefromallsequences): call putsequences with
proper argument

	* Lib/{bdb,cmd,pdb}.py: Mods by Rickard Westman: No longer barfs
	on lambda:s (outputs "<lambda>" as the function name); "a(rgs)" in
	pdb now works; help messages added to pdb (lifted from pdb.doc).
	Also, "h pdb" calls pdb.help().  cmd.do_help() displays topics on
	a nicer way (I think).  Also, topics for which there is a help_
	method, but no do_method (like "pdb" above) are displayed in a
	special way.  My own mod: fix break on function to also support
	methods.
1994-07-14 14:01:00 +00:00
Guido van Rossum 27b77a4367 read various startup files in Tcl and Python based upon className and
baseName.
1994-07-12 15:52:32 +00:00
Guido van Rossum 5e0c25bbf1 Fix bug in At() (Steen) 1994-07-12 09:04:41 +00:00
Guido van Rossum 69170c5d79 Make Pack.newinfo() return a dict 1994-07-11 15:21:31 +00:00
Guido van Rossum 97aeca1527 Added _exit and register as Tcl command exit. Micro lay-out fix. 1994-07-07 13:12:12 +00:00
Guido van Rossum 460b6bb192 Totally changed, now it is actually derived from Text
(This breaks something in MimeViewer.py, don't know what yet)
1994-07-06 21:54:39 +00:00
Guido van Rossum 5113569151 tag_remove: add tagName to tk call 1994-07-06 21:16:58 +00:00
Guido van Rossum 5179236a41 Added bind and tag_config methods; minor lay-out change 1994-07-06 21:15:27 +00:00
Guido van Rossum 2a39031006 Remove garbage '+ ' and reformat tag_delete function budy 1994-07-06 10:20:11 +00:00
Guido van Rossum a3cd357771 * ScrolledText.py: added some more methods of Text (This should
really be done differently, e.g. by deriving from the Text class.)
1994-07-06 09:28:21 +00:00
Guido van Rossum 2dcf529b55 Tue Jul 5 13:22:45 1994 (lumholt@login.dkuug.dk)
* Setup.in: moreButtons Tk extension support (again).

	* mklibapp: $1 is now the path to the Tk extension source
	directory.  The default is /usr/local/src/tcl.

	* kill.py: Don't use the exec Tcl command.

	* Tkinter.py
	(Misc.bind_all): Bug fix; extra graves.
	(Misc.tk_strictMotif): Return the value.
	(mainloop, getint, getdouble, getboolean): New functions.
	(_cnfmerge): Flatten cnfs.

Wed Jun 29 22:01:17 1994  Steen Lumholt  (lumholt@login.dkuug.dk)

	* Tkinter.py:
	(Tk.destroy): master is always None; so don't del.  Found by
	Tommy Burnette, solution from Guido van Rossum.
	(Misc.selection_get): Missing return.  Found by Richard Neitzel.
	(Misc._options, Widget.config, Canvas._create):  If cnf is a tuple
	or list then merge the contents.  Suggested by Matthew Conway.
1994-07-06 09:23:20 +00:00
Guido van Rossum 7c395db298 * Lib/urllib.py: implemented new quoting rules; added splituser,
splitpasswd, splitattr, splitvalue; new ftp syntax (user:passwd,
cwd to each subdir, type={a,i,d})
1994-07-04 22:14:49 +00:00
Guido van Rossum bd84b04f64 Mon Jul 4 12:42:04 1994 Guido van Rossum (guido@voorn.cwi.nl)
* Tkinter.py (Misc.bind_all): fix typo (name shouldn't be quoted).

Wed Jun 29 10:02:21 1994  Guido van Rossum  (guido@voorn.cwi.nl)

	* Tkinter.py (Misc.selection_get): add 'return'
	(Tk.destroy): self.master is always None
1994-07-04 10:48:25 +00:00
Guido van Rossum 526beed88d New module, formats traceback just like the C code does 1994-07-01 15:36:46 +00:00
Guido van Rossum 0b0804be77 Lots of new stuff 1994-06-28 13:48:26 +00:00
Guido van Rossum 9beb9327df wait_{variable,window,visibility}
register = _register
1994-06-27 23:15:31 +00:00
Guido van Rossum f713247ed7 Initial revision 1994-06-27 08:00:16 +00:00
Guido van Rossum 535cf0cbe2 Redo these changes:
(Menu.index): return int or None, not string
	(Widget.__getitem__): use splitlist, not split
1994-06-27 07:55:59 +00:00
Guido van Rossum aec5dc9f67 Sun Jun 26 02:19:01 1994 Steen Lumholt (lumholt@login.dkuug.dk)
* README: Doc fix.

	* Dialog.py: tk_dialog wrapper widget.

	* Tkinter.py: (Widget) Code moved from __init__ to _setup.

Sat Jun 25 00:27:24 1994  Steen Lumholt  (lumholt@login.dkuug.dk)

	* Tkinter.py (Misc): selection_own and selection_own_get methods.
	(Misc.winfo_toplevel): Return widget.

	* kill.py: New demo.

	* Tkinter.py: tk_menuBar method moved from Menu class to
	Misc class.
	(Scrollbar.get): Bug fix; self._getints not self.tk.getints.

Fri Jun 24 17:42:16 1994  Steen Lumholt  (lumholt@login.dkuug.dk)

	* Tkinter.py
	(Variable, StringVar, IntVar, BooleanVar): New classes.

	* mklibapp: New shell script.

	* Setup.in: moreButtons Tk extension support.

	* tkintermodule.c (Tkapp_New): Remove #ifdef WITH_APPINIT.

	* appinit.c (Tcl_AppInit): New file and function.

	* Tkinter.py:
	(Button): Dummy args in tk_* methods.
	(Studbutton, Tributton): New widget by <tnb2d@cs.virginia.edu>;
	morebuttons extension.

Thu Jun 23 22:22:43 1994  Steen Lumholt  (lumholt@login.dkuug.dk)

	* 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:55:12 +00:00
Guido van Rossum c2fb7e65de (Menu.index): return int or None, not string
(Widget.__getitem__): use splitlist, not split
1994-06-27 07:48:37 +00:00
Guido van Rossum 560131328c mhlib.py: new interface to MH folders and messages
multifile.py: added readlines() and read() methods
mimetools.py: mimetools.py: added functions to encode/decode standard MIME
	Content-transfer-encoding types (as well as uuencode)
rfc822.py: Accept lines ending in CR LF as well
1994-06-23 12:06:02 +00:00
Guido van Rossum 85d8945590 Two new generally useful modules: types defines names for all built-in types,
StringIO implements pseudo files writing into and reading from strings.
1994-06-23 11:53:27 +00:00
Guido van Rossum adb3105ec4 Companion module for new profile.py 1994-06-23 11:42:52 +00:00
Guido van Rossum 9b68fd961c * Tkinter.py
(Widget): generalized config(); added keys().
	(Canvas): added addtag_xxx and find_xxx functions; generalized
	itemconfig().
1994-06-23 07:40:14 +00:00
Guido van Rossum 08a403821d * Tkinter.py: some tidying up.
(Misc.after): arrange to call deletecommand after it is called.
	(Canvas.itemconfig): generalized to support all forms.
	(Canvas.find): returns a list of integers instead of strings.
	* Tkinter.py (Canvas._create): call _flatten earlier.
1994-06-21 11:44:21 +00:00
Guido van Rossum fea128ecf3 Reformatted using 8-space wide tabs 1994-06-20 13:42:28 +00:00
Guido van Rossum 67ef5f3fb6 * Tkinter.py (Canvas): made create_ methods return the item id;
flatten argument list to _create before passing on to tk.call;
	_do should return a value.
1994-06-20 13:39:14 +00:00
Guido van Rossum 45853db868 Added dictionary mapping names to children, and _name attribute.
Renamed tkerror to _tkerror, default_root to _default_root.
	(_substitute, _subst_prefix): move back into class Misc; added
	widget Event attribute.
	Added functions that return widgets or widget lists:
	winfo_children; focus_get; grab_current.
	(Pack.slaves, Place.slaves): return Widget objects instead of
	pathnames.
	Renamed __del__() to destroy() (because of circular refs, __del__
	won't ever be called).
	Added some names with explicit _set: focus_set, focus_default_set,
	grab_set.
	Added focus_default_none.
	(Misc._getints): use tk.splitlist() instead of tk.split(), return
	None if string empty.
1994-06-20 12:19:19 +00:00
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