summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Expanded the unittests for the new width sensitive PyUnicode_Contains().Raymond Hettinger2002-08-061-0/+6
|
* Document handling of raw-unicode-escapes. Closes SF bug 587087.Raymond Hettinger2002-08-061-0/+8
|
* internal_connect(): Windows. When sock_timeout > 0 and connect() yieldsTim Peters2002-08-061-6/+14
| | | | | | | WSAEWOULDBLOCK, the second connect() attempt appears to yield WSAEISCONN on Win98 but WSAEINVAL on Win2K. So accept either as meaning "yawn, fine". This allows test_socket to succeed on my Win2K box (which it already did on my Win98SE box).
* Added a note about the inability to specify a pathname to a non-existingJack Jansen2002-08-061-1/+7
| | | | file in unix-Python.
* Changed a sentence that confused some people.Jack Jansen2002-08-061-2/+2
|
* Make more functions staticNeal Norwitz2002-08-061-2/+2
|
* Make readahead functions staticNeal Norwitz2002-08-061-5/+8
|
* Fix SF bug 574207 (chained __slots__ dealloc segfault).Guido van Rossum2002-08-061-10/+52
| | | | | | | | | | | This is inspired by SF patch 581742 (by Jonathan Hogg, who also submitted the bug report, and two other suggested patches), but separates the non-GC case from the GC case to avoid testing for GC several times. Had to fix an assert() from call_finalizer() that asserted that the object wasn't untracked, because it's possible that the object isn't GC'ed!
* Fix the markup so it doesn't break formatting.Fred Drake2002-08-061-4/+4
|
* Add testcase for SF bug 574207 (chained __slots__ dealloc segfault).Guido van Rossum2002-08-061-0/+14
| | | | Fix forthcoming.
* Added references to the email package.Fred Drake2002-08-063-2/+11
| | | | Closes SF bug #586937.
* Added a test for PyUnicode_Contains() taking into account the width ofBarry Warsaw2002-08-061-0/+1
| | | | Py_UNICODE.
* PyUnicode_Contains(): The memcmp() call didn't take into account theBarry Warsaw2002-08-061-1/+1
| | | | width of Py_UNICODE. Good catch, MAL.
* get rid of GETNAMEV macro - use GETITEM directlySkip Montanaro2002-08-061-12/+11
| | | | same idea as getting rid of GETCONST & GETNAME (see patch #506436)
* Add a coding cookie, because of the møøse quote.Guido van Rossum2002-08-061-0/+1
|
* Update the URL for getting zlib, and update the minimal requiredGuido van Rossum2002-08-061-4/+4
| | | | | version to 1.1.4 (because of the 1.1.3 security problem). Also replace a funny use of line.find() with line.startswith().
* Bump the LOOPS count. 50,000 iterations takes about 5 seconds on myGuido van Rossum2002-08-061-1/+1
| | | | machine -- that feels just right.
* Add some fine points: METH_KEYWORDS implies METH_VARARGS, and ob_sizeGuido van Rossum2002-08-061-6/+10
| | | | is no longer unused in type objects.
* Mark xreadlines deprecated. Don't use f.xreadlines() in test_iter.py.Guido van Rossum2002-08-063-2/+7
|
* Remove mention of deprecated xreadlines method.Guido van Rossum2002-08-062-3/+3
|
* Describe new "str1 in str2" behavior.Barry Warsaw2002-08-061-0/+4
|
* Document file.next(). Mark xreadlines obsolete (both method andGuido van Rossum2002-08-062-9/+26
| | | | | module). (One thing remains to be done: the gzip class has an xreadline method; this ought to be replaced by an iterator as well.)
* 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.