summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* _exceptions: Format a missing system id as <unknown>.Martin v. Löwis2000-10-092-5/+7
| | | | expatreader: Use the error handler instead of raising exception directly.
* Fixed leapdays(). From Patch #101841, by Denis S. Otkidach.Guido van Rossum2000-10-091-2/+4
|
* Adapt test output to changed error message.Guido van Rossum2000-10-081-1/+1
|
* Correct output.Guido van Rossum2000-10-081-1/+1
|
* It seems our sound cards can't play mulaw data. Use native-formatGuido van Rossum2000-10-081-1/+12
| | | | 16-bit signed data instead. Hope this works for you; it works for me.
* Don't use string methods to allow sharing this code with PyXML.Martin v. Löwis2000-10-071-1/+2
|
* Fixed too ambitious "nothing to repeat" check. Closes bug #114033.Fredrik Lundh2000-10-074-3/+6
|
* The test is good, but Jim forgot to check in the updated output.Fred Drake2000-10-071-0/+6
|
* Donn Cave <donn@oz.net>:Fred Drake2000-10-074-0/+994
| | | | Generated files for BeOS R5.
* Record bugs found when comparing the module with DOM Core Level 2.Martin v. Löwis2000-10-071-1/+4
|
* SRE didn't handle character category followed by hyphen inside aFredrik Lundh2000-10-072-0/+4
| | | | | character class. Fix provided by Andrew Kuchling. Closes bug #116251.
* Updated test with a case which checks for the bug reported inMarc-André Lemburg2000-10-071-0/+1
|
* Possible fix for Skip's bug 116136 (sre recursion limit hit in tokenize.py).Tim Peters2000-10-071-12/+20
| | | | | | | | | | | tokenize.py has always used naive regexps for matching string literals, and that appears to trigger the sre recursion limit on Skip's platform (he has very long single-line string literals). Replaced all of tokenize.py's string regexps with the "unrolled" forms used in IDLE, where they're known to handle even absurd (multi-megabyte!) string literals without trouble. See Friedl's book for explanation (at heart, the naive regexps create a backtracking choice point for each character in the literal, while the unrolled forms create none).
* Add .toxml test case, as proposed by Alex Martelli in bug report #116244.Martin v. Löwis2000-10-062-1/+7
|
* minidom: access attribute value before printing itMartin v. Löwis2000-10-062-12/+14
| | | | | | correct order of constructor args in createAttributeNS pulldom: use symbolic names for uri and localnames correct usage of createAttribute and setAttributeNode signatures.
* 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.
* Fix a couple of typos in docstrings.Fred Drake2000-10-061-2/+2
|
* test_linuxaudio:Jeremy Hylton2000-10-062-4/+65
| | | | | | | | | | | | | | | | | | | | | | 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
* __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.
* 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.
* 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.
* [ 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-061-30/+55
| | | | | | | | | | 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.
* Add support for "import re" -- it uses pre, but user code does not needFred Drake2000-10-051-0/+10
| | | | to.
* translation(): Minor optimization patch which avoids instantiating theBarry Warsaw2000-10-051-1/+5
| | | | default value's instance unless it's absolutely necessary.
* Fix Bug #115907: encode '=' as '=3D' and not '=='Jeremy Hylton2000-10-051-121/+122
|
* Fix for test_class.py on Win64. id(self), which on Win64 returns aTrent Mick2000-10-041-1/+1
| | | | | PyLong, was used for the return value of a class __hash__ method, which *must* return a PyInt. Solution: hash() the id(self) value.
* test_popen2 broke on Windows shortly after 2.0b2 was released. Fixed it.Tim Peters2000-10-031-1/+1
|
* Support non-namespace elements in *ElementNS of XMLGenerator.Martin v. Löwis2000-10-032-3/+15
|
* Recompile pattern if (?x) flag was found inside the pattern during theFredrik Lundh2000-10-032-2/+9
| | | | first scan. Closes bug #115040.
* Fix a few problems with the _Printer class and the license variable.Guido van Rossum2000-10-031-23/+41
| | | | | | | | | | | | | | | | 1. repr(license) will no longer print to stdout and read from stdin; you have to use license(). `license` is a short message explaining this. 2. Use lazy initialization so that startup isn't slowed down by the search for the LICENSE file. 3. repr(license) actually returns the desired string, rather than printing to stdout and returning ''. (Why didn't we think of this before?) 4. Use the pythonlabs license URL as the license fallback instead of the CNRI license handle.
* On some systems (like Solaris), the master end of a tty/pty pair isThomas Wouters2000-10-031-2/+0
| | | | | | apparently not considered a terminal, and so isatty(3) returns false. So we skip the test for ttyness of the master side and just check the slave side, which should really be a terminal.
* Fixed negative lookahead/lookbehind. Closes bug #115618.Fredrik Lundh2000-10-031-0/+2
|
* Undo Ping's change.Guido van Rossum2000-10-031-1/+1
| | | | | | | | | CGI scripts should *not* use /usr/bin/env, since on systems that don't come standard with Python installed, Python isn't on the default $PATH. Too bad that this breaks on Linux, where Python is in /usr/bin which is on the default path -- the point is that you must manually edit your CGI scripts when you install them.
* Change first line to #!/usr/bin/env python (really just to test check-in).Ka-Ping Yee2000-10-031-1/+1
|
* Bump version to 1.0.Greg Ward2000-10-031-1/+1
|
* Remove some debugging prints.Greg Ward2000-10-031-2/+0
|
* Fixed so --no-compile is a negative alias for --compile.Greg Ward2000-10-031-0/+1
|
* Added a long-winded comment (and commented-out comment to go with out)Greg Ward2000-10-031-1/+17
| | | | | | | | | | about how it would be nice to write absolute paths to the temporary byte-compilation script, but this doesn't work because it screws up the trailing-slash trickery done to 'prefix' in build_py's 'byte_compile()' method. Fixed to use 'execute()' instead of 'os.remove()' to remove the temporary script: now it doesn't blow up in dry-run mode!
* Provide a clearer error message when urlopen fails because of anJeremy Hylton2000-10-021-5/+13
| | | | | | | | | | invalid proxy setting. Minor change to call of unknown_url; always pass data argument explicitly since data defaults to None. PEP 42: Add as a feature that urllib handle proxy setting that contain only the host and port of the proxy.
* Remove redundent information from a docstring.Fred Drake2000-10-021-3/+0
|
* Delay import of py_compile until needed, since is is only used by theFred Drake2000-10-021-31/+45
| | | | | | | | PyZipFile class. End sentences in docstrings with periods. Reformat docstrings to be more similar to those of other modules.
* Do not set Konquerer to be the default browser if $KDEDIR is set -- someFred Drake2000-10-021-3/+1
| | | | | | Linux distributions which provide both KDE and Gnome set this environment variable even if the user is not using KDE. We do *not* want to start Konquerer if KDE is not running unless the user actually tells us to!
* Typo fix.Greg Ward2000-10-021-1/+1
|