summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Document that heappop() and heapreplace() raise IndexError if the heapGuido van Rossum2002-08-071-1/+2
| | | | is empty.
* Apply character{} markup.Raymond Hettinger2002-08-071-16/+17
|
* Replace abort with Py_FatalError.Martin v. Löwis2002-08-072-2/+2
|
* Described responsibilty of weakly referenced extension types to initializeRaymond Hettinger2002-08-071-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 Hettinger2002-08-071-6/+11
|
* Oops. I accidentally commented out some tests.Guido van Rossum2002-08-071-4/+4
|
* Regenerated with OSA class inheritance and fix for non-ascii chars.Jack Jansen2002-08-0742-818/+2217
|
* Fixed incorrect logic in determining whether we should initializeJack Jansen2002-08-071-2/+1
| | | | the classes' attribute list.
* Documented os.fsync and os.fdatasync. Closes SF bug 584695.Raymond Hettinger2002-08-071-0/+11
|
* "Unbuffered" mode of class _fileobject wasn't actually unbuffered,Guido van Rossum2002-08-072-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 Jansen2002-08-071-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 fromFred Drake2002-08-071-4/+5
| | | | __nonzero__(), in response to SF bug #579991.
* Use Py_FatalError instead of abort.Martin v. Löwis2002-08-072-4/+6
|
* Don't be over-enthusiastic with the ascii() calls: we don't need it ifJack Jansen2002-08-071-19/+19
| | | | the result passes through backticks.
* Donovan Preston's patch #538395, with some mods by me.Jack Jansen2002-08-074-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 Jansen2002-08-071-1/+1
|
* Fix up some more markup problems.Fred Drake2002-08-071-8/+9
|
* Change the markup a bit more; the parameter was not marked as \var in theFred Drake2002-08-071-4/+8
| | | | sample code, and the note was marked as a logical thing.
* Fix PEP 263 code --without-unicode. Fixes #591943.Martin v. Löwis2002-08-072-0/+28
|
* Fix markup errors.Steve Holden2002-08-071-3/+3
|
* 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
|