Commit Graph

1017 Commits

Author SHA1 Message Date
Fred Drake cab3c3b8d4 (Tkinter.py): Improve application basename determination to make .py and
.pyc extensions completely equivelent when locating the "profile"
	which should be read on startup.
1996-10-06 17:55:20 +00:00
Guido van Rossum 4be63d1725 Added getparamnames() to Message class -- return a list of all
parameters of the content-type header.
1996-10-04 20:14:02 +00:00
Guido van Rossum 8299e46831 Don't auto-install on import. This slows down apps that use
some of our modules for special purposes (e.g. rexec).
1996-10-04 19:57:11 +00:00
Fred Drake 3faf9b4d48 (Tkinter.py): Fixed dumb typo in Misc.tk_setPalette(). 1996-10-04 19:23:04 +00:00
Guido van Rossum fe779a1dc8 Don't mix stdout/stderr. 1996-10-02 14:57:28 +00:00
Guido van Rossum cc778ebd62 Add main program similar to pdb. 1996-10-01 02:55:54 +00:00
Guido van Rossum 24611f80e8 Always open file objects in binary mode. 1996-09-30 22:02:50 +00:00
Guido van Rossum dfd9cb1e12 Don't die if an ok file method (e.g. fileno) doesn't exist. 1996-09-30 18:50:44 +00:00
Fred Drake 3c602d7d0c (Tkinter.py): Many revisions for Tk 4.X: Added clipboard support, updated
selection interface, handle the -displayof option intelligently in
	many places.  Added "wm colormapwindows" and "winfo colormapfull"
	support.  Removed "focus default" and "focus none" method: these are
	not in Tk 4.X.
1996-09-27 14:06:54 +00:00
Fred Drake e9c515adc7 (Canvas.py): Added definition of CanvasItem.cget() as suggested by
Nils Fischbeck.
1996-09-26 20:21:26 +00:00
Guido van Rossum e7b9fde1b8 1. Correct typo in FileWrapper.close() (fix by AMK).
2. New trusted built-in modules cmath, errno, operator, parser.
3. Corrected bogus s_apply() -- the new one actually works (reported by AMK).
1996-09-25 18:47:39 +00:00
Guido van Rossum 6244867e56 Revamped test case and updated doc string. 1996-09-17 21:33:15 +00:00
Guido van Rossum 934a4cea85 Show names of locals in disco (Ka-Ping Yee) 1996-09-12 17:39:36 +00:00
Guido van Rossum 1550ff722d Layout and cleanup by Fred 1996-09-11 19:43:52 +00:00
Guido van Rossum 28d4ba24c9 Another batch... 1996-09-11 19:07:45 +00:00
Guido van Rossum 6e8ec59eb4 Implement lower by calling lower, not lift. 1996-09-11 14:25:41 +00:00
Guido van Rossum 6b7a7e9fe0 Bug fixes in index&icursor suggested by Nils Fischbeck. 1996-09-11 14:23:43 +00:00
Guido van Rossum 151fcfd101 Zapped obsolete opcode LOAD_GLOBALS. 1996-09-10 18:26:36 +00:00
Guido van Rossum ba885ffaa0 Added linux2 specific code :-( 1996-09-10 17:40:16 +00:00
Guido van Rossum 5f8ea10bc2 Fix bogus len() call 1996-09-10 17:39:56 +00:00
Guido van Rossum ec577d53a9 Correct sys.path[0] when used stand-alone 1996-09-10 17:39:34 +00:00
Guido van Rossum 974e46cc5e Fix type in loop stripping '__.' from name 1996-09-10 17:38:20 +00:00
Guido van Rossum 2ea05098eb close module file after loading 1996-09-10 17:37:44 +00:00
Guido van Rossum e6ad8913e2 One fix by sjoerd and one suggested by him. Bumped __version__ to 1.5.
Fix 1: add a method geturl() to the file-like object returned by urlopen().
Fix 2: treat http error 301 the same as error 302.
1996-09-10 17:02:56 +00:00
Guido van Rossum 688bbfc217 simpler version of the previous fix 1996-09-10 12:39:26 +00:00
Guido van Rossum 8535b29f39 compatibility changes suggested by Jack,
for tk_menuBar and tk_bindForTraversal
(i.e. don't call these for Tk >= 4.1)
1996-09-10 12:36:34 +00:00
Guido van Rossum 2c349bbc77 Rewritten by Lars Wizenius to add long options 1996-09-09 15:48:24 +00:00
Guido van Rossum 5c1d1ee8a8 Change to allow keyword args for Group,
suggested by Nils Fischbeck, adapted by Fred
1996-09-06 21:09:31 +00:00
Guido van Rossum 42b78e6441 Fixed Entry.select_from() to acually call the "select from" widget
command instead of the non-existant "select set".  (Fred)
1996-09-06 14:20:23 +00:00
Guido van Rossum c204c70c1a Added logging support. 1996-09-05 19:07:11 +00:00
Guido van Rossum e5e46e0d29 Fixed embarrassing logic bug in read_lines_to_outerboundary(). 1996-09-05 19:03:36 +00:00
Guido van Rossum 2caac73aa6 Added Menu.insert*() methods [Fred] 1996-09-05 16:46:31 +00:00
Guido van Rossum e1a7a3b3b3 Add initial values to variables to avoid crash in __del__ 1996-09-05 16:45:49 +00:00
Guido van Rossum f469d5b05d Get rid of nobody_uid() and import pwd -- not used here. 1996-09-04 23:42:04 +00:00
Guido van Rossum 5ab007b098 Subtle hack so the eps printed is not dependent on the formatting
habits of the C library we happen to use...
1996-08-29 19:00:46 +00:00
Guido van Rossum a9b60d9411 No double underscores for globals please 1996-08-26 22:34:57 +00:00
Guido van Rossum a8763e54ff Another batch of updates... 1996-08-26 18:33:32 +00:00
Guido van Rossum 78c9637075 Bump exposed __version__ to 1.4.
Correctly handle a URL containing user:password@host when using a proxy.
1996-08-26 18:09:59 +00:00
Guido van Rossum 0c8cf888eb Don't die when getuid() or getpid() aren't defined. 1996-08-26 16:40:20 +00:00
Guido van Rossum 3df7b5a546 Don't do truncation to 8+3 format -- this is used on NT file systems! 1996-08-26 16:35:26 +00:00
Guido van Rossum c75db0b7f4 Added Mime writer module (formerly in Grail) 1996-08-26 16:33:30 +00:00
Guido van Rossum cfd89355ef typo (cotinue -> continue) 1996-08-26 16:20:31 +00:00
Guido van Rossum 8e44991b34 Three sets of changes from Grail:
date: 1996/08/14 17:27:21;  author: fdrake;  state: Exp;  lines: +11 -9
(formatter.py):  Establish a consistent space-handling policy, so that all
        spaces are handled by the outermost context in which they might be
        considered.  (I.e., softspaces at element boundaries migrate
        outwards.)

        For instance: "<A> <IMG> </A>" becomes " <A><IMG></A> ".

        This avoids some of those nasty underlined spaces around images.  It
        does not affect spaces *between* images within an anchor.

date: 1996/08/01 17:02:09;  author: fdrake;  state: Exp;  lines: +3 -2
(formatter.py):  Added required parameter to the NullFormatter class; this
        was omitted by accident.

        Made AbstractFormatter.add_literal_data() handle preceeding softspace
        correctly instead of expecting the caller to do it.

date: 1996/07/23 22:18:56;  author: fdrake;  state: Exp;  lines: +1 -1
(formatter.py):  Correct assert_line_data() to update all internal conditions;
        This now handles headers with only image content immediately followed
        by anything.
1996-08-26 16:19:23 +00:00
Guido van Rossum f8abb38737 Slightly faster (un)quoting. 1996-08-26 15:56:12 +00:00
Guido van Rossum f480c674b1 Use correct separator for capwords(s, sep). 1996-08-26 15:55:00 +00:00
Guido van Rossum 9e3f42909a Emacs font-lock de-bogo-kludgificocity 1996-08-26 15:46:13 +00:00
Guido van Rossum 5c8c91bbc5 Changes for Canvas by Fred 1996-08-22 23:18:09 +00:00
Guido van Rossum f813f56bcd imghdr.what(): check for not h'. This lets
you do:
    imghdr.what(None, '')
And still go down the
1996-08-22 21:20:46 +00:00
Guido van Rossum c417ef8e57 Added a small test program. 1996-08-21 23:38:59 +00:00
Guido van Rossum 4747887880 New batch from Fred 1996-08-21 14:32:37 +00:00
Guido van Rossum d7abed3b14 Get rid of access statement 1996-08-20 20:40:07 +00:00
Guido van Rossum 3e065ada2c Attempt at Windows-NT compatibility. 1996-08-20 20:38:59 +00:00
Guido van Rossum 34f173110f Add optional separator character to capwords(), for completeness. 1996-08-20 20:25:41 +00:00
Guido van Rossum 63f0cf0840 delattr() can raise AttributeError, not KeyError.
Use keyword arg to set verbose flag in test func.
1996-08-20 20:25:08 +00:00
Guido van Rossum 422869a75c Correct description of splitext(). 1996-08-20 20:24:17 +00:00
Guido van Rossum 0f6a3bf490 Added locking hacks for AIX 1996-08-20 20:23:34 +00:00
Guido van Rossum f85de8a440 Added print_exception() convenience function. 1996-08-20 20:22:39 +00:00
Guido van Rossum 6ba66d0116 Improved tests; run twice, onece in normal mode, once in restricted mode. 1996-08-20 20:21:52 +00:00
Guido van Rossum 5c9bfe2b80 Get rid of debug print statements 1996-08-20 20:00:51 +00:00
Guido van Rossum 72fba794d6 Rename __test() to _test(). 1996-08-19 22:49:35 +00:00
Guido van Rossum 731630b5bf XDR interface, evolved from Demo/rpc/xdr.py by Barry. 1996-08-19 22:26:43 +00:00
Guido van Rossum e57c96ee4c site customization hook... 1996-08-17 19:56:26 +00:00
Guido van Rossum fe58e3e22c regen for Next 1996-08-16 18:14:41 +00:00
Guido van Rossum dcc057a793 Added routines to print, format and extract the current, ``live'' stack.
Also added print_list() and format_list() which format the output from
an extract_*() routine.
1996-08-12 23:18:13 +00:00
Guido van Rossum 7a7d5d8fcf Use splitx() in capwords() (bugfix after interface change for split()).
Give capwords a default pattern argument which will recognize words as
sequeces of [a-zA-Z0-9_].
1996-08-09 21:32:29 +00:00
Guido van Rossum abfd8064d8 This is the third time I check in this change :-(
Don't use assignments into inst.__dict__ to restore instance
variables; use setattr() instead.
1996-08-08 20:26:45 +00:00
Guido van Rossum afb5e93e77 For method=POST, append a query string from the environment or from
sys.argv[1], effectively merging the fields.
1996-08-08 18:42:12 +00:00
Guido van Rossum 306a8a6338 Add optional third parameter to split() and splitfields(), giving the
maximum number of delimiters to parse; e.g.
splitfields("a,b,c,d", ",", 2) -> ["a", "b", "c,d"].
1996-08-08 18:40:59 +00:00
Guido van Rossum a59d3e6d50 Changed split() to be compatible with changes to string.split(): the
optional third argument gives a maximum number of delimiters to parse.
The new function splitx() is like split() but returns a list
containing the words as well as the delimiters.
1996-08-08 18:39:18 +00:00
Guido van Rossum 37a6f16d2e Slight update of doc string -- suggest default args for __init__, no
longer complain that __getinitargs__ is an ugly name.
1996-08-08 18:35:22 +00:00
Guido van Rossum 4033ad7576 Restore 1.3 behavior of gettempdir(): if tempdir is already set, believe it. 1996-08-08 18:33:56 +00:00
Guido van Rossum 0523d63a5c Don't use 'false'; use '0'. 1996-08-08 18:32:15 +00:00
Guido van Rossum 5468a7b76b stupid typo in latest fix ('Name' should be 'name') 1996-08-08 18:31:42 +00:00
Guido van Rossum 524e9a450b Need to import * from types 1996-08-08 18:31:11 +00:00
Guido van Rossum fcce630a7d Added test for math module 1996-08-08 18:26:25 +00:00
Guido van Rossum 47347f0425 Use fcntl.h instead of sys/fcntl.h; use h2py.py from Tools/scripts 1996-08-08 18:25:40 +00:00
Guido van Rossum d44e0c3ace New AIX specific subdirs 1996-08-08 18:24:58 +00:00
Guido van Rossum 68f56e45f6 Don't trip over empty string in sys.path. 1996-07-31 21:18:42 +00:00
Guido van Rossum 24cf88d31e FreeBSD platform specific modules 1996-07-30 21:05:10 +00:00
Guido van Rossum 9afdabffa9 Add missing close parenthesis. 1996-07-30 20:16:21 +00:00
Guido van Rossum 053313a507 Change to use keyword args instead of dicts 1996-07-30 18:35:38 +00:00
Guido van Rossum be33c37fae Sh script to recreage generic machdep subdirectory 1996-07-30 16:36:42 +00:00
Guido van Rossum 3bb710d647 updated again 1996-07-30 16:35:26 +00:00
Guido van Rossum c8b4791d9e Two independent changes:
- accept empty string from focus_get
- map coords() return value through getdouble and splitlist
1996-07-30 16:31:32 +00:00
Guido van Rossum 8d12a1bcbc Function to guess which db package created a database. 1996-07-30 16:30:15 +00:00
Guido van Rossum 3534a8932a New, improved parseaddr() by Sjoerd. 1996-07-30 16:29:16 +00:00
Guido van Rossum 7698d12a8b Changes to make it work on FreeBSD 2.x. 1996-07-30 16:28:45 +00:00
Guido van Rossum f17361d314 Two changes suggested by Andrew Kuchling:
- move compile() inside try-except
- add code so you can do "python pdb.py <script> <arg> ..." to debug <script>
1996-07-30 16:28:13 +00:00
Guido van Rossum 81749b0754 Added optional second arg to what(), giving the data read from the file
(then f may be None).
1996-07-30 16:26:42 +00:00
Guido van Rossum 56a733856e Added BUILD_SLICE opcode. 1996-07-30 16:26:07 +00:00
Guido van Rossum 8ec318d43b Obsolete 1996-07-30 16:25:24 +00:00
Guido van Rossum 3b8e20d2c2 Added hook to os.environ to call putenv(), if it exists. 1996-07-24 00:55:17 +00:00
Guido van Rossum ed7253ca50 Added 3rd optional argument to translate(), a string of characters to delete.
Added maketrans(), a utility to create a translation table.
1996-07-23 18:12:39 +00:00
Guido van Rossum 99aa2a4132 Remove all CRLF -> LF translation for file uploads, since we cannot
reliably distinguish binary files from text files (and Mac Netscape
sends all files in "binary" form, i.e. it sends text files with only
CR delimiters...).
1996-07-23 17:27:05 +00:00
Guido van Rossum d3876d33d3 Renamed all occurrences of posix to os. 1996-07-23 03:47:28 +00:00
Guido van Rossum 773ab27f04 Changes by Jim Fulton: pass environ around as arg;
keep_blank_values option to parse().
1996-07-23 03:46:24 +00:00
Guido van Rossum a48bf79977 Added splitext() 1996-07-23 02:28:32 +00:00
Guido van Rossum 54afb3bf60 New versions generated on a Linux 2.x system by AMK 1996-07-22 23:46:00 +00:00
Guido van Rossum c7c5e697c3 Optimizations and one intentional loophole by Jim Fulton.
The optimizations consist mostly of using local variables to cache
methods or instance variables used a lot (e.g. "self.write").

The loopholes allows marshalling extension types as long as they have
a __class__ attribute (in which case they may support the rest of the
class piclking protocol as well).  This allows pickling MESS extension
types.
1996-07-22 22:26:07 +00:00
Guido van Rossum 77c29a1734 This is needed for users of Linux 2.x 1996-07-22 21:50:43 +00:00
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