Guido van Rossum
e294cf620a
Add abspath()
1999-01-29 18:05:18 +00:00
Barry Warsaw
e11e3dee3e
Added a -s option which is useful for narrowing down memory leaks.
...
With -s only a single test is run. The next test run is chosen
sequentially from the list of all tests.
1999-01-28 19:51:51 +00:00
Barry Warsaw
ab11f60bb3
Added a new test for old filter() memory leak
1999-01-28 19:44:06 +00:00
Guido van Rossum
b657c9344f
Improvement of b/w compat note in help text for clear, by Richard Wolff.
1999-01-28 14:38:32 +00:00
Barry Warsaw
72588741dd
Slight reworking of this test. If nis.maps() gives a nis.error, then
...
raise an ImportError if not running verbose. This signals to the
regression framework that this test isn't applicable.
1999-01-28 04:54:33 +00:00
Guido van Rossum
583cc31c22
Get rid of do_clear_break / do_clb command -- it is redundant.
...
(It was left in accidentally after a long and arduous 3-way patch session.)
1999-01-27 22:43:55 +00:00
Barry Warsaw
f09f6a5565
Re-format the module docstring and document the new get() argument.
1999-01-26 22:01:37 +00:00
Guido van Rossum
e6506e753b
Patch by Chris Petrilli (not really tested since I don't know this
...
module myself) to accept an option keyword argument (vars) that is
substituted on top of the defaults that were setup in __init__. The
patch also fixes the problem where you can't have recusive references
inside your configuration file.
1999-01-26 19:29:25 +00:00
Guido van Rossum
3e0d319196
The usual.
1999-01-25 21:57:29 +00:00
Fred Drake
dfd8954e36
Allow recognition of attributes even if they don't have space in front
...
of them. I.e., '<a name="foo"href="bar.html">' will now have two
attributes recognized.
Based on comments from newgroup.
1999-01-25 21:57:07 +00:00
Guido van Rossum
2fff84d892
Don't die if CodeType doesn't exist -- ignore the error. This could
...
happen in restricted mode.
1999-01-25 21:37:02 +00:00
Guido van Rossum
0189c010c3
Correct typo in new function get_breaks().
1999-01-25 20:56:33 +00:00
Guido van Rossum
816a9fbd2c
Change clear syntax to support three alternatives:
...
clear
clear file:line
clear bpno bpno ...
Also print the breakpoint data after calling set_break(), because the
print statement in set_break() has gone.
1999-01-25 20:56:07 +00:00
Guido van Rossum
6ea27cc2c6
Change clear_break() to the old signature clear_break(file, line).
...
Add new clear_bpbynumber() with single bpno argument. (Adapted from
a patch by Richard Wolff.)
Also some cleanup in error messages and moved some comments into a
docstring.
1999-01-25 20:51:34 +00:00
Fred Drake
0237909e42
Enable os.path as a mostly-normal submodule, including "from os.path
...
import isfile" and "import os.path".
1999-01-19 16:05:13 +00:00
Greg Ward
f6cdcd509d
Added 'warn' method.
1999-01-18 17:08:16 +00:00
Guido van Rossum
433892021e
Added doc strings to the exception classes.
...
Contributed by Blake Winton, but considerably edited.
1999-01-15 04:03:46 +00:00
Guido van Rossum
40233ea70a
Patch by Piers Lauder: make exceptions classes.
...
Take opportunity to add more explanatory messages to exceptions.
1999-01-15 03:23:55 +00:00
Barry Warsaw
e75888eb85
Test the rfc822.py module. Contains just a few simple cases, and some
...
troublesome ones encountered on the c.l.py list.
1999-01-14 20:00:58 +00:00
Barry Warsaw
8a578436f4
Message.getaddrlist(): This now handles multiple occurances of the
...
named header, so that if a message has, e.g. multiple CC: lines, all
will get returned by the call to getaddrlist(). It also correctly
handles addresses which show up in continuation lines.
AdderlistClass.__init__(): Added \n to self.CR which fixes a bug that
sometimes, an address would contain a bogus trailing newline.
Message.getaddress(): In final else clause, added a test for the
character we're at being in self.specials. Without this, such
characters never get consumed and we infloop. Case in point (as
posted to c.l.py):
To: <[smtp:dd47@mail.xxx.edu]_at_hmhq@hdq-mdm1-imgout.companay.com>
----------------------------^
otherwise we'd infloop here
1999-01-14 19:59:58 +00:00
Guido van Rossum
348fd06890
In rcpt(), avoid a space after the TO: address when the option list is
...
empty. Make sure there is a space when there are options.
1999-01-14 04:18:46 +00:00
Guido van Rossum
e1bf7e8c1d
Change the order of the utime() and the chmod() call in copystat().
...
This doesn't make a bit of difference on Unix, but apparently on
Windows NT you need write permission before you can set the utime...
1999-01-14 00:42:00 +00:00
Greg Ward
d1dc47558c
Added: mems.lib.text_file: provides TextFile class for parsing text
...
files with (optional) comment stripping, blank line skipping, whitespace
removal, and line joining with trailing backslashes.
1999-01-13 16:12:04 +00:00
Guido van Rossum
0039d7b4e6
A gift from Sam Rushing - modules asyncore and asynchat for the
...
standard Python library. (Async socket support.)
1999-01-12 20:19:27 +00:00
Fred Drake
f4bb656a4f
DumbWriter.send_paragraph(): Fix problem with DumbWriter reported to
...
the newsgroup by Raymond Tong Leng Ng <rntl@yahoo.com>.
1999-01-12 18:13:27 +00:00
Fred Drake
6a1b53c165
get_config_h_filename(): Fix to work with current Python
...
installations; it was picking up a stale config.h from an
overwritten installation.
1999-01-11 15:34:55 +00:00
Guido van Rossum
0bdbe6c5f0
Added some more comments.
1999-01-10 06:09:13 +00:00
Barry Warsaw
302331a3b6
FieldStorage.__init__(): if there is no content-type header, use
...
text/plain for inner parts, but application/x-www-form-urlencoded
for outer parts. Honor any existing content-type header.
Lower down, if the content-type header is something we don't
understand (say because it there was a typo in the header coming from
the client), default to text/plain for inner parts, but
application/x-www-form-urlencoded for outer parts.
1999-01-08 17:42:03 +00:00
Andrew M. Kuchling
5c355201e2
Fixed bug in the common-case code for HTTP URLs; it would lose the query,
...
fragment, and/or parameter information.
3 cases added to the test suite to check for this bug.
1999-01-06 22:13:09 +00:00
Guido van Rossum
2386d7333f
Constants for [f]statvfs() (new in posixmodule.c) by Steve Clift.
1999-01-06 18:54:57 +00:00
Fred Drake
522af3a126
Update and add docstrings.
1999-01-06 16:28:34 +00:00
Fred Drake
dc1aedfe2e
Move brief descriptions of what() and whathdr() to docstrings in the
...
functions (from comments).
1999-01-06 15:20:49 +00:00
Greg Ward
9ddaaa1a30
Another patch from Fred: factored _init_posix into
...
get_config_h_filename, get_makefile_filename, parse_config_h, and
parse_makefile.
1999-01-06 14:46:06 +00:00
Guido van Rossum
f4bf044999
Got rid of whatraw().
...
Doc-string-ified the lead comments.
Added auto call of test() when run as script.
1999-01-06 13:05:58 +00:00
Guido van Rossum
638d7f14f8
Add extend() method. A small New Year's present from Jean-Claude Wippler.
1999-01-06 12:49:24 +00:00
Guido van Rossum
4494101858
Incorporate fix suggested by /Fredrik Lundh in the newsgroup to cope
...
with trailing garbage generated by some broke uuencoders.
1999-01-05 18:02:24 +00:00
Guido van Rossum
f8d579c5e3
This hopefully fixes the problem of having to set PATH
...
in autoexec.bat in order to find the Tcl DLLs -- Tkinter calls FixTk
which will hunt around in a few common places and then set PATH
and try again, or else issue a big clarifying error message.
1999-01-04 18:06:45 +00:00
Guido van Rossum
82eae9eaa7
Added mt_interact() -- multithreaded version of interact().
...
interact() automatically uses this on Windows (where the
single-threaded version doesn't work).
1998-12-23 23:04:17 +00:00
Guido van Rossum
db01ee0e22
Patch by Mike Meyer:
...
Extended the rfc822 parsedate routines to handle the cases they failed
on in an archive of ~37,000 messages. I believe the changes are
compatible, in that all previously correct parsing are still correct.
[I still see problems with some messages, but no showstoppers.]
1998-12-23 22:22:10 +00:00
Guido van Rossum
9a4d63730e
Patch by Mike Meyer:
...
Add a class to mailbox.py for dealing with qmail directory mailboxes.
The test code was extended to notice these being used as well.
1998-12-23 22:05:42 +00:00
Guido van Rossum
99e1131536
Avoid crash in parsedate_tz() on certain invalid dates -- when the
...
field assumed to be the time is in fact the year, the resulting list
doesn't have enough items, and this isn't checked for. Return None
instead.
1998-12-23 21:58:38 +00:00
Barry Warsaw
0720177e3d
Small, and final docstring merge with Dragon's version.
1998-12-22 20:37:36 +00:00
Guido van Rossum
c822a453bd
Add warning to Netrc's docstring that it is obsolete -- use the netrc
...
module instead. (The main advantage of the latter is that it comes
with documentation.)
1998-12-22 16:49:16 +00:00
Guido van Rossum
af5add4629
New test function by Sjoerd, adding -t option.
1998-12-22 14:23:50 +00:00
Guido van Rossum
7ea1d972d1
The usual.
...
# Message to all python-checkins readers: we have a problem with the
# CVS mirroring software. You can't check out the latest changes yet.
# We hope to have fixed this by noon EST today.
1998-12-22 13:50:33 +00:00
Greg Ward
3c8e54bf62
Applied Fred's patch to fix the bugs that John Skaller noticed.
1998-12-22 12:42:04 +00:00
Guido van Rossum
9c30c24bc2
Adding shlex and netrc by Eric Raymond.
1998-12-22 05:19:29 +00:00
Barry Warsaw
a7d9bdfab6
A few other docstring fixes, most importantly to be a little nicer to
...
Emacs ;-)
1998-12-22 03:24:27 +00:00
Barry Warsaw
4c4bec86f4
Nothing earthshattering, just some fixes to typos and other formatting
...
bugs in various docstrings.
1998-12-22 03:02:20 +00:00
Guido van Rossum
d147a6c35a
Renaming Lib/plat-beos1 to Lib/plat-beos at Chris Herborth's request
1998-12-21 19:18:55 +00:00