Commit Graph

1017 Commits

Author SHA1 Message Date
Guido van Rossum 5c971677a5 Fuck. For PC support, this must be in the distribution. 1996-07-22 15:23:25 +00:00
Guido van Rossum ad8b3baa91 Restore the capability to pass a class (usually Pack) as an option to widget
creation; no longer support this for the config method.
1996-07-21 03:05:05 +00:00
Guido van Rossum 17f2b2dfed Don't use tktools, dummy! Reworded test message slightly. 1996-07-21 02:20:06 +00:00
Guido van Rossum 421bb0e389 fix canvas bind commands 1996-07-21 02:19:32 +00:00
Guido van Rossum 6d6a15bab2 Added option to refilemessages() to keep sequences 1996-07-21 02:18:22 +00:00
Guido van Rossum 154a539460 Changes for new parser module (Fred Drake) 1996-07-21 02:17:52 +00:00
Guido van Rossum 6e21cebfbb New opcodes BINARY_POWER, RAISE_VARARGS, CALL_FUNCTION, MAKE_FUNCTION 1996-07-21 02:16:53 +00:00
Guido van Rossum cd6aab91a5 Fixed restore_files(); added reset_files(); made these more flexible. 1996-06-28 17:28:51 +00:00
Guido van Rossum 80b0fa0d99 socket wrapper module around _socket for all Window platforms 1996-06-26 19:52:38 +00:00
Guido van Rossum 746ea3598a url2path for NT 1996-06-26 19:47:56 +00:00
Guido van Rossum 2281d35578 add nturl2path 1996-06-26 19:47:37 +00:00
Guido van Rossum d3901028cf Sjoerd's StringIO speed-up 1996-06-19 14:54:19 +00:00
Guido van Rossum bd6187fcce get rid of temporary README about Tommy's efforts 1996-06-17 17:15:28 +00:00
Guido van Rossum 990e619b45 new simple dialog module, incompatible 1996-06-17 17:14:46 +00:00
Guido van Rossum 84a00a80a2 Change defn of splitnport() to only accept valid digit strings. 1996-06-17 17:11:40 +00:00
Guido van Rossum 4e15599daa Import marshal before using it :-( 1996-06-17 17:10:45 +00:00
Guido van Rossum 6afff6139a Memoize _deepcopy_tuple() -- maybe this helps Tommy's problem. 1996-06-17 17:10:11 +00:00
Guido van Rossum 53725a2858 Added splitnport(), which is like splitport() but returns a numeric port,
is forgiving about semi-numeric port numbers, and allows you to specify
a default port (default is -1, None returned for nonnumeric port).
1996-06-13 19:12:35 +00:00
Guido van Rossum 601d332a3f Bastionification utility (useful for rexec clients) 1996-06-11 20:12:49 +00:00
Guido van Rossum 4cc4ab1735 Add third arg to split(). Add capwords() -- which uses that. 1996-06-11 18:45:15 +00:00
Guido van Rossum 8775d8b9dc Added capitalize() and capwords(). 1996-06-11 18:43:00 +00:00
Guido van Rossum 8c1529dc29 regenerated files from IRIX 5.3 headers 1996-06-11 15:03:14 +00:00
Guido van Rossum a7e4b28422 Support optional filename argument for retrieve() and urlretrieve(),
to specify where it should go (if specified, even local files will be
copied into the given file).
1996-06-11 00:16:27 +00:00
Guido van Rossum 69155682e6 small fix by Sjoerd 1996-06-10 19:04:02 +00:00
Guido van Rossum 3672aa2dcd change DumbWriter to derive from NullWriter 1996-05-29 00:02:30 +00:00
Guido van Rossum 3fd32ecd92 optimizations due to Fred Drake; added urldefrag() function 1996-05-28 23:54:24 +00:00
Guido van Rossum 1acbffe2e0 Conversions between mac paths and URLs 1996-05-28 23:52:06 +00:00
Guido van Rossum 9787bdafe0 Many improvements dure to Fred Drake 1996-05-28 23:50:49 +00:00
Guido van Rossum d2560b0f2e Docstringified and PASV support by Siebren (including new ftpcp() function). 1996-05-28 23:41:25 +00:00
Guido van Rossum 3ada87a508 fix typo in load_dynamic 1996-05-28 23:34:10 +00:00
Guido van Rossum f4aaf862fd Be more careful about default temp dir 1996-05-28 23:31:34 +00:00
Guido van Rossum 7a623d7e7c added &quot def 1996-05-28 23:18:55 +00:00
Guido van Rossum 1b5a1d0770 Total rewrite 1996-05-28 23:17:13 +00:00
Guido van Rossum 72e316428f made it work again with changed Tkinter 1996-05-28 23:15:20 +00:00
Guido van Rossum 0978f993e3 Major overhaul:
- Support ~[user] expansion.

- Remember last directory and pattern; optional 'key' argument
specifies different memory locations.

- Absolutify pathnames if possible.

- WM close event cancels the dialog.

- First arg to go() can be either a directory or a file (renamed to
dir_of_file); defaults to current directory.
1996-05-28 23:14:36 +00:00
Guido van Rossum 51b708ab61 don't export selection 1996-05-28 23:10:30 +00:00
Guido van Rossum 5feb54c461 added hdl protocol properties 1996-05-28 23:10:02 +00:00
Guido van Rossum 3c998825bd removed history comment 1996-05-28 23:09:09 +00:00
Guido van Rossum 2539528810 add translate() -- which was in strop per release 1.3 1996-05-28 23:08:45 +00:00
Guido van Rossum a13edb489b optimization of getheader() using a dictionary 1996-05-28 23:08:25 +00:00
Guido van Rossum fdd45cb858 Fix some obsolete names comments.
Change RHooks() interface to not require a 'rexec' instance argument;
added set_rexec() method instead (which must be called by the RExec
instance using this RHooks instance).

Support dynamic loading of modules, at least for those modules that
are ok built-in modules.  Added new interfaces set_trusted_path() and
load_dynamic() to RExec class (the default trusted path consists of
all absolute pathnames in sys.path).

Change copy_except() to actually try to delete the exceptions.
1996-05-28 23:07:17 +00:00
Guido van Rossum 9e6aa9d55b avoid eval() like the plague 1996-05-28 23:01:28 +00:00
Guido van Rossum dc42b8aa3d change Mac creator/type 1996-05-28 23:01:05 +00:00
Guido van Rossum 6cb84f3cde change return values of simple run* functions 1996-05-28 23:00:42 +00:00
Guido van Rossum 8460b94b50 removed unused globals 1996-05-28 22:59:58 +00:00
Guido van Rossum 508a092e2e added setcontext and parsesequence; several small fixes 1996-05-28 22:59:37 +00:00
Guido van Rossum 22a18904e4 export error == IOError 1996-05-28 22:58:40 +00:00
Guido van Rossum fa59cd73d4 bump version (sorry) 1996-05-28 22:58:15 +00:00
Guido van Rossum 503e50b0fa capitalize H3 headers; add 'cgi.' prefix to example code 1996-05-28 22:57:20 +00:00
Guido van Rossum ce84920e0c added * and + operators 1996-05-28 22:56:16 +00:00
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