Commit Graph

1173 Commits

Author SHA1 Message Date
Guido van Rossum
9d9af2c7a8 Fixes for the Mac. (Jack) 1997-08-12 18:21:08 +00:00
Guido van Rossum
a5e9fb6a65 Changes suggested by Jim fulton:
- Moved most imports to the top, for faster loadingf when using ni.
- Always open the temp file in binary mode.
1997-08-12 18:18:13 +00:00
Guido van Rossum
ca54982b2a Added TemporaryFile and wrapper class by Jim Fulton.
Look in more env vars (for NT: TEMP, TMP).
1997-08-12 18:00:12 +00:00
Guido van Rossum
d510b72fff Allow paths without drive specifier (Jack). 1997-08-12 14:47:24 +00:00
Guido van Rossum
e2ad88c202 Rewrite normcase() using string.translate... 1997-08-12 14:46:58 +00:00
Guido van Rossum
efa683726f Treat all HTTP/1.* versions the same. 1997-08-12 14:46:13 +00:00
Guido van Rossum
2567dd6d44 Two changes:
(1) No longer close self.sock; close it on close().  (Guido)

(2) Don't use regular expressions for what can be done simply with
string.split() -- regex is thread unsafe.  (Jeremy)

(3) Delete unused imports.  (Jeremy)
1997-08-11 21:52:17 +00:00
Guido van Rossum
0357d02eab Rewrite using class, to make waiting for processes possible;
by default children are waited for automatically.
1997-08-11 03:27:24 +00:00
Guido van Rossum
570278be6e Add test for function comparisons 1997-08-05 16:52:50 +00:00
Guido van Rossum
d6615ab30c Get READABLE c.s. from _tkinter instead of conditional definition.
in Tk.destroy(), reset _default_root to None when it is us.
1997-08-05 02:35:01 +00:00
Guido van Rossum
7995ed204a The reload(sys) test no longer works due to changes in the import
semantics.
1997-08-02 03:19:26 +00:00
Guido van Rossum
74d25e7d8a Mention decode_base64 in example. 1997-07-30 22:02:28 +00:00
Guido van Rossum
9a876a4500 Tweaks by Lars Wirzenius to parse some more forms of illegal dates:
the comma after the day name is optional if it is a recognized day
name; and the date and month may be swapped.  Thus, the following two
test dates will now be parsed correctly:
	Thu, Feb 13 12:16:57 1992
	Thu Feb 13 12:16:57 1992
1997-07-25 15:20:52 +00:00
Guido van Rossum
4e5cbcf5af Added createmessage() -- Lars Wirzenius. 1997-07-25 14:59:10 +00:00
Guido van Rossum
2e2525fd3c Patch by Lars Wirzenius to allow f.readline(length). 1997-07-25 14:56:01 +00:00
Guido van Rossum
ed57d7663e Regenerated; __assert__ becomes assert. 1997-07-23 18:10:52 +00:00
Guido van Rossum
68de37973f Add the option to pass an open file object to GzipFile. This obviates
the need for the StringIO subclass.
1997-07-19 20:22:23 +00:00
Guido van Rossum
64c6620934 Add optional 'quote' flag argument to escape(); if true, translate '"'
to '"'.
1997-07-19 20:11:53 +00:00
Guido van Rossum
1e8c8a20f2 New dialog routines (Fred Lundh) 1997-07-19 20:02:36 +00:00
Guido van Rossum
65c78e18b5 Use dictionary's update() method in _cnfmerge(). 1997-07-19 20:02:04 +00:00
Guido van Rossum
c864ad695f Nit: round delays to 0.1 second. 1997-07-18 23:50:22 +00:00
Fred Drake
e0ffabe375 Slight mods to make the module conform to the documentation. 1997-07-18 20:42:39 +00:00
Guido van Rossum
1557a7314c Checking in new module code.py -- utilities dealing with code objects.
Currently, contains one function: compile_command(), which helps
determining whether a source string is complete, incomplete or in
error.  This is useful when writing your own version of the Python
read-eval-print loop.
1997-07-18 16:57:52 +00:00
Guido van Rossum
f357d3ef52 This module is now completely obsolete.
Noted this in the XXX comments.
Also, changed all three functions to use the attributes if they exist.
1997-07-18 16:48:30 +00:00
Guido van Rossum
c444865994 No longer need to use codehack -- use co.co_firstlineno instead. 1997-07-18 16:47:40 +00:00
Guido van Rossum
2deb73a961 Use sys.exc_info() instead of sys.exc_{type,value,traceback}.
Also corrected a typo in format_stack (t should've been f).
1997-07-18 16:46:36 +00:00
Guido van Rossum
4994657c5f Some new tests by Jeffrey 1997-07-18 04:26:25 +00:00
Guido van Rossum
71fa97c60d Jeffrey's latest -- reorder my chages somewhat,
removed some of his own cruft.  Added \g<...> references in replacement text.
1997-07-18 04:26:03 +00:00
Guido van Rossum
9e18ec7dc9 Correctly implement sub, subn, and split. Also correct and augment
the cache code.
1997-07-17 22:39:13 +00:00
Guido van Rossum
a4f1a78b6e Jeffrey's next installment 1997-07-17 22:38:10 +00:00
Guido van Rossum
32d6f3c0ce Corresponding output. 1997-07-17 22:37:07 +00:00
Guido van Rossum
06c0ec94e4 Several additions from Jeffrey. 1997-07-17 22:36:39 +00:00
Guido van Rossum
23b225741c Added tests for sub, subn, and split. 1997-07-17 22:36:14 +00:00
Guido van Rossum
c3fb88be8b Fix xover implementation according to Fred Lundh. 1997-07-17 15:21:52 +00:00
Guido van Rossum
a0e4c1bffc Jeffrey's latest -- seems to solve most problems! 1997-07-17 14:52:48 +00:00
Guido van Rossum
75fce308bc Add flush() method to fake file. 1997-07-17 14:51:37 +00:00
Guido van Rossum
db2b70cb99 Fix bug found by kjpylint; change doc string to avoid "(" in column 1. 1997-07-16 16:21:38 +00:00
Guido van Rossum
9e48b272b9 Catch all exceptions in test modules. 1997-07-16 01:56:13 +00:00
Guido van Rossum
65cd989441 Added output from new tests. 1997-07-15 19:01:38 +00:00
Guido van Rossum
9ddd9dad80 Fixed a syntax error caused by a bad line in the Perl source. 1997-07-15 19:01:04 +00:00
Guido van Rossum
26d80e6714 Correct inf. while loop. 1997-07-15 18:59:04 +00:00
Guido van Rossum
e8b81313db Merged Jeffrey's changes in. 1997-07-15 18:47:48 +00:00
Guido van Rossum
16bd0ff16a Merged my changes in, and added all converted Perl tests. 1997-07-15 18:45:20 +00:00
Guido van Rossum
337c6d41d4 Jeffrey's version 1997-07-15 18:42:58 +00:00
Guido van Rossum
9f845ec64b More changes by Jeffrey. 1997-07-15 18:11:42 +00:00
Guido van Rossum
23b8d4c15e Tweak re_tests and test_re to differentiate between
groups that have no value and groups that are out of bounds.
1997-07-15 15:49:52 +00:00
Guido van Rossum
847ed4afb5 More tweaks; re.py is nearly there... 1997-07-15 15:40:57 +00:00
Guido van Rossum
531097502c Fix group() -- should be tuple even when re has exactly one group. 1997-07-15 15:40:29 +00:00
Guido van Rossum
09bcfd649a Jeffrey's latest -- almost there. 1997-07-15 15:38:20 +00:00
Guido van Rossum
04a1d74229 Jeffrey's newest 1997-07-15 14:38:13 +00:00