- 06 Aug, 2002 13 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Barry Warsaw authored
-
Guido van Rossum authored
module). (One thing remains to be done: the gzip class has an xreadline method; this ought to be replaced by an iterator as well.)
-
Barry Warsaw authored
string of longer than 1 character.
-
Guido van Rossum authored
are obsolete.
-
Steve Holden authored
-
Guido van Rossum authored
ValueError when called for a closed file.
-
Guido van Rossum authored
For a file f, iter(f) now returns f (unless f is closed), and f.next() is similar to f.readline() when EOF is not reached; however, f.next() uses a readahead buffer that messes up the file position, so mixing f.next() and f.readline() (or other methods) doesn't work right. Calling f.seek() drops the readahead buffer, but other operations don't. The real purpose of this change is to reduce the confusion between objects and their iterators. By making a file its own iterator, it's made clearer that using the iterator modifies the file object's state (in particular the current position). A nice side effect is that this speeds up "for line in f:" by not having to use the xreadlines module. The f.xreadlines() method is still supported for backwards compatibility, though it is the same as iter(f) now. (I made some cosmetic changes to Oren's code, and added a test for "file closed" to file_iternext() and file_iter().)
-
Jack Jansen authored
if we are running in an OSX framework enabled build directory, test that the framework infrastructure exists. This catches the very common error of doing "make install" in stead of "make frameworkinstall".
-
Jack Jansen authored
at compile time: use PBGetCatInfoSync() to get FInfo data in stead of GetFInfo. The latter doesn't work for folders. The former does, at least on OSX, and insofar the info makes sense for a folder.
-
Jack Jansen authored
-
Andrew M. Kuchling authored
Document heapq module Add PEP263 section (not sure I really understand the PEP's effect on 8-bit strings, though -- will have to experiment with it)
-
- 05 Aug, 2002 27 commits
-
-
Neal Norwitz authored
-
Fred Drake authored
-
Jack Jansen authored
check whether it contains a .nib, and do the Cocoa song and dance if it does.
-
Jack Jansen authored
exists. Partial fix for #585923.
-
Jack Jansen authored
-
Jack Jansen authored
Handle the two modules with non-standard scanner module names.
-
Jack Jansen authored
-
Jeremy Hylton authored
-
Jeremy Hylton authored
xxxPyCObject_Import() seems to be a copy of PyCObject_Import().
-
Fred Drake authored
setup.py (indirectly) script to build the standard dynamically loaded modules, the errno module is being made static so it will always be available. Closes SF bug #591205 (needed on trunk only).
-
Guido van Rossum authored
-
Guido van Rossum authored
1) Do not attempt to exec a file which does not exist just to find out what error the operating system returns. This is an exploitable race on all platforms that support symbolic links. 2) Immediately re-raise the exception if we get an error other than errno.ENOENT or errno.ENOTDIR. This may need to be adapted for other platforms. (As a security issue, this should be considered for 2.1 and 2.2 as well as 2.3.)
-
Jack Jansen authored
-
Jack Jansen authored
-
Jack Jansen authored
to search on the command line in that case.
-
Jack Jansen authored
possibly being missing.
-
Fred Drake authored
-
Martin v. Löwis authored
-
Jack Jansen authored
where it was: it is really a configuration file, not a normal module. By moving it into Mac/Lib we can now also store the location of bgen itself in there, which is needed because bgen isn't installed.
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Guido van Rossum authored
-
Jack Jansen authored
-
Jack Jansen authored
Renamed Py_Main to PyMac_Main as it has a different signature than the "normal" Py_Main, and that signature has appeared in a .h file.
-
Jack Jansen authored
-
Raymond Hettinger authored
will trigger splitting on any whitespace.
-
Raymond Hettinger authored
-