Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Document that heappop() and heapreplace() raise IndexError if the heap | Guido van Rossum | 2002-08-07 | 1 | -1/+2 | |
| | | | | is empty. | |||||
* | Apply character{} markup. | Raymond Hettinger | 2002-08-07 | 1 | -16/+17 | |
| | ||||||
* | Replace abort with Py_FatalError. | Martin v. Löwis | 2002-08-07 | 2 | -2/+2 | |
| | ||||||
* | Described responsibilty of weakly referenced extension types to initialize | Raymond Hettinger | 2002-08-07 | 1 | -2/+23 | |
| | | | | | the weakreflist to NULL in the constructor and to fill the tp_flags slot with Py_TPFLAGS_HAVE_WEAKREFS. Closes SF bug 586583. | |||||
* | Describe nested scopes in the tutorial. Closes SF bug 500704. | Raymond Hettinger | 2002-08-07 | 1 | -6/+11 | |
| | ||||||
* | Oops. I accidentally commented out some tests. | Guido van Rossum | 2002-08-07 | 1 | -4/+4 | |
| | ||||||
* | Regenerated with OSA class inheritance and fix for non-ascii chars. | Jack Jansen | 2002-08-07 | 42 | -818/+2217 | |
| | ||||||
* | Fixed incorrect logic in determining whether we should initialize | Jack Jansen | 2002-08-07 | 1 | -2/+1 | |
| | | | | the classes' attribute list. | |||||
* | Documented os.fsync and os.fdatasync. Closes SF bug 584695. | Raymond Hettinger | 2002-08-07 | 1 | -0/+11 | |
| | ||||||
* | "Unbuffered" mode of class _fileobject wasn't actually unbuffered, | Guido van Rossum | 2002-08-07 | 2 | -8/+40 | |
| | | | | | | | | | | and this broke a Zope "pipelining" test which read multiple responses from the same connection (this attaches a new file object to the socket for each response). Added a test for this too. (I want to do some code cleanup too, but I thought I'd first fix the problem with as little code as possible, and add a unit test for this case. So that's what this checkin is about.) | |||||
* | - If an OSA identifier is a Python reserved word we now append an _ | Jack Jansen | 2002-08-07 | 1 | -8/+10 | |
| | | | | | | in stead of prepending it, which messes up "import * from". - A few ascii()s added again. - Changed the getbaseclasses a little, but it still isn't perfect. | |||||
* | Clarify that the bool instances are acceptable return values from | Fred Drake | 2002-08-07 | 1 | -4/+5 | |
| | | | | __nonzero__(), in response to SF bug #579991. | |||||
* | Use Py_FatalError instead of abort. | Martin v. Löwis | 2002-08-07 | 2 | -4/+6 | |
| | ||||||
* | Don't be over-enthusiastic with the ascii() calls: we don't need it if | Jack Jansen | 2002-08-07 | 1 | -19/+19 | |
| | | | | the result passes through backticks. | |||||
* | Donovan Preston's patch #538395, with some mods by me. | Jack Jansen | 2002-08-07 | 4 | -50/+183 | |
| | | | | | | | | | | | | This patch makes inheritance for OSA classes work. The implementation is a bit convoluted, but I don't immedeately see a simpler way of doing it. I added calls to ascii() everywhere we output strings that may contain non-ascii characters (Python has gotten very picky since the encoding patch:-). I also removed Donovan's different way of opening resource files: I don't seem to need it. | |||||
* | Quote the arguments, they may contain strings. | Jack Jansen | 2002-08-07 | 1 | -1/+1 | |
| | ||||||
* | Fix up some more markup problems. | Fred Drake | 2002-08-07 | 1 | -8/+9 | |
| | ||||||
* | Change the markup a bit more; the parameter was not marked as \var in the | Fred Drake | 2002-08-07 | 1 | -4/+8 | |
| | | | | sample code, and the note was marked as a logical thing. | |||||
* | Fix PEP 263 code --without-unicode. Fixes #591943. | Martin v. Löwis | 2002-08-07 | 2 | -0/+28 | |
| | ||||||
* | Fix markup errors. | Steve Holden | 2002-08-07 | 1 | -3/+3 | |
| | ||||||
* | Expanded the unittests for the new width sensitive PyUnicode_Contains(). | Raymond Hettinger | 2002-08-06 | 1 | -0/+6 | |
| | ||||||
* | Document handling of raw-unicode-escapes. Closes SF bug 587087. | Raymond Hettinger | 2002-08-06 | 1 | -0/+8 | |
| | ||||||
* | internal_connect(): Windows. When sock_timeout > 0 and connect() yields | Tim Peters | 2002-08-06 | 1 | -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-existing | Jack Jansen | 2002-08-06 | 1 | -1/+7 | |
| | | | | file in unix-Python. | |||||
* | Changed a sentence that confused some people. | Jack Jansen | 2002-08-06 | 1 | -2/+2 | |
| | ||||||
* | Make more functions static | Neal Norwitz | 2002-08-06 | 1 | -2/+2 | |
| | ||||||
* | Make readahead functions static | Neal Norwitz | 2002-08-06 | 1 | -5/+8 | |
| | ||||||
* | Fix SF bug 574207 (chained __slots__ dealloc segfault). | Guido van Rossum | 2002-08-06 | 1 | -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 Drake | 2002-08-06 | 1 | -4/+4 | |
| | ||||||
* | Add testcase for SF bug 574207 (chained __slots__ dealloc segfault). | Guido van Rossum | 2002-08-06 | 1 | -0/+14 | |
| | | | | Fix forthcoming. | |||||
* | Added references to the email package. | Fred Drake | 2002-08-06 | 3 | -2/+11 | |
| | | | | Closes SF bug #586937. | |||||
* | Added a test for PyUnicode_Contains() taking into account the width of | Barry Warsaw | 2002-08-06 | 1 | -0/+1 | |
| | | | | Py_UNICODE. | |||||
* | PyUnicode_Contains(): The memcmp() call didn't take into account the | Barry Warsaw | 2002-08-06 | 1 | -1/+1 | |
| | | | | width of Py_UNICODE. Good catch, MAL. | |||||
* | get rid of GETNAMEV macro - use GETITEM directly | Skip Montanaro | 2002-08-06 | 1 | -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 Rossum | 2002-08-06 | 1 | -0/+1 | |
| | ||||||
* | Update the URL for getting zlib, and update the minimal required | Guido van Rossum | 2002-08-06 | 1 | -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 my | Guido van Rossum | 2002-08-06 | 1 | -1/+1 | |
| | | | | machine -- that feels just right. | |||||
* | Add some fine points: METH_KEYWORDS implies METH_VARARGS, and ob_size | Guido van Rossum | 2002-08-06 | 1 | -6/+10 | |
| | | | | is no longer unused in type objects. | |||||
* | Mark xreadlines deprecated. Don't use f.xreadlines() in test_iter.py. | Guido van Rossum | 2002-08-06 | 3 | -2/+7 | |
| | ||||||
* | Remove mention of deprecated xreadlines method. | Guido van Rossum | 2002-08-06 | 2 | -3/+3 | |
| | ||||||
* | Describe new "str1 in str2" behavior. | Barry Warsaw | 2002-08-06 | 1 | -0/+4 | |
| | ||||||
* | Document file.next(). Mark xreadlines obsolete (both method and | Guido van Rossum | 2002-08-06 | 2 | -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 a | Barry Warsaw | 2002-08-06 | 8 | -99/+140 | |
| | | | | string of longer than 1 character. | |||||
* | Files are now their own iterator. The xreadlines method and module | Guido van Rossum | 2002-08-06 | 1 | -0/+12 | |
| | | | | are obsolete. | |||||
* | Add comment about os.path.walk()'s behavior with symbolic links. | Steve Holden | 2002-08-06 | 1 | -0/+5 | |
| | ||||||
* | Add next and __iter__ to the list of file methods that should raise | Guido van Rossum | 2002-08-06 | 1 | -1/+3 | |
| | | | | ValueError when called for a closed file. | |||||
* | SF patch 580331 by Oren Tirosh: make file objects their own iterator. | Guido van Rossum | 2002-08-06 | 2 | -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 Jansen | 2002-08-06 | 1 | -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 disabled | Jack Jansen | 2002-08-06 | 1 | -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 Jansen | 2002-08-06 | 1 | -0/+1 | |
| |