Commit Graph

458 Commits

Author SHA1 Message Date
Guido van Rossum b5f9460556 allow safe_import to be called with up to 4 args and check for . in name 1995-03-02 15:30:15 +00:00
Sjoerd Mullender d9b6b5c756 Write track artist info if given. 1995-03-01 10:03:08 +00:00
Guido van Rossum 7c750e1e09 added html parser and supporting cast 1995-02-27 13:16:55 +00:00
Guido van Rossum eb9e9d2b2a layout changes; quote & as well 1995-02-27 13:16:11 +00:00
Guido van Rossum c7acf2a106 handle class exceptions 1995-02-27 13:15:45 +00:00
Guido van Rossum cebfa70a79 fix stupid bug (db should be dict) 1995-02-27 13:15:29 +00:00
Guido van Rossum 780620f2fd added DictType as alias for DictionaryType 1995-02-27 13:14:15 +00:00
Guido van Rossum 5e38b6fda1 handle class exceptions; added runeval; made runctx obsolete 1995-02-27 13:13:40 +00:00
Guido van Rossum 256cbd7487 minute comment changes 1995-02-16 16:30:50 +00:00
Guido van Rossum 42e193605d add class exceptions 1995-02-13 14:39:19 +00:00
Guido van Rossum cc6764c1ba added __doc__ strings etc. 1995-02-09 17:18:10 +00:00
Guido van Rossum 6de668f3aa test class exceptions 1995-02-09 10:28:43 +00:00
Guido van Rossum b6aa92ebf1 fix formatting of stack entries 1995-02-03 12:50:04 +00:00
Sjoerd Mullender 992ff06e98 Made play method more robust by adding a try-finally. 1995-02-01 14:24:32 +00:00
Sjoerd Mullender 3d697ce447 Support for album.notes and trackN.artist via notes and trackartist
instance variables.
1995-02-01 14:23:37 +00:00
Guido van Rossum 7e4b2def34 changes for the Mac 1995-01-27 02:41:45 +00:00
Guido van Rossum ea8ee1dfc5 fix bogus test for regex match 1995-01-26 00:45:20 +00:00
Jack Jansen 40b9835e98 Always use 'anonymous' if os.environ doesn't exist 1995-01-19 12:24:45 +00:00
Guido van Rossum 8e8a525f22 evolution 1995-01-17 15:58:37 +00:00
Guido van Rossum 9a22de101f new files 1995-01-12 12:29:47 +00:00
Guido van Rossum 8d2080d043 use getattr() instead of eval(), fix string representations 1995-01-12 12:29:17 +00:00
Guido van Rossum be9f212f7e fix comments for list command 1995-01-10 10:35:55 +00:00
Guido van Rossum 1f97612e64 Fix exec test so presence of __builtins__ doesn't break it 1995-01-10 10:34:21 +00:00
Guido van Rossum 409780f8f2 shallow and deep copy operations 1995-01-10 00:34:21 +00:00
Guido van Rossum a48061a580 shelve.py: database of persistent objects, on top of pickle.py and anydbm.py
pickle.py: new low-level persistency module (used to be called flatten)
dbmac.py: stupid dbm clone for the Mac
anydbm.py: generic dbm interface (should be extended to support gdbm)
1995-01-10 00:31:14 +00:00
Guido van Rossum e1130a49cd Added clarifying comment 1995-01-04 19:20:00 +00:00
Guido van Rossum 824de25fe2 * Lib/test/test_b1.py: test eval() and execfile() with globals,
locals arguments
1995-01-02 18:38:42 +00:00
Guido van Rossum 40b2cfb3f3 * Lib/mhlib.py: added movemessage(), copymessage(), added copy
fallback for refilemessages(), and updated the docs
1995-01-02 18:38:23 +00:00
Guido van Rossum a1124700f8 Add hacks for switching protocol and path but leaving host unchanged 1994-12-30 17:18:59 +00:00
Guido van Rossum eecf035aa2 Test new __import__ module, test reload of built-in module, test
has_key() on empty dictionary
1994-12-30 17:17:46 +00:00
Guido van Rossum 5505d56f08 Fixed 'propagate' method 1994-12-30 17:16:35 +00:00
Sjoerd Mullender 4359860517 Let extensions start at the last period after the last slash in the
name.
1994-12-14 15:29:17 +00:00
Guido van Rossum a558e37eb4 improved prompt format 1994-11-10 22:27:35 +00:00
Guido van Rossum e23b62f288 more complete tests of built-in functions 1994-11-10 22:25:26 +00:00
Guido van Rossum 780044f27a added option interface 1994-10-20 22:02:27 +00:00
Guido van Rossum 971dc53f0e fix bug in poly.minus 1994-10-20 22:02:03 +00:00
Guido van Rossum e5e73b96e1 initial commit 1994-10-09 23:03:12 +00:00
Guido van Rossum 74233b34e1 fix buffer size 1994-10-09 22:34:40 +00:00
Guido van Rossum ca9321e6d0 Import posixpath for freeze script 1994-10-05 15:17:55 +00:00
Sjoerd Mullender ebea896e20 Ignore empty markers. 1994-10-03 10:21:06 +00:00
Guido van Rossum adc940eabf Cosmetic changes 1994-09-29 10:04:43 +00:00
Guido van Rossum fa59e83813 Fix bug if tmpcache is None 1994-09-21 11:36:19 +00:00
Guido van Rossum e174c1500f audiodev.py: Mac port.
Audio_mac.py: Mac specific class for audiodev.py.
aifc.py: open files for reading/writing in binary mode ('rb', 'wb').
1994-09-16 10:55:53 +00:00
Guido van Rossum 14a6e3d5e8 * Lib/whrandom.py: if seed is (0,0,0), initialize from current
time; default seed's arguments to (0,0,0)
1994-09-14 13:33:57 +00:00
Guido van Rossum 73b20df99e Added TERMIOS module 1994-09-12 10:39:08 +00:00
Guido van Rossum 23cb2a83a5 New tty/pty modules by Steen; new urlparser. 1994-09-12 10:36:35 +00:00
Guido van Rossum 853474194f mhlib.py: delay opening of sequences file so we don't overwrite it when
putsequences is called with a bad argument
rfc822.py: better handling of dates with no or bad timezones
uu.py: contributed by Lance -- uu{en,de}code
1994-09-09 11:10:15 +00:00
Sjoerd Mullender e202c38d76 Can now also give a hashed ID to Cddb. 1994-09-06 16:19:03 +00:00
Sjoerd Mullender 1f05754640 Added support for ADPCM compression. 1994-09-06 16:17:51 +00:00
Guido van Rossum f023ab0471 Dialog.py: d.num should be numeric, not string
Tkinter.py: on destroy(), remove self from master's dict of children
1994-08-30 12:13:44 +00:00
Guido van Rossum 3bb5448767 New way of generating .pyc files, thanks to Sjoerd.
urllib.py: '+' is not always safe (even though the RFC says so :-( )
whrandom.py: throw away top bits of time to avoid overflow on Mac
(where times can be negative)
1994-08-29 10:52:58 +00:00
Guido van Rossum 7aeb4b9ce8 * Lib/linecache.py: don't crash on empty filename
* Lib/macpath.py: don't return trailing colon for dirname()
	(XXX won't do for volume names -- but otherwise glob(':*:*.py')
	loops forever)
	* Lib/traceback.py: print SyntaxError correctly
	* Lib/stat.py: moved to posixstat.py; added macstat.py which has
	the constants for the Mac; and created new stat.py which includes
	the right one
	* Lib/urllib.py: fix caching bug (by disabling the cache)
1994-08-23 13:32:20 +00:00
Guido van Rossum 9e1e149a5f * Lib/sgi/flp.py: fix caching bug (always write the whole file to
the cache!)
1994-08-23 13:29:21 +00:00
Guido van Rossum 710c352d05 * Lib/string.py: find/rfind is now the main implementation and
index/rindex is a wrapper that raises index_error (which is now
	always ValueError)
1994-08-17 13:16:11 +00:00
Guido van Rossum a28f2dc321 do fake "import posix" for freeze.py script 1994-08-17 12:33:28 +00:00
Guido van Rossum 3f9a6ec9e6 * Lib/rfc822.py: fix two bugs: error in readheaders interpreting
regex.match() result, and wrong logic in getfirstmatchingheader()
	when the same header occurs twice consecutively
1994-08-12 13:16:50 +00:00
Guido van Rossum dc1cdca10b Test set for new pow() function 1994-08-12 13:14:22 +00:00
Guido van Rossum ef8f88101a Add Widget.unbind and {Canvas,Text}.tag_unbind.
In Widget.__init__, call config only if cnf not empty.
1994-08-08 12:47:33 +00:00
Guido van Rossum d7b19488d7 Use new packing and 'name' in cnf dict 1994-08-03 08:08:26 +00:00
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