Commit Graph

1103 Commits

Author SHA1 Message Date
Roger E. Masse 6da2953f1e gl is a *huge* module. This is a very simple test that insures that
all the modules attributes are present and creates a small criss-cross
window for 5 seconds (example from the documentation :-)  A more
comprehensive test would probably be useful... but maybe overkill.
1996-12-24 19:36:07 +00:00
Barry Warsaw fb817cd4a2 Output files
test_rotor.py: New test of the rotor module.

test_*: converted to the new test harness.  GvR note!  test_signal.py
works interatively (i.e. when verbose=1) but does not work inside the
test harness.  It must be a timing issue, but I haven't figured it out
yet.
1996-12-23 23:40:11 +00:00
Barry Warsaw 5e056bbb76 test_rotor.py: New test of the rotor module.
test_*: converted to the new test harness.  GvR note!  test_signal.py
works interatively (i.e. when verbose=1) but does not work inside the
test harness.  It must be a timing issue, but I haven't figured it out
yet.
1996-12-23 23:39:42 +00:00
Roger E. Masse f85f052035 Very very small comment change. 1996-12-20 22:39:24 +00:00
Roger E. Masse fab8ab8067 Many scripts, but small changes. Update the way the scripts obtain the
'verbose' flag ala GvR updated test harness architecture.

Old way:

	verbose = 0
	if __name__ == '__main__':
		verbose = 1

New way:

	from test_support import verbose

Some other small readablility and functionality updates.
1996-12-20 22:36:52 +00:00
Barry Warsaw 4b722788ae added test of the regex module
[NOTE: testall.py and autotest.py might could go away soon, I've
 played with Guido's new regrtest.py script and it seems to work well.
 I'll wait until Guido gives the word to completely switch over -- and
 change the Makefile too!]
1996-12-20 22:00:21 +00:00
Roger E. Masse 4455cd8e19 More and better comments. 1996-12-20 21:52:29 +00:00
Roger E. Masse 3507f502c9 Minor semantic cleanup. 1996-12-20 21:47:58 +00:00
Roger E. Masse e9e0bd90ae Output for test script for the SGI imgfile module. 1996-12-20 21:42:09 +00:00
Roger E. Masse 033d91b784 Test script for the SGI imgfile module. 1996-12-20 21:41:50 +00:00
Roger E. Masse 470dcbf8e3 8 bit greyscale test file needed for testing imageop and imgfile. 1996-12-20 20:50:10 +00:00
Roger E. Masse 47e98307e0 Test program for the SGI imageop module. 1996-12-20 20:49:06 +00:00
Roger E. Masse cfaac40e31 test output for SGI imageop C module. 1996-12-20 20:47:17 +00:00
Guido van Rossum 0b25a662e0 Two new files (to shut up regrtest). 1996-12-20 03:14:42 +00:00
Guido van Rossum 4f30aff585 Added example DL for SGI IRIX. 1996-12-20 03:13:36 +00:00
Guido van Rossum 4fdb744f53 Added test for minmax. 1996-12-20 03:13:06 +00:00
Guido van Rossum 152494aea2 New regression test harness. See usage message / doc string. 1996-12-20 03:12:20 +00:00
Guido van Rossum 2bde783a97 Import verbose flag from test_support instead of testing __name__. 1996-12-20 03:03:39 +00:00
Guido van Rossum 0a94cc788e Set test_support.verbose to 0, to signal tests only to generate
portable output.
1996-12-20 03:03:01 +00:00
Guido van Rossum 531661c1ae Add verbose flag for regression test to clear. 1996-12-20 02:58:22 +00:00
Barry Warsaw a09ec19a33 Test of the operator module 1996-12-18 19:56:22 +00:00
Roger E. Masse 96bd636ad1 Test script output for the UNIX group file access module (grp) 1996-12-18 19:37:07 +00:00
Roger E. Masse 749cc6b241 Test script for the UNIX group file access module (grp) 1996-12-18 19:36:34 +00:00
Guido van Rossum 5eaf457869 Different operation in verbose mode: show the supported nonstandard
options.  Also added two: %n and %t (newline and tab character).
1996-12-18 18:03:10 +00:00
Barry Warsaw af82a7ef49 In lieu of harness rewrite, fixed problem with test_thread ImportError
triggering a bogus TestFailed exception.
1996-12-18 16:39:31 +00:00
Roger E. Masse d87e0bf651 Test output for the GNU dbm module (gdbm) 1996-12-17 19:54:46 +00:00
Roger E. Masse 62a017c092 Test script for the GNU dbm module (gdbm) 1996-12-17 19:54:27 +00:00
Roger E. Masse 0bff94ffdf Added the test output for fcntl. 1996-12-17 17:41:36 +00:00
Roger E. Masse fb01d4b1a4 Added a test script for the fcntl C module. 1996-12-17 17:41:09 +00:00
Barry Warsaw 8069f43815 Output for _xdr module test 1996-12-17 00:02:45 +00:00
Barry Warsaw 3863fb53b8 A test of the _xdrmodule (not the entire xdr.py module). 1996-12-17 00:00:53 +00:00
Barry Warsaw 237efc5d6f Added _xdrmodule test 1996-12-17 00:00:17 +00:00
Barry Warsaw ac3acc2b48 (test_thread): output from thread test 1996-12-16 23:42:56 +00:00
Barry Warsaw af0a1a6530 (test_thread.py): modifications to quiet it up when not running as a script.
(testall.py): added test_thread to the list of regression tests.
1996-12-16 23:42:35 +00:00
Fred Drake 09bcf8c031 (sgmllib.py): Partial acceptance of patch from David Leonard
<leonard@dstc.edu.au>; allows hyphen and period in the middle
	of attribute names.  Still not allowed as first character;
	as first character these are illegal in the Reference Concrete
	Syntax, and we've not identified any use of these characters as
	the first char in an attribute name in deployment on the web.
1996-12-16 21:56:27 +00:00
Roger E. Masse b6454e58bc Updated test_crypt test to jive with bwarsaw testing style 1996-12-16 20:44:56 +00:00
Roger E. Masse a38ab505b6 Revised output for test_crypt 1996-12-16 20:44:16 +00:00
Roger E. Masse 9c6db35a1e Revised test for errno ala bwarsaw's testing paradigm. 1996-12-16 20:40:20 +00:00
Roger E. Masse 8a51de4cdd Output files for test_dl and test_errno 1996-12-16 20:36:05 +00:00
Roger E. Masse e00d4da7fa Added test_dl to harness 1996-12-16 20:34:43 +00:00
Roger E. Masse 2362b58952 Revised strategy for testing recomended by bwarsaw 1996-12-16 20:25:44 +00:00
Roger E. Masse 8ba76d3cf3 Added test_errno to the test suite 1996-12-16 20:20:33 +00:00
Roger E. Masse 7eee08d04f Test for the dl module. This only works for SunOS and Solaris.
I've attempted to make a test that silently exits if either
module dl is not present, we're not on a Sun OS, or a standard
shared library ('/usr/lib/libresolv.so') is not found...  Otherwise,
It does a simple test of dlmodule on that library.  I *think*
this would be ok to add to testall.py but I'll wait till I hear
some feedback on the liberalness of this approach.
1996-12-13 20:32:26 +00:00
Barry Warsaw 2cc8163e30 nonstandard_expectations is only added when in verbose mode, so we
don't need the if test for verbosity when checking for results of an
unsupported option.
1996-12-13 18:12:34 +00:00
Barry Warsaw 4c23b5fdbc Hmm, now that I think about it, we *can* use time.time() and 'date' if
running verbose.
1996-12-13 18:08:58 +00:00
Barry Warsaw 4eb01cd372 More or less portabilized.
1. If a conversion isn't supported on the current platform, just
   ignore it, unless running as a script (i.e. verbose)

2. Don't use time.time() and os.popen('date') to get the raw values.
   These will always be different!
1996-12-13 18:07:07 +00:00
Barry Warsaw 3c700ed613 Fixed 1996-12-13 18:05:28 +00:00
Guido van Rossum 0564e12367 Added quote_plus() and unquote_plus(), to do space/plus substitutions
for form field values.
1996-12-13 14:47:36 +00:00
Barry Warsaw e3c0170ba0 Output file for module struct test 1996-12-13 00:25:52 +00:00
Guido van Rossum 27eb14d894 Added support for 4-channel on SGI.
Allow specifying the test file on the command line.
1996-12-13 00:19:56 +00:00
Guido van Rossum 25bcdb0e56 Added QUADRO. 1996-12-13 00:19:15 +00:00
Guido van Rossum 0caa7ec206 Fixed conversion between seconds and milliseconds. 1996-12-12 23:42:20 +00:00
Barry Warsaw 07a0eeceaa A test of the struct module 1996-12-12 23:34:06 +00:00
Barry Warsaw cb17a465eb Print final report, either all tests OK, or list of failed and missing
tests.
1996-12-12 22:34:26 +00:00
Barry Warsaw 1c92eba2dd Print a more meaningful message when a test's output file wasn't
found.
1996-12-12 22:21:10 +00:00
Guido van Rossum 32616fbee6 Make sure ok_builtin_modules, ok_dynamic_modules and
builtin_module_names are always tuples.
1996-12-12 21:31:52 +00:00
Guido van Rossum 15d1079dd2 Fixed test_strftime to be silent when called from autotest. 1996-12-12 19:07:19 +00:00
Guido van Rossum 483705c5a9 Added test_strftime (Skip Montanaro). 1996-12-12 19:03:11 +00:00
Guido van Rossum 6cdd7a0433 Add mktime_tz() which turns a date_tz 10-tuple into a standard Unix timestamp. 1996-12-12 18:39:54 +00:00
Guido van Rossum c0967cd4a2 Added a bunch of new winfo options; we should now be up to date with
Tk 4.2.  The new winfo options supported are: mananger, pointerx,
pointerxy, pointery, server, viewable, visualid, visualsavailable.

Also fixed bugs in winfo_colormapfull() and winfo_containing().
1996-12-12 16:43:05 +00:00
Barry Warsaw 792c94a320 A test of the select module that is actually reproduceable! 1996-12-11 23:58:46 +00:00
Barry Warsaw 042a207061 Output of rgbimg module test 1996-12-11 21:42:38 +00:00
Barry Warsaw 8bc74ceb8b Added test of rgbimg module 1996-12-11 21:41:42 +00:00
Barry Warsaw 66e7f3ac43 minor formatting nit 1996-12-11 21:40:04 +00:00
Guido van Rossum dbfed710a1 Be more careful with the shuffling of stdout. 1996-12-11 16:54:54 +00:00
Barry Warsaw d96dfb72ea Output of the nis and pwd module tests 1996-12-11 16:54:15 +00:00
Barry Warsaw 3d070fb391 Test of the pwd module 1996-12-11 16:53:51 +00:00
Barry Warsaw ebfa2c4417 Added test_pwd 1996-12-11 16:52:56 +00:00
Guido van Rossum 2b6c2faa64 Rewrite without using try-except to break out of two loops. 1996-12-11 16:28:30 +00:00
Barry Warsaw 870d5c67ae Just test one key/value pair for one NIS map. I.e. don't test them
all because it can take a really long time.
1996-12-11 16:07:30 +00:00
Barry Warsaw 3236b334ef test of the nis module 1996-12-11 01:01:38 +00:00
Barry Warsaw 7822681992 added test_nis 1996-12-11 01:01:09 +00:00
Barry Warsaw dde5c70c8a Test output files in their new location 1996-12-10 23:20:09 +00:00
Barry Warsaw e4a252ef88 Directory for test output files: Output => output 1996-12-10 23:19:14 +00:00
Barry Warsaw 2e644a0f86 When run as a script, runs each test and sends results to stdout
(i.e. this restores the old functionality).

Note that if a test couldn't be imported, it is just ignored (and no
warning is printed).
1996-12-10 23:10:39 +00:00
Barry Warsaw 272c00b634 New regression testing harness.
(testall.out): obsolete.  see individual test output files in the
Output directory.

(testall.py): now contains only the list of all tests

(autotest.py): The new testing harness.  Supports -g option to
generate output files instead of verifying; -w option to warn about
non-tested optional modules; additional command line arguments to
generate or test individual tests (useful for generating output file
of new tests).
1996-12-10 19:51:10 +00:00
Barry Warsaw 924e5d55b7 A test of the `new' module. The new.code() test is fairly bogus since
I'm really not sure what the proper inputs are.  I do flex the
function call though by passing in arguments of the proper type.  I
don't try to exec the code object that gets returned!
1996-12-10 16:28:53 +00:00
Barry Warsaw 0f150e41be Added test_new. 1996-12-10 16:27:16 +00:00
Guido van Rossum 5de1f8dac8 The usual; added several test modules, too. 1996-12-10 16:02:14 +00:00
Guido van Rossum bd01374da8 Add optional data argument to urlopen() and open_http(), to trigger POST. 1996-12-10 16:00:28 +00:00
Guido van Rossum 8b82baa398 In the HTTP reply header, be more accepting in the HTTP version. 1996-12-10 15:58:22 +00:00
Roger E. Masse 16f9fd2bcf Added a test script for dbmmodule.c and added it to testall.py and
updated testall.out
1996-12-10 00:06:24 +00:00
Barry Warsaw 3ac30af867 Added test_new 1996-12-10 00:02:57 +00:00
Roger E. Masse 75362381b5 new test script for cryptmodule.py 1996-12-09 23:13:45 +00:00
Roger E. Masse b6b85ddc95 Test script/output for cryptmodule.c added to testall.py and testall.out 1996-12-09 23:13:07 +00:00
Roger E. Masse 3daddda165 New test module for complex math module 1996-12-09 22:59:15 +00:00
Roger E. Masse b71035782e Added test_cmath.py to test complex math module 1996-12-09 22:58:42 +00:00
Barry Warsaw 3ab26b9d75 (testall.py): Slightly improved test harness to make it easier to add
simple tests.

(testall.py, testall.out): Added MD5 testsuite
1996-12-09 22:34:15 +00:00
Barry Warsaw 49852831fc Added test_strop 1996-12-09 21:49:55 +00:00
Barry Warsaw ad522facf7 Added tests of all strop module functions, and touching of module
variables
1996-12-09 21:49:10 +00:00
Guido van Rossum 6c832ebfe9 Added test_array output line. 1996-12-09 21:37:33 +00:00
Roger E. Masse 8db1b0764b module to test the arraymodule created and added to testall.py 1996-12-09 20:09:16 +00:00
Barry Warsaw 6ab7f077ff Added test_time 1996-12-06 23:30:49 +00:00
Barry Warsaw 5bebca2ac2 Added 'test_time' 1996-12-06 23:30:33 +00:00
Barry Warsaw b0c2232011 test of time module. not terribly fancy, but it does touch every
function and variable in the module, verifies a few return values and
even tests a couple of known error conditions.
1996-12-06 23:30:07 +00:00
Barry Warsaw 75eccc5bcf Unpacker.get_buffer(): new method to access the internal buffer of data 1996-12-04 22:04:39 +00:00
Guido van Rossum f06ee5fa07 /usr/local/bin/python -> /usr/bin/env python 1996-11-27 19:52:01 +00:00
Guido van Rossum 29e77816f5 Added safeguard against failure in __del__. 1996-11-27 19:39:58 +00:00
Guido van Rossum 40a172c779 Added ALL='all'. 1996-11-20 22:20:21 +00:00
Guido van Rossum 58103d3b11 Turn leading minus sign into underscore for image widget name -- the
hyphen confused Tk into thinking the name was an option.
1996-11-20 22:17:38 +00:00
Guido van Rossum 27cb8a4884 Added support for timezone in date field. getdate_tz() and
parsedate_tz() return a 10-tuple, the last field is the tz offset in
seconds (e.g. -18000 or -5 hours for EST).
1996-11-20 22:12:26 +00:00
Guido van Rossum 3c8484e866 When re-raising an exception raised by a module used internally as
IOError, keep the traceback.
1996-11-20 22:02:24 +00:00
Guido van Rossum 3508d60f99 When removing a messge from all sequences, don't remove from 'cur',
which needs to stay unless explicitly set.
1996-11-12 04:15:47 +00:00
Guido van Rossum e08c04c387 Added 'strict_parsing' option to all parsing functions. This causes a
ValueError exception when the query string contains fields that don't
contain exactly one '=' sign.  (By default, such fields are simply
ignored.)  Added this to the doc string describing parse() and
parse_qs().

Also changed the default for keep_blank_values from None to 0 (the
preferred way to spell 'FALSE').
1996-11-11 19:29:11 +00:00
Guido van Rossum 73eba25f5f Don't require leading '-' on option name to Text.tag_cget 1996-11-11 19:10:58 +00:00
Guido van Rossum c5d7e80739 Fix the way the Authorization header is sent (how could this have worked?). 1996-11-11 19:01:17 +00:00
Guido van Rossum c45289cb81 The usual :-( 1996-10-24 22:27:16 +00:00
Guido van Rossum 40f7a55608 Get rid of bogus binding of <Delete> to a function that deletes the next
character (this is already a built-in binding now).
1996-10-24 18:34:36 +00:00
Guido van Rossum 16d5b113f6 Fix truncated paragraph in doc string.
Bump version to 2.0.
1996-10-24 14:44:32 +00:00
Guido van Rossum 9b67621b66 Cast mtime gotten from stat() to long int -- else it won't work
on the Mac.

Jack!  Please fix this in the Mac distributions!
1996-10-24 13:42:30 +00:00
Guido van Rossum d804bab721 Make self.rfile unbuffered (self.wfile already is). This should fix
CGIHTTPServer.py when used with the POST command.
1996-10-23 14:30:23 +00:00
Guido van Rossum 149574767c Added support for floating point resolution to Scale.get(). 1996-10-23 14:16:28 +00:00
Guido van Rossum 176f10e3d5 Get rid of evil workaround for Python 1.4b2 bug. 1996-10-22 18:59:47 +00:00
Guido van Rossum 5b1b33c7f4 Fix another case where... 1996-10-22 13:28:37 +00:00
Guido van Rossum 9cb018e693 Change the default seeding -- use 8 bits of sub-second precision and
fold in the higest 8 bits of the time as well.
1996-10-21 23:20:03 +00:00
Guido van Rossum b6685dcfeb The usual... 1996-10-21 18:10:19 +00:00
Fred Drake 0c373691ae (Tkinter.py): Fixed bug in re-implementation of OptionMenu. 1996-10-21 17:09:31 +00:00
Guido van Rossum 28574b557b (Fred Drake:) Re-wrote the OptionMenu class to allow access to a real
Menu object via om['menu'] -- this is necessary to use a post-command
with an OptionMenu.  The API has not changed.
1996-10-21 15:16:51 +00:00
Guido van Rossum 008ec689be Added warning not to import directly. 1996-10-15 14:40:41 +00:00
Guido van Rossum 4808dcb564 Allow code objects to be passed to run() and eval(). 1996-10-15 14:40:21 +00:00
Guido van Rossum e449af7da9 Ellipses -> Ellipsis rename (the dictionary really says that it should
be Ellipsis!).
Bumped the API version because a linker-visible symbol is affected.
Old C code will still compile -- there's a b/w compat macro.
Similarly, old Python code will still run, builtin exports both
Ellipses and Ellipsis.
1996-10-11 16:25:41 +00:00
Guido van Rossum 8741b2b988 Added Slice and Ellipses types. 1996-10-11 16:00:06 +00:00
Guido van Rossum b030bc026e Fix some cases where self.openedurl wasn't set. 1996-10-10 16:01:16 +00:00
Guido van Rossum b5fa1cb855 Don't add names that start with _ 1996-10-10 16:00:28 +00:00
Fred Drake ca8cdc6066 (formatter.py): Simplify NullFormatter definition of add_hor_rule() to match
documentation.
1996-10-08 21:57:47 +00:00
Guido van Rossum 5b1d9bad32 Remove RCS crud... Sigh... 1996-10-08 14:15:25 +00:00
Guido van Rossum a4a75278d9 Removed RCS crud from official Python release version. 1996-10-08 14:14:49 +00:00
Guido van Rossum b8cc6ae5a1 The usual... Sigh... 1996-10-08 14:13:43 +00:00
Guido van Rossum 6592f88fc0 Removed debugging print statement 1996-10-08 14:10:51 +00:00
Guido van Rossum edaf1c931c Simple test module for strop. 1996-10-08 14:07:56 +00:00
Guido van Rossum 3159e1e1ef Change to always call list.append with a single argument.
This does not mean I still support this code!!!
1996-10-08 14:07:21 +00:00
Guido van Rossum 2715bb20db Changes to always call list.append with a single argument. 1996-10-08 14:06:35 +00:00
Guido van Rossum b7f48e39c3 Change to always call list.append with a single argument. 1996-10-08 14:06:17 +00:00
Guido van Rossum a97b8eef70 Set the __file__ attribute of the imported module in both versions of
load_module(), to mimick the behavior of imp more closely.
1996-10-07 23:41:54 +00:00
Guido van Rossum ccd8b19c99 Add provisions to set the (to be documented!) instance variable
'writer' of the NullFormatter to the writter passed in, or to a
NullWriter if none (or None) is passed in.
1996-10-07 21:29:49 +00:00
Guido van Rossum 36fc11e894 Compromise on test in find_class(): a user-defined function is okay,
but a built-in function is not.
1996-10-07 14:34:20 +00:00
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