Fred Drake [Mon, 28 Dec 1998 15:17:22 +0000 (15:17 +0000)]
Remove all use of $* in commands; some makes (Solaris 2.5, IRIX 6.X)
only expand this in dependency lists. Thanks for Sjoerd Mullendar for
pointing this out.
Guido van Rossum [Wed, 23 Dec 1998 23:04:17 +0000 (23:04 +0000)]
Added mt_interact() -- multithreaded version of interact().
interact() automatically uses this on Windows (where the
single-threaded version doesn't work).
Guido van Rossum [Wed, 23 Dec 1998 22:22:10 +0000 (22:22 +0000)]
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.]
Guido van Rossum [Wed, 23 Dec 1998 21:58:38 +0000 (21:58 +0000)]
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.
Guido van Rossum [Tue, 22 Dec 1998 16:49:16 +0000 (16:49 +0000)]
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.)
Guido van Rossum [Tue, 22 Dec 1998 13:50:33 +0000 (13:50 +0000)]
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.
Guido van Rossum [Mon, 21 Dec 1998 19:32:43 +0000 (19:32 +0000)]
Thanks to Chris Herborth, the thread primitives now have proper Py*
names in the source code (they already had those for the linker,
through some smart macros; but the source still had the old, un-Py names).
Fred Drake [Mon, 21 Dec 1998 18:56:13 +0000 (18:56 +0000)]
Clarify descriptions of some operations; it's not always clear that
strings are not actually modified. Problem reported by Dr. Peter
Stoehr <peter.stoehr@weihenstephan.org>.
Guido van Rossum [Mon, 21 Dec 1998 18:51:23 +0000 (18:51 +0000)]
Marc-Andre Lemburg notes about statparse():
"""
The message ID is returned lowercased and there is no way to access
the original ID the server sent. Now at least some news servers
are very picky about the case of the ID and return errors when
fetching articles with mixed case given a lowercased version
of the ID.
The solution is simple: remove the string.lower() call.
"""
(I might add that the lowercasing was probably introduced as a result
of sloppy copy-and-paste coding; there's a string.lower in a similar
piece of code a bit higher in the source, that makes more sense --
it's lowercasing the group name.)
Guido van Rossum [Mon, 21 Dec 1998 18:30:20 +0000 (18:30 +0000)]
100 bottles of beer on the wall example.
After a version by Fredrik Lundh that I found on the web somewhere.
(I like mine better, but of course that may have to do with my alcohol
consumption. :-)
Guido van Rossum [Mon, 21 Dec 1998 18:15:28 +0000 (18:15 +0000)]
Sjoerd Mullender:
- Fixed a bug where a syntax error was reported when a document
started with white space. (White space at the start of a document
is valid if there is no XML declaration.)
- Improved the speed quite a bit for documents that don't make use of
namespaces.
Jeremy Hylton [Fri, 18 Dec 1998 22:13:11 +0000 (22:13 +0000)]
patches from Andrew
NOTE: There is still a bug of some sort in the behavior of zlib. In
at least one case, inflate returns Z_OK (which is typically
interpreted to mean that more output space is needed) when it has
finished inflating a buffer. This has been reported as a bug to the
zlib maintainers; we may need to change the Python interface.
Guido van Rossum [Fri, 18 Dec 1998 20:17:13 +0000 (20:17 +0000)]
Sjoerd Mullender writes:
Here is my current version of xmllib.py and the documentation. This
version has some API changes with respect to the version currently in
Python (also the one in 1.5.2a).
This version supports XML namespaces.
Fred Drake [Fri, 18 Dec 1998 19:46:59 +0000 (19:46 +0000)]
When _PyString_Resize() reports failure, the variable referring to the
string we wanted to resize is set to NULL. Don't Py_DECREF() those
variables! (5 places)
Guido van Rossum [Fri, 18 Dec 1998 15:25:22 +0000 (15:25 +0000)]
Sjoerd Mullender:
File names with "funny" characters get translated wrong by
pathname2url (any variety). E.g. the (Unix) file "/ufs/sjoerd/#tmp"
gets translated into "/ufs/sjoerd/#tmp" which, when interpreted as a
URL is file "/ufs/sjoerd/" with fragment ID "tmp".
Here's an easy fix. (An alternative fix would be to change the
various implementations of pathname2url and url2pathname to include
calls to quote and unquote.
[The main problem is with the normal use of URLs:
url = url2pathname(file)
transmit url
url, tag = splittag(url)
urlopen(url)
]
In addition, this patch fixes some uses of unquote:
- the host part of URLs should be unquoted
- the file path in the FTP URL should be unquoted before it is split
into components.
- because of the latter, I removed all unquoting from ftpwrapper,
and moved it to the caller, but that is not essential
Barry Warsaw [Tue, 15 Dec 1998 04:36:22 +0000 (04:36 +0000)]
(py-goto-beginning-of-tqs): Finds the beginning of the triple quoted
string we find ourselves in, based on the passed in delimiter.
(py-compute-indentation): Fixes for indentation errors when we land
inside a triple quoted string. For example:
def foo():
if os.path.isfile(o_pri_mbox_file) and os.path.isfile(o_pub_mbox_file):
print """\
I found both a private and a public mbox archive file
private: %s
public : %s
I won't move either file, but you should choose one and move it to
%s
You may want to merge them manually, but be careful about exposing private
correspondences to the public.""" % (
o_pri_mbox_file, o_pub_mbox_file, mbox_file)
*----indentation would be wrong on this line.
Barry Warsaw [Tue, 15 Dec 1998 01:04:38 +0000 (01:04 +0000)]
Added most of the mechanism to change the strips from color variations
to color constants (i.e. red constant, green constant, blue
constant). But I haven't hooked this up yet because the UI gets more
crowded and the arrows don't reflect the correct values.
Fixed bug reported to Gregor Hoffleit:
> mpz.mpz('\xff') should return mpz(255). Instead it returns
> mpz(4294967295L). Looks like the constructor doesn't work with strings
> containing characters above chr(128).
Caused by using just 'char' where 'unsigned char' should have been used.
Guido van Rossum [Fri, 11 Dec 1998 20:44:56 +0000 (20:44 +0000)]
As noted by Per Cederqvist, new_buffersize() sometimes returns the
buffer increment, and sometimes the new buffer size. Make it do what
its name says, and fix the one place where this matters to the caller.
Also add a comment explaining why we call lseek() and then ftell().