summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add a test case for reporting the file name, and for reporting an errorMartin v. Löwis2000-10-062-3/+36
| | | | for incomplete input.
* In an incremental parser, close the parser after feeding everything.Martin v. Löwis2000-10-061-0/+1
|
* Don't use a file object as system id; try to propagate the file name toMartin v. Löwis2000-10-061-1/+3
| | | | the InputSource.
* Don't report a final chunk for an external entity parser.Martin v. Löwis2000-10-061-1/+0
|
* Move translation from expat.error to SAXParseException into feed, so thatMartin v. Löwis2000-10-061-17/+19
| | | | | | | | | | callers of feed will get a SAXException. In close, feed the last chunk first before calling endDocument, so that the parser may report errors before the end of the document. Don't do anything in a nested parser. Don't call endDocument in parse; that will be called in close. Use self._source for finding the SystemID; XML_GetBase will be cleared in case of an error.
* Include more information from the docstrings.Fred Drake2000-10-061-7/+49
|
* Another name.Fred Drake2000-10-061-0/+1
|
* Donn Cave <donn@oz.net>:Fred Drake2000-10-061-0/+2
| | | | | | | Fix large file support for BeOS. This closes SourceForge patch #101773. Refer to the patch discussion for information on possible alternate fixes.
* Fix a couple of typos in docstrings.Fred Drake2000-10-061-2/+2
|
* Fix really bad typo, noted by Neil Schemenauer <nas@arctrix.com>.Fred Drake2000-10-061-1/+1
|
* Add notes on the requirements for subclasses.Fred Drake2000-10-061-0/+19
| | | | This closes SourceForge bug #115928.
* Revise the versioning information to say that this was revised in 1.6,Fred Drake2000-10-061-1/+3
| | | | not added then, and note what the change was (ncurses, change to a package).
* Made a number of revisions suggested by Fredrik Lundh.Fred Drake2000-10-061-12/+33
| | | | | Revised the first paragraph so it doesn't sound like it was written when 7-bit strings were assumed; note that Unicode strings can be used.
* test_linuxaudio:Jeremy Hylton2000-10-063-90/+194
| | | | | | | | | | | | | | | | | | | | | | read the header from the .au file and do a sanity check pass only the data to the audio device call flush() so that program does not exit until playback is complete call all the other methods to verify that they work minimally call setparameters with a bunch of bugs arguments linuxaudiodev.c: use explicit O_WRONLY and O_RDONLY instead of 1 and 0 add a string name to each of the entries in audio_types[] add AFMT_A_LAW to the list of known formats add x_mode attribute to lad object, stores imode from open call test ioctl return value as == -1, not < 0 in read() method, resize string before return add getptr() method, that calls does ioctl on GETIPTR or GETOPTR depending on x_mode in setparameters() method, do better error checking and raise ValueErrors; also use ioctl calls recommended by Open Sound System Programmer's Guido (www.opensound.com) use PyModule_AddXXX to define names in module
* It turns out that Guido does not like or encourage the use of the termFred Drake2000-10-062-3/+3
| | | | | "disciplines" for the __*__() methods, so they should be referred to as "methods" or "special methods", as appropriate in context.
* __getslice__(): Make this use the constructor form that gets a sequenceFred Drake2000-10-061-3/+1
| | | | | | | | | | as a parameter; this was the only use of the base constructor or surgical alteration of another object's data attribute. This change simplifies the constructor requirements for subclasses. This relates to SourceForge bug #115928.
* Added a new "base" type, IOobject for which most of theJim Fulton2000-10-061-285/+355
| | | | | | | | | | | | | | | operations are defined. This will, hopefully clarify some of the logic. Added close test to raise proper error when operations are performed on closed StringIOs. Added a position argument to the truncate method. Added a size argument to readline. Added PyArg_Parse calls for methods that don't take arguments to make sure they don't take arguments.
* Uncommented tests that failed for cStringIO,Jim Fulton2000-10-061-17/+11
| | | | Added missing clode to make the clode test test a close. ;)
* Adding Jeremy's new test_import (SF patch 101709).Tim Peters2000-10-062-0/+45
|
* Add SAXReaderNotAvailable, and use it to distinguish between anMartin v. Löwis2000-10-065-5/+44
| | | | ImportError, and a missing driver.
* Removing these scripts. redemo.py lives on in Tools/scripts/.Guido van Rossum2000-10-062-298/+0
| | | | regexdemo.py is obsolete with the regex module.
* I'm moving redemo.py here from Demo/tkinter/guido, since it isGuido van Rossum2000-10-061-0/+171
| | | | | | | somewhat useful to learn regular expressions, and this way it'll be installed on Windows. This closes bug report 115609.
* [ Bug #113803 ] [2.0b1 NT4.0] printing non asci char causes idle to abortGuido van Rossum2000-10-061-44/+86
| | | | | | | | | | | | | | | http://sourceforge.net/bugs/?func=detailbug&bug_id=113803&group_id=5470 Add Unicode support and error handling to AsString(). Both AsString() and Merge() now return NULL and set a proper Python exception condition when an error happens; Merge() and other callers of AsString() check for errors from AsString(). Also fixed cleanup in Merge() and Tkapp_Call() return cleanup code; the fv array was not necessarily completely initialized, causing calls to ckfree() with garbage arguments! (Also reindented some lines that were longer than 80 chars and reformatted some code that used an alien coding standard.)
* Use the cvsinfo module instead of a module stuff off in my personalFred Drake2000-10-061-3/+2
| | | | collection.
* Support module to help work with checked-out CVS trees.Fred Drake2000-10-061-0/+81
|
* Donn Cave <donn@oz.net>:Fred Drake2000-10-061-56/+27
| | | | | | New README for BeOS R5. This closes SourceForge patch #101779.
* Donn Cave <donn@u.washington.edu>:Fred Drake2000-10-061-0/+10
| | | | | | | | Script to regenerate platform-specific modules of constants. [I moved common paths to variables for easier reading by humans. -- FLD] This closes SourceForge patch #101781.
* Donn Cave <donn@u.washington.edu>:Fred Drake2000-10-061-0/+1
| | | | Added definition of VERSION so this works as expected.
* Donn Cave <donn@u.washington.edu>:Fred Drake2000-10-061-1/+1
| | | | | | | | Do not assume that all platforms using a MetroWorks compiler can use POSIX threads; the assumption breaks on BeOS. This fix only helps for BeOS. This closes SourceForge patch #101772.
* Norman Vine <nhv@users.sourceforge.net>:Fred Drake2000-10-061-1/+1
| | | | | | tcp.h is not available on CygWin, so do not try to include it there. This closes SourceForge patch #101802.
* is_zipfile() description: Use the same name for the parameter as theFred Drake2000-10-061-3/+3
| | | | | | | code, in case someone wants to use it as a keyword paramter. ZIP_DEFLATED description: Do not reveal the specific value of the constant, since code should only use the symbolic name.
* Added a name.Fred Drake2000-10-061-0/+1
|
* Added section on threads problems on Reliant UNIX; this relates toFred Drake2000-10-061-7/+12
| | | | | | | bug #113797. We should be able to resolve this for the next release. Reflowed the comments on Monterey (64-bit AIX) to match the flow of the other platform-specific sections.
* [ Bug #110677 ] PRIVATE: various minor Tkinter things (PR#388)Guido van Rossum2000-10-061-12/+15
| | | | | | | | | | | | | | http://sourceforge.net/bugs/?func=detailbug&group_id=5470&bug_id=110677 Canvas.CanvasItem & Canvas.Group: - bind lacks an optional "add" param - unbind lacks an optional "funcid" param - tkraise/lower should call self.canvas.tag_XXXX (markus.oberhumer@jk.uni-linz.ac.at) Note: I'm *not* fixing "bbox() return value is inconsistent with Canvas.bbox()" -- it might break existing code.
* SF bug 115831 and Ping's SF patch 101751, 0.0**-2.0 returns inf rather thanTim Peters2000-10-064-62/+102
| | | | | | | | | | raise ValueError. Checked in the patch as far as it went, but also changed all of ints, longs and floats to raise ZeroDivisionError instead when raising 0 to a negative number. This is what 754-inspired stds require, as the "true result" is an infinity obtained from finite operands, i.e. it's a singularity. Also changed float pow to not be so timid about using its square-and-multiply algorithm. Note that what math.pow does is unrelated to what builtin pow does, and will still vary by platform.
* Remove some debugging messages - although this code is a complete hack, we ↵Mark Hammond2000-10-051-2/+2
| | | | dont need to announce it to the world every time they use freeze!
* Add support for "import re" -- it uses pre, but user code does not needFred Drake2000-10-051-0/+10
| | | | to.
* The _PyTuple_Resize() last_is_sticky flag must now always be false.Neil Schemenauer2000-10-051-6/+6
|
* Simplify _PyTuple_Resize by not using the tuple free list and droppingNeil Schemenauer2000-10-051-86/+24
| | | | | support for the last_is_sticky flag. A few hard to find bugs may be fixed by this patch since the old code was buggy.
* SF "bug" 115973: patches from Norman Vine so that shared libraries andTim Peters2000-10-052-1/+6
| | | | Tkinter work under Cygwin. Accepted on faith & reasonableness.
* translation(): Minor optimization patch which avoids instantiating theBarry Warsaw2000-10-051-1/+5
| | | | default value's instance unless it's absolutely necessary.
* Change all occurances ofBarry Warsaw2000-10-052-8/+8
| | | | | | | | | | | test -d "$directory" to test ! -z "directory" -a -d "directory" Apparently, on SunOS 4.1.4_JL (and other?) OSes, -d on an empty string always returns true. This closes SF bug #115392.
* [ Patch #101730 ] Add initial static support for Darwin/MacOSX.Guido van Rossum2000-10-052-343/+355
| | | | By D.K. Wolfe.
* Added Py_FPROTO macro which was available in Python 1.5.x and below.Marc-André Lemburg2000-10-051-0/+3
| | | | | | | This should not be used for new code, but will probably make porting old extensions to 2.0 a lot easier. Also see Bug #116011.
* Fix Bug #115907: encode '=' as '=3D' and not '=='Jeremy Hylton2000-10-051-121/+122
|
* Document the lookbehind assertions (closing bug#115119)Andrew M. Kuchling2000-10-051-0/+15
|
* Fix for SF bug #115987: PyInstance_HalfBinOp does not initialize theThomas Wouters2000-10-051-11/+11
| | | | | | result-object-pointer that is passed in, when an exception occurs during coercion. The pointer has to be explicitly initialized in the caller to avoid putting trash on the Python stack.
* Document expand() method of MatchObjectsAndrew M. Kuchling2000-10-051-0/+9
|
* Detect conflicting Python DLL on module import under Windows - as per [ ↵Mark Hammond2000-10-051-1/+152
| | | | Patch #101676 ]
* Better add at least a short docstring to the module!Fred Drake2000-10-051-1/+5
|