* Updated comment on design of imap()
* Added untraversed object in izip() structure
* Replaced the pairwise() example with a more general window() example
Greg Ward [Wed, 18 Jun 2003 00:53:06 +0000 (00:53 +0000)]
SF patch #755987 (Jim Ahlstrom):
This is a patch for Bug 755031: If a null byte appears in
a file name, Python zipfile.py retains it, but InfoZip
terminates the name. Null bytes in file names are used
as a trick by viruses. I tested WinZip, and it also
truncates the file name at the null byte.
The patch also fixes a buglet: If a zipfile incorrectly
uses a directory separator other than '/', there was an
invalid complaint that the central directory name does
not match the file header name.
I also removed my name from the top of the file. It was
there for legal reasons which I believe no longer apply.
Many people have worked on this file besides me.
Brett Cannon [Tue, 17 Jun 2003 21:52:34 +0000 (21:52 +0000)]
Change all header strings to be as if they were capitalize()'ed. Also call
capitalize in AbstractHTTPHandler before inserting headers into HTTP instance.
Ken Manheimer [Tue, 17 Jun 2003 19:18:57 +0000 (19:18 +0000)]
Remove short-circuitying grubbing by using last grubbed buffer. It's
evil - if the last grubbed buffer didn't happen to be the right one,
you couldn't remedy.
Mainline emacs compat - don't use third arg to buffer-substring (which
was for explicitly identifying the buffer in which to seek the
substring, and which turns out to be unnecessary).
Tim Peters [Tue, 17 Jun 2003 00:05:53 +0000 (00:05 +0000)]
SF bug 751956: graminit.[ch] don't build on windows
A change from Duncan Booth, to deal with changes in the way pgen gets
built. Note that graminit.[ch] aren't normally built on Windows (they're
obtained from CVS).
Neil Schemenauer [Mon, 16 Jun 2003 21:03:07 +0000 (21:03 +0000)]
Don't use the module object setattr when importing submodules. Instead,
operate on the module dictionary directly. This prevents spurious
depreciation warnings from being raised if a submodule name shadows
a builtin name.
Jeremy Hylton [Mon, 16 Jun 2003 20:19:49 +0000 (20:19 +0000)]
Remove many blanket try/except clauses.
SF bug [ 751276 ] cPickle doesn't raise error, pickle does (recursiondepth)
Most of the calls to PyErr_Clear() were intended to catch & clear an
attribute error and try something different. Guard all those cases
with a PyErr_ExceptionMatches() and fail if some other error
occurred. The other error is likely a bug in the user code.
This is basically the C equivalent of changing "except:" to
"except AttributeError:"
Jack Jansen [Mon, 16 Jun 2003 15:12:16 +0000 (15:12 +0000)]
Allow passing a build directory on the command line. Also, if the
build directory is found to exist we don't clean it up. We also
use configure -C. All this lets us keep build directories, which
graeatly speeds up the process of debugging installers.
Jack Jansen [Mon, 16 Jun 2003 15:10:47 +0000 (15:10 +0000)]
Only fix up pathnames in installed scripts when needed, i.e. when not installing
to /. Pathnames are correct for installing to / since the DESTDIR patch.
Brett Cannon [Sun, 15 Jun 2003 22:33:28 +0000 (22:33 +0000)]
Return None to signal that the module the object was defined in was not found when object has no __name__ attr but is needed to figure out location of object.
Tim Peters [Sun, 15 Jun 2003 22:05:58 +0000 (22:05 +0000)]
choose_boundary(): Incorporated a threadsafe incrementing counter, so that
unique boundary strings within a program run are guaranteed. On Windows,
duplicates were pretty likely, due to the coarse granularity of time.time.
Toned down the absurdly optimistic claims in the docstring.
Guido van Rossum [Sun, 15 Jun 2003 19:42:39 +0000 (19:42 +0000)]
Changes to install the new idle: it's now in Lib/idlelib instead of
Tools/idle, in both source and destination. (There are still problems
when running the IDLE icon, but they don't seem to have to do with the
installer.)
Guido van Rossum [Fri, 13 Jun 2003 19:28:47 +0000 (19:28 +0000)]
SF patch 707900, fixing bug 702858, by Steven Taschuk.
Copying a new-style class that had a reference to itself didn't work.
(The same thing worked fine for old-style classes.)
Jack Jansen [Fri, 13 Jun 2003 14:27:35 +0000 (14:27 +0000)]
- Allow access to poperties of the "application" OSA class directly from
the toplevel package. This already worked for elements, but now for
properties too. Fixes #753925.
- Even better, the toplevel class (such as Finder.Finder) now inherits
the element and property dictionaries of its application class and has
the necessary glue to allow you to say
f = Finder.Finder()
f.get(f.name)
Brett Cannon [Thu, 12 Jun 2003 08:01:06 +0000 (08:01 +0000)]
Make creation of temporary file and directory more portable. Also made cleanup
code use proper functions to get paths.
Changed the name of tar file that is searched for to be absolute (i.e., not use
os.extsep) since filename is locked in based on name of file in CVS
(testtar.tar).