Commit Graph

1017 Commits

Author SHA1 Message Date
Guido van Rossum 68ded217f7 minor fix to mime header regex --Sjoerd 1996-05-28 19:52:40 +00:00
Guido van Rossum 507f15b254 Auto-install on first import.
Added quick reference.
1996-05-28 15:52:00 +00:00
Guido van Rossum 422cc7ffec more changes copied from Grail 1996-05-21 20:30:07 +00:00
Guido van Rossum 63e39ae933 Made Place.info == Pack.info 1996-05-16 17:53:48 +00:00
Guido van Rossum a5f875f504 Yet another mini fix to pack/grid info. 1996-05-16 17:50:07 +00:00
Guido van Rossum 3626999377 Some more changes from the net... Typos, 4.0/4.1 issues, new tkButtonInvoke(). 1996-05-16 17:11:27 +00:00
Guido van Rossum 37dcab197c Resync with Grail's Tkinter.py. 1996-05-16 16:00:19 +00:00
Guido van Rossum 955c5d156d Set the base for atoi() and atol() to 0, since we're reading Python
numbers here, and so that atol() doesn't barf on the trailing 'L'.
Add a test case involving a long integer.
1996-05-15 22:49:57 +00:00
Guido van Rossum 7853647dd1 Don't atoi() the memo key.
Use atoi(), atol(), atof() instead of load_atomic for seed-up.
1996-04-12 13:36:27 +00:00
Guido van Rossum bbb4e10e91 Subtlety: ~root/a should expand to /a, not //a. Everything else unchanged. 1996-04-02 22:30:03 +00:00
Guido van Rossum ededb58c14 Update reference (it's now RFC 1808); added http to list of protocols
that use parameters.
1996-03-29 21:23:25 +00:00
Guido van Rossum 48766512a0 Reformatted with 4-space tab stops.
Allow '=' and '~' in unquoted attribute values.

Added overridable methods handle_starttag(tag, method, attrs) and
handle_endtag(tag, method) so subclasses can decide whether they
really want to call the method (e.g. when suppressing some portion of
the document).

Added support for a number of SGML shortcuts:

        shorthand               full notation
        <tag>...<>...           <tag>...<tag>...
        <tag>...</>             <tag>...</tag>
        <tag/.../               <tag>...</tag>
        <tag1<tag2>             <tag1><tag2>
        </tag1</tag2>           </tag1></tag2>
        </tag1<tag2>            </tag1><tag2>

This required factoring out some common actions and rationalizing the
interface to parse_endtag(), so as to make the code more readable.

Fixed syntax for &entity and &#char references so the trailing
semicolon is optional; removed explicit support for trailing period
(which was a TBL mistake in HTML 0.0).

Generalized the test program.

Tried to speed things up a little.  (More to come after the profile
results are in.)

Fix error recovery: call the end methods popped from the stack instead
of the one that triggers.  (Plus some complications because of the way
HTML extensions are handled in Grail.)
1996-03-28 18:45:04 +00:00
Guido van Rossum cce074e273 new binhex from Jack (much faster) 1996-03-25 18:54:33 +00:00
Guido van Rossum a220e67a9e Finally check in Jack's latest version, which fixes all known bugs. 1996-03-23 19:19:04 +00:00
Guido van Rossum 71ac945321 move mac url2path conversion to separate module 1996-03-21 16:31:41 +00:00
Guido van Rossum 442e7202f8 Added proxy handling; upped version.
(Proxy handling uses <proto>_proxy environment variables by default.)
1996-03-20 15:33:11 +00:00
Guido van Rossum a8738a5642 Added print_arguments() function. 1996-03-14 21:30:28 +00:00
Guido van Rossum 4032c2c1ce Change to use real temporary files instead of StringIO. Correct and
add to documentation.  This will be released as cgi.py 2.0a1.
1996-03-09 04:04:35 +00:00
Guido van Rossum 0147db07ef Considerable documentation changes and a few import rearrangements. 1996-03-09 03:16:04 +00:00
Guido van Rossum 7aee384dbc Reformatted with 4-space indentation. Added some quick docs to the
FieldStorage class.
1996-03-07 18:00:44 +00:00
Guido van Rossum 243ddcd7a9 Added FieldStorage class, which stores parts in files.
(Not documented yet, and the files are currently StringIO instances.)
1996-03-07 06:33:07 +00:00
Guido van Rossum 391b4e60e6 Reformatting only. 1996-03-06 19:11:33 +00:00
Guido van Rossum 7275561d34 File upload and revamped documentation. 1996-03-06 07:20:06 +00:00
Guido van Rossum 405ab2378e *** empty log message *** 1996-02-28 23:58:09 +00:00
Jack Jansen 2bb57b81f2 Changed makefile() args from r/w to rb/wb, for non-unix compatability. 1996-02-14 16:06:24 +00:00
Jack Jansen 0d12ead05c Try to normalize urls referring to local files (code copied from posixpath) 1996-02-14 16:05:20 +00:00
Sjoerd Mullender e8a0a5c92a Module to convert a mail message to or from quoted-printable. The
message may consist of several MIME parts in which case each part is
converted independent of the others.  Only converts when necessary.
1996-02-14 10:40:03 +00:00
Guido van Rossum 0f6f812acb better way to define ComplexType 1996-02-13 00:04:31 +00:00
Guido van Rossum a98b0a1ff5 improved test() 1996-02-13 00:02:10 +00:00
Guido van Rossum 7bb7ecd39e even better way to normalize spaces in add_flowing_data 1996-02-13 00:01:28 +00:00
Guido van Rossum 93dc801b06 better way to normalize spaces in add_flowing_data 1996-02-12 23:59:54 +00:00
Guido van Rossum f69da220bf fix several bogus var refs in error reporting 1996-02-12 23:58:38 +00:00
Guido van Rossum efa3143abd add keyword args to CanvasItem class __init__ 1996-01-26 17:45:07 +00:00
Guido van Rossum 15c4fecffc more recent linux header files 1996-01-26 17:43:46 +00:00
Guido van Rossum 8c8a02a258 speed up unquote() by using atoi() instead of eval() 1996-01-26 17:41:44 +00:00
Guido van Rossum 44a4d59b56 support 'whence' arg to seek() 1996-01-25 18:40:41 +00:00
Guido van Rossum 0eaa74bf8d add acct() method to send new account name 1996-01-25 18:37:21 +00:00
Guido van Rossum ba426640dd fix typo in _setval() return value 1996-01-25 18:35:24 +00:00
Guido van Rossum 6700142d83 backward compatible interface for bsddb 1996-01-25 18:33:39 +00:00
Guido van Rossum 0182c068ab inherit error from _mod.error 1996-01-25 18:26:57 +00:00
Guido van Rossum 13ad35a7d6 real test for executable script 1996-01-25 18:23:50 +00:00
Guido van Rossum 5bb05da6f7 correct retrieving return value of os.waitpid() 1996-01-25 18:13:30 +00:00
Guido van Rossum eacce12fdc add missing loop step to parseplist() 1996-01-25 18:07:08 +00:00
Guido van Rossum f7476c5088 fix default arg for read() -- should be -1 1996-01-25 17:34:14 +00:00
Guido van Rossum 06d74418e5 add ComplexType 1996-01-25 17:31:58 +00:00
Jack Jansen e8ea21b0fe Added pathname2url and url2pathname methods (only correct for unix and
mac, so far)
1995-12-21 15:43:53 +00:00
Jack Jansen f4e7d2a396 Added (dummy) expanduser and expandvar methods 1995-12-15 13:23:37 +00:00
Jack Jansen dc3e3f69db Fixed local file access for macintosh 1995-12-15 13:22:13 +00:00
Sjoerd Mullender e5fe4af070 Use global statement instead of importing ourselves to get to global
variable.
1995-12-07 10:16:45 +00:00
Jack Jansen 8324836329 Disable pythons own eventhandling on the mac. 1995-11-10 14:49:44 +00:00
Sjoerd Mullender e0371b8415 Fixed basejoin. There were two main problems:
- basejoin('some/url', '#name') would strip the last component of
  some/url and resturn some/#name.
- basejoin('file.html', 'relative/path') would return something like
  file:/relative/path, making a relative path into an absolute one.
These bugs are fixed by some drastic changes.  No scheme is added when
none is present (i.e. it works as replacement for posix.joinpath).
If a scheme is present in the second argument, it is returned
unprocessed.  No hostname are added in this case.  If no scheme is
present, the scheme of the first argument, if present, is used.
The algorithm is commented profusely.
Also fixed a typo in a comment.
1995-11-10 10:36:07 +00:00
Sjoerd Mullender 825bae7c35 Also remember the module a class is defined in. 1995-11-02 17:21:33 +00:00
Jack Jansen 10d0f8fc40 Renamed module tkinter to _tkinter 1995-10-23 14:36:05 +00:00
Jack Jansen 9715779810 Added class MHMailbox
Added optional third parameter to seek.
1995-10-23 13:59:53 +00:00
Guido van Rossum 46f92d2eba add Listbox.activate() 1995-10-11 17:41:00 +00:00
Guido van Rossum b61b28b07d added listbox selection modes 1995-10-11 17:40:37 +00:00
Guido van Rossum a61bdeb8a9 add delete() method to ftp object 1995-10-11 17:36:31 +00:00
Guido van Rossum a1db48b75b fix Menu.add_command etc. 1995-10-09 22:37:28 +00:00
Guido van Rossum f7f79ac0c8 better version sanity checks; get rid of Widget.unbind_class() 1995-10-07 19:08:37 +00:00
Guido van Rossum 909507dd0b added NullFormatter 1995-10-06 15:31:30 +00:00
Guido van Rossum 84175bacd1 strip <A> attribute values 1995-10-06 15:30:57 +00:00
Guido van Rossum 650ba37e1d typos in attrfind regex 1995-10-06 15:30:28 +00:00
Guido van Rossum d58364e709 added lt, gt, amp back to entity definitions 1995-10-06 15:26:52 +00:00
Jack Jansen 951213e8ca Use binascii module (resulting in a 60-fold speedup:-) 1995-10-04 16:39:20 +00:00
Jack Jansen 5a49ffca5e Fixed two minor errors. 1995-10-04 16:36:53 +00:00
Jack Jansen 685e16d7d6 Fixed hexbin handling 1995-10-03 14:41:15 +00:00
Guido van Rossum 96ebbd3082 new after options; text.search; new image methods 1995-09-30 17:05:26 +00:00
Guido van Rossum 8988fb239b Initial revision 1995-09-30 16:52:24 +00:00
Guido van Rossum c0e68d1e41 actualized example, catch EOFError, print retrieved lines if debugging>2 1995-09-30 16:51:50 +00:00
Guido van Rossum 928fcede65 actualized example/reference, fix bug w/ nonnumeric port 1995-09-30 16:50:46 +00:00
Guido van Rossum c7ae92069d add flush_softspace() interface 1995-09-30 16:49:58 +00:00
Guido van Rossum e3d9320fc5 allow _ in attr names (Netscape!) 1995-09-30 16:49:36 +00:00
Guido van Rossum 4f399fb642 more robust coding, adapted for mac 1995-09-30 16:48:54 +00:00
Guido van Rossum 65126d5a3d entity definitions from HTML 2.0 std 1995-09-27 16:22:17 +00:00
Guido van Rossum c52c1e9b82 Initial revision 1995-09-27 16:22:08 +00:00
Guido van Rossum 453534a84d added verbose option; added ismap/align/width/height to handle_image args 1995-09-22 00:55:50 +00:00
Guido van Rossum 3c0bfd0dee fix <!...!> parsing; added verbose option; don't lowercase entityrefs 1995-09-22 00:54:32 +00:00
Guido van Rossum 8421c4e833 actualized example; added xover, xgtitle, xpath, date methods by Kevan Heydon 1995-09-22 00:52:38 +00:00
Guido van Rossum 194e20a9db add file parameter to all printing fns, default stderr 1995-09-20 20:31:51 +00:00
Guido van Rossum dc3372e943 new exec syntax 1995-09-18 22:00:37 +00:00
Guido van Rossum aada0d51a5 Initial revision 1995-09-18 22:00:15 +00:00
Guido van Rossum 71b1a90bad added getitem/setitem to Image class; changed call wrapping (again) 1995-09-18 21:54:35 +00:00
Guido van Rossum 1c9daa8ba6 handle missing QUERY_STRING 1995-09-18 21:52:37 +00:00
Guido van Rossum 3b7b8131a6 recognize a few more file types 1995-09-18 21:50:43 +00:00
Guido van Rossum 54c1510cb7 improved test/main program 1995-09-18 21:49:24 +00:00
Guido van Rossum a0dfc7ad65 fixed the test program 1995-09-07 19:28:19 +00:00
Guido van Rossum aad8692328 Initial revision 1995-09-07 19:22:38 +00:00
Guido van Rossum a5773ddb23 move constants to Tkconstants; added some; overridable error reporting; fix typo in propagate 1995-09-07 19:22:00 +00:00
Guido van Rossum b9e39c8861 Filter button should set selection's directory, too 1995-09-01 20:36:47 +00:00
Guido van Rossum bf4d8f9d87 added OptionMenu class (tk_optionMenu interface) 1995-09-01 20:35:37 +00:00
Guido van Rossum cf9e27c72e support value-less attributes, using regex.group() 1995-09-01 20:34:29 +00:00
Guido van Rossum fd504d9f09 took out forms support (in favor a Grail extension) 1995-09-01 20:33:32 +00:00
Guido van Rossum a89b1bade5 rationalized os.path.split() so split "/a/" yields "/a", "" 1995-09-01 20:32:21 +00:00
Jack Jansen 8b745126d5 Changed arguments and added a lot of functionality besides 1995-08-30 12:19:30 +00:00
Guido van Rossum ac4f8d3198 Initial revision 1995-08-29 23:46:35 +00:00
Guido van Rossum 4324536644 forget previous change (content-encoding) 1995-08-29 19:25:11 +00:00
Guido van Rossum a5cf179f02 encoding can be content-transfer-encoding or content-encoding 1995-08-29 19:19:51 +00:00
Guido van Rossum ca44540bc8 support overriding how to open unknown url types 1995-08-29 19:19:12 +00:00
Guido van Rossum 92d0932025 changed some commas into percent signs 1995-08-29 19:18:24 +00:00
Guido van Rossum 97162b5b95 exec() -> exec 1995-08-28 02:54:01 +00:00
Guido van Rossum 9d8c5a4cf3 add errno.h 1995-08-28 02:53:41 +00:00
Jack Jansen ac7c0dfa93 Indent bug 1995-08-17 14:17:39 +00:00
Sjoerd Mullender 9c4585acfa Removed addbase.__del__ because it can't work.
If code keeps a reference to self.fp or any of its methods, you don't
want to close self.fp just because no explicit reference is kept to self.
1995-08-15 11:33:39 +00:00
Jack Jansen 479c1b3008 Put debug output inside 'if DEBUG'. 1995-08-14 12:41:20 +00:00
Sjoerd Mullender f33a69f273 Temporary fix for access statement.
Definition of Error was missing.
1995-08-14 07:49:51 +00:00
Guido van Rossum e2cb7274ea exec() -> exec 1995-08-11 14:24:47 +00:00
Guido van Rossum a49d94af08 test for specific bug in vars() 1995-08-11 14:24:35 +00:00
Guido van Rossum 1d59df28ac added select_present and select_range to Entry widget 1995-08-11 14:21:06 +00:00
Guido van Rossum abad1cc647 renamed DbShelf->DbfilenameShelf;added BsdDbShelf (David Ely) 1995-08-11 14:19:16 +00:00
Guido van Rossum e03a86c3d9 change default flag to match dbm/gdbm 1995-08-11 14:18:27 +00:00
Guido van Rossum 1035a892a1 make sure the path ends in a slash in reload() 1995-08-11 13:56:04 +00:00
Guido van Rossum 9c3241d6d0 exec() -> exec 1995-08-10 19:46:50 +00:00
Guido van Rossum 1a16c868d4 remove file: from list of protocols taking host 1995-08-10 19:45:41 +00:00
Guido van Rossum 30642ab29f changed version :-) 1995-08-10 19:44:54 +00:00
Guido van Rossum eae892d232 added note about missing features 1995-08-10 19:43:53 +00:00
Guido van Rossum a62b1003a6 noted obsolescence; exec() -> exec 1995-08-10 19:43:04 +00:00
Guido van Rossum 894a7bb995 default tabsize to 8 1995-08-10 19:42:05 +00:00
Guido van Rossum 1859600357 fix reload use of __filename__ 1995-08-10 19:40:39 +00:00
Guido van Rossum ba3e46b9ce fix stupid typo: r->RDLK 1995-08-10 19:38:36 +00:00
Guido van Rossum 99bf06b2fc same thing as for dospath, plus HOMEDRIVE/HOMEPATH support 1995-08-10 19:34:50 +00:00
Guido van Rossum 92794e30cb don't print Cannot open/stat messages 1995-08-10 19:32:22 +00:00
Guido van Rossum baf642ed16 exec() -> exec 1995-08-10 19:31:20 +00:00
Guido van Rossum 9f824a7984 Initial revision 1995-08-10 19:29:28 +00:00
Guido van Rossum fda5c1a807 redefined normcase() 1995-08-10 19:27:42 +00:00
Guido van Rossum 3b8e1604e8 upgdaded the test program 1995-08-10 19:26:37 +00:00
Guido van Rossum 4ac0050304 revamped somewhat 1995-08-10 19:24:30 +00:00
Guido van Rossum 3e7a697c55 temporarily disabled the access statements 1995-08-10 19:23:37 +00:00
Guido van Rossum 0ec3126222 added normpath() and splitdrive() 1995-08-10 18:09:16 +00:00
Guido van Rossum f68ec3924e added note about obsolescence 1995-08-10 18:00:03 +00:00
Guido van Rossum 9d8fe6483d rather ugly temporary hacks to make it work in grail & restricted mode 1995-08-09 02:33:38 +00:00
Guido van Rossum 6a0691aee4 fix bug in reload 1995-08-09 02:32:49 +00:00
Guido van Rossum bebe5157a5 add module binascii; add r_unload/s_unload; don't change 'rb' to 'r' in open 1995-08-09 02:32:08 +00:00
Guido van Rossum aa7634476f change blank line insertion at a few places and fix recursion bug for </var> 1995-08-09 02:31:00 +00:00
Guido van Rossum 1383356039 added sys.std files, read-only open, reload 1995-08-07 20:19:27 +00:00
Guido van Rossum 221df24940 add splitdrive() 1995-08-07 20:17:55 +00:00
Guido van Rossum 971ee13835 pass the command to sh -c 1995-08-07 20:17:23 +00:00
Guido van Rossum e0bfd50d76 correct typo (persis*ent) 1995-08-07 20:16:58 +00:00
Guido van Rossum ec8fd94aab use new "single" compile option 1995-08-07 20:16:05 +00:00
Guido van Rossum b7677095d4 make sure os.environ exists (maybe empty) 1995-08-07 20:15:23 +00:00
Guido van Rossum 8755582ef1 add seekable option to __init__ 1995-08-07 20:13:56 +00:00
Guido van Rossum 65ab98c427 use mimetools; add close() 1995-08-07 20:13:02 +00:00
Guido van Rossum e7808778d6 added parse_qs(query_string) 1995-08-07 20:12:09 +00:00
Guido van Rossum f54d967fec new formatter module; redid htmllib module to use it 1995-08-07 20:07:44 +00:00
Guido van Rossum a0eab1d367 Initial revision 1995-08-07 20:07:36 +00:00
Jack Jansen 0a2eaac867 Use binascii module for inner loop 1995-08-07 14:37:38 +00:00
Jack Jansen fcdffeaaa1 Implement binhex protocol.
Note: binhex works, hexbin does not work yet.
1995-08-07 14:36:51 +00:00
Jack Jansen a68bfe29ec Added missing walk() function 1995-08-07 14:09:27 +00:00
Guido van Rossum 221ec0b97a new sendport() interface; add test() program call 1995-08-04 04:39:30 +00:00
Guido van Rossum 28e99fe96f added format_* functions (suggestion by Ken M) 1995-08-04 04:30:30 +00:00
Guido van Rossum fb1a0cd74f subtle changes to relative rurl joins 1995-08-04 04:29:32 +00:00
Guido van Rossum bbb0a05972 use mimetools; add error handling and authentication 1995-08-04 04:29:05 +00:00
Guido van Rossum 7ff5d7f7c7 major rewrite using different formatting paradigm 1995-08-04 04:23:30 +00:00
Guido van Rossum 145b2e0168 changed comment parsing 1995-08-04 04:22:39 +00:00
Guido van Rossum e7e578ffe0 Initial revision 1995-08-04 04:00:20 +00:00
Guido van Rossum 40d1ea3b9c new package support, import hooks, restricted execution support 1995-08-04 03:59:03 +00:00
Guido van Rossum a22a70aaff added some missing constants 1995-08-04 03:51:48 +00:00
Guido van Rossum 35f67fb552 keyword arguments; redid Photo image class; other goodies 1995-08-04 03:50:29 +00:00
Guido van Rossum 9455063d1e keyword parameter changes 1995-08-04 03:49:39 +00:00
Sjoerd Mullender 8cb4b1f707 Module with one function to read Python modules and extract class and
method definitions.  See __doc__ string for more information.
1995-07-28 09:30:01 +00:00
Sjoerd Mullender 2e5168c9fc Get magic number from interpreter (using module imp). 1995-07-19 11:21:47 +00:00
Sjoerd Mullender aa3e163fa1 Added flush() method. 1995-07-19 11:21:21 +00:00
Guido van Rossum 761c5aba8e Tk 4.0 and Tcl 7.4 are now standard 1995-07-14 15:29:10 +00:00
Guido van Rossum 677dfc37b5 Tommy's mail explaining status 1995-07-14 15:28:00 +00:00
Guido van Rossum 7f64e2497c Official version 1.26 directly from Ken 1995-07-12 15:34:34 +00:00
Guido van Rossum b89ab8c6d2 something close to Ken's latest version ... 1995-07-12 02:17:51 +00:00
Guido van Rossum 92457b9f8d added seekable option; save unix from lines; speed up islast() 1995-06-22 19:06:57 +00:00
Guido van Rossum 6cb15a0572 add User-agent hdr; read and close the file upon http error 1995-06-22 19:00:13 +00:00
Guido van Rossum 2ab19920fc make split and splitfields, join and joinfields synonyms 1995-06-22 18:58:00 +00:00
Guido van Rossum efe5ac404f make reporting unbalanced tags an overridable method 1995-06-22 18:56:36 +00:00
Guido van Rossum b47281539a use imp.new_module(), not new.module(); and /usr/local 1995-06-22 18:55:10 +00:00
Guido van Rossum 8afa8245bb functions don't have a __name__ attribute 1995-06-22 18:52:35 +00:00
Guido van Rossum f71c79bb85 test other name variable 1995-06-22 18:51:23 +00:00
Guido van Rossum f4ef7e6a0b doctor the exception 1995-06-22 18:50:15 +00:00
Guido van Rossum 4cdcef7e29 discard endrequest(); minor stuff; rfc822 no seek flag 1995-06-22 18:48:48 +00:00
Guido van Rossum 2d95706f68 support <HTML>, remove <HEADER> 1995-06-22 18:46:12 +00:00
Guido van Rossum 0daa13b188 set softspace to 0 in __init__ 1995-06-22 18:45:04 +00:00
Guido van Rossum 303c179b92 add bind(0,''); better way of guessing our fully qualified hostname 1995-06-20 17:21:42 +00:00
Jack Jansen e5e2cdde15 Removed >From stuff 1995-06-16 10:57:14 +00:00
Guido van Rossum f1945466e8 two mime encoding schemes 1995-06-14 23:43:44 +00:00
Jack Jansen 3a15dca1a0 Skip old-style 'From name time' lines at beginning of message. 1995-06-13 11:19:48 +00:00
Sjoerd Mullender c8718c3ddd Backward compatibity module for constants from cl.h include file. The
values are gotten from the cl module.  CL_old is there in case cl
doesn't exist.
1995-05-17 11:18:22 +00:00
Guido van Rossum ebaf104665 don't show print passwords in debug output 1995-05-05 15:54:14 +00:00
Guido van Rossum b1c1315ba3 new release by Ken, fix handling of from 1995-05-05 15:50:56 +00:00
Jack Jansen 2db6bfcd1d For anonymous ftp, make sure local hostname is fully qualified. 1995-05-04 15:02:18 +00:00
Jack Jansen e99c824bad Mac-specific code for setting filetype was outdated. 1995-04-23 22:06:57 +00:00
Guido van Rossum 48aa82e2df correct typo in example 1995-04-10 11:34:46 +00:00
Guido van Rossum 96044da680 first update from Ken 1995-04-07 09:06:50 +00:00
Guido van Rossum fa486a2d53 call test() when run as script 1995-04-07 09:04:01 +00:00
Guido van Rossum 5232590bf1 original received from Ken 1995-04-07 09:03:10 +00:00
Guido van Rossum 9a707e8c76 added Linux specific files 1995-04-05 09:44:56 +00:00
Guido van Rossum 86dc1e696d added TERMIOS.py 1995-03-31 11:34:23 +00:00
Guido van Rossum cf5394f88e rename debug() to set_debuglevel() 1995-03-30 10:42:34 +00:00
Guido van Rossum 189f8fb8f7 added "pystone" benchmark 1995-03-30 09:42:43 +00:00
Guido van Rossum 28aa229fa3 optional mode, bufsize for global function open() 1995-03-23 10:39:49 +00:00
Guido van Rossum fefbbe5085 fix bogus hasttr usage 1995-03-22 10:10:31 +00:00
Guido van Rossum 903abee9c4 fix typo in tag_nextrange 1995-03-20 15:09:13 +00:00
Guido van Rossum 7e9394ab97 add TkVersion,TclVersion; don't drop in debugger 1995-03-17 16:21:33 +00:00
Guido van Rossum 13c503e93b default mode="r" and add optional bufsize 1995-03-16 15:58:12 +00:00
Guido van Rossum 4f17e3e2f9 test signal module 1995-03-16 15:07:38 +00:00
Guido van Rossum 4c7fa4b774 set mac path separator to newline 1995-03-14 17:53:54 +00:00
Guido van Rossum 8c1688e132 add dummy base to atoi/atol; careful about negative start indices in find/count 1995-03-14 17:43:02 +00:00
Guido van Rossum 55d2f3997e rename copy.Error to copy.error 1995-03-14 17:41:36 +00:00
Guido van Rossum 030afb1d3a add execvpe -- mix of execvp and execve 1995-03-14 17:27:18 +00:00
Guido van Rossum dcce73af48 fix typos in escape() and print_form() 1995-03-14 17:22:28 +00:00
Guido van Rossum 0c891ce61a pickle classes; add format_version, load(s)/dump(s) shortcuts 1995-03-14 15:09:05 +00:00
Guido van Rossum 7849da8631 added PicklingError exception 1995-03-09 14:08:35 +00:00
Guido van Rossum 51b1c1c145 avoid math, don't abort when overflow check fails 1995-03-04 22:30:54 +00:00
Guido van Rossum 1dba24eeca remove redundant backslashes; some cosnetics 1995-03-04 22:28:49 +00:00
Guido van Rossum 7b5430f2e8 raise EOFError when load() hits EOF, instead of KeyError 1995-03-04 22:25:21 +00:00
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
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