summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Committing patch #591250 which provides "str1 in str2" when str1 is aBarry Warsaw2002-08-068-99/+140
| | | | string of longer than 1 character.
* Files are now their own iterator. The xreadlines method and moduleGuido van Rossum2002-08-061-0/+12
| | | | are obsolete.
* Add comment about os.path.walk()'s behavior with symbolic links.Steve Holden2002-08-061-0/+5
|
* Add next and __iter__ to the list of file methods that should raiseGuido van Rossum2002-08-061-1/+3
| | | | ValueError when called for a closed file.
* SF patch 580331 by Oren Tirosh: make file objects their own iterator.Guido van Rossum2002-08-062-34/+136
| | | | | | | | | | | | | | | | | | | | | | 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().)
* In the altbininstall target, which is the first subtarget for "make install",Jack Jansen2002-08-061-1/+7
| | | | | | 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".
* Patch #567296 by Pim Buurman, slightly modified by me so it can be disabledJack Jansen2002-08-061-2/+24
| | | | | | 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.
* Wrapper around _IBCarbon.Jack Jansen2002-08-061-0/+1
|
* Mention list.sort()Andrew M. Kuchling2002-08-061-8/+89
| | | | | | 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)
* SF patch #591305 Documentation err in bytecode defsNeal Norwitz2002-08-051-1/+1
|
* We only need to check for StopIteration here.Fred Drake2002-08-051-1/+1
|
* Patch by Ronald Oussoren: if there's a .lproj in the extras list alsoJack Jansen2002-08-051-1/+10
| | | | | check whether it contains a .nib, and do the Cocoa song and dance if it does.
* In copy() don't try to obtain an FSSpec until we know the destinationJack Jansen2002-08-051-6/+12
| | | | exists. Partial fix for #585923.
* Be a lot less verbose by default.Jack Jansen2002-08-052-6/+7
|
* Better output for errors, and some progress reports.Jack Jansen2002-08-051-1/+12
| | | | Handle the two modules with non-standard scanner module names.
* Fixed the last two bgen-based modules to be buildable on OSX.Jack Jansen2002-08-052-5/+6
|
* Initial prototype of framer: a tool to build the frame for extension modules.Jeremy Hylton2002-08-0512-0/+915
|
* Remove function definition from cStringIO.h.Jeremy Hylton2002-08-051-23/+4
| | | | xxxPyCObject_Import() seems to be a copy of PyCObject_Import().
* Since the errno module is needed by os._execvpe(), and that is used by theFred Drake2002-08-052-3/+1
| | | | | | | 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).
* SF patch 590294: os._execvpe security fix (Zack Weinberg).Guido van Rossum2002-08-051-0/+1
|
* SF patch 590294: os._execvpe security fix (Zack Weinberg).Guido van Rossum2002-08-051-21/+6
| | | | | | | | | | | | | | 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.)
* Enable building of Carbon toolbox modules with unix-Python.Jack Jansen2002-08-0526-58/+26
|
* Got rid of staticforward.Jack Jansen2002-08-054-11/+11
|
* This can now run under unix-Python too. You have to pass the folderJack Jansen2002-08-051-2/+6
| | | | to search on the command line in that case.
* Fixed to run better in unix-Python, and to cater for bgenlocationsJack Jansen2002-08-051-3/+7
| | | | possibly being missing.
* Typo: "now" --> "the new"Fred Drake2002-08-051-4/+4
|
* IDLE support for PEP 263.Martin v. Löwis2002-08-051-0/+5
|
* Moved bgenlocations to the Mac/Lib directory. Not perfect, but better thanJack Jansen2002-08-052-13/+61
| | | | | | | 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.
* Patch #590913: PEP 263 support.Martin v. Löwis2002-08-052-1/+188
|
* Use ascii_letters to avoid UnicodeErrors.Martin v. Löwis2002-08-051-1/+4
|
* Add a small description of PEP 263.Guido van Rossum2002-08-051-1/+3
|
* Added a cast to shut up a compiler warning.Jack Jansen2002-08-051-1/+1
|
* Renamed Py_Main to PyMac_Main as it has a different signature than the ↵Jack Jansen2002-08-051-4/+4
| | | | "normal" Py_Main, and that signature has appeared in a .h file.
* Added _IBCarbon module.Jack Jansen2002-08-054-0/+5
|
* SF 582071 clarified the .split() method's docstring to note that sep=NoneRaymond Hettinger2002-08-051-2/+2
| | | | will trigger splitting on any whitespace.
* Note that True and False are pickable objectsRaymond Hettinger2002-08-051-1/+1
|
* GvR provided solution to the socket rebinding timeout problem.Kurt B. Kaiser2002-08-053-7/+6
| | | | | | M PyShell.py M rpc.py M run.py
* Add 1 to lineno in deprecation warning. Fixes #590888.Martin v. Löwis2002-08-051-1/+3
|
* Test whether a Cyrillic text correctly appears in a Unicode literal.Martin v. Löwis2002-08-051-0/+2
|
* We don't really need the name of the test in the "test skipped" msg, andTim Peters2002-08-041-1/+1
| | | | having it there causes the line to wrap.
* Oops! Forgot the closing paren.Tim Peters2002-08-041-1/+1
|
* Finally got around to figuring out and documenting why this test failsTim Peters2002-08-041-2/+10
| | | | | | | | on Windows. The test_sequence() ERROR is easily repaired if we're willing to add an os.unlink() line to mhlib's updateline(). The test_listfolders FAIL I gave up on -- I don't remember enough about Unix link esoterica to recall why a link count of 2 is something a well- written program should be keenly interested in <wink>.
* Build the _IBCarbon module.Jack Jansen2002-08-041-0/+2
|
* The definitions for IBCarbonRuntime.hJack Jansen2002-08-041-0/+5
|
* Updated to something that works on my system, and regenerated module.Jack Jansen2002-08-042-12/+7
|
* Specify pathnames in a way that works on both OS9 and OSX.Jack Jansen2002-08-041-3/+3
| | | | You'll still have to manually edit it, though...
* Use universal newline input when scanning header files.Jack Jansen2002-08-041-3/+3
|
* Donovan Preston's interface to IBCarbon, allowing you to use InterfaceJack Jansen2002-08-043-0/+342
| | | | | | | | Builder carbon NIB files from Python. As-is, I may need to twiddle a few things as he donated this long ago. Donovan is now one of the four people in the world who know how to drive bgen!
* Changes to the OSX section:Jack Jansen2002-08-041-6/+13
| | | | | | | - steer people away from installing with sudo - warn that fink-installed software may cause trouble - explain why you might want a framework build and point people to Mac/OSX/README.
* Use the -n option of ln in stead of -h, as it also works with other ln'sJack Jansen2002-08-041-9/+9
| | | | people may have (fink, gnu).