summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Bastian Kleineidam: fix up any supplied command-line options.Greg Ward2000-10-141-1/+16
|
* Now supports entire Python 2.0 language and still supports PythonJeremy Hylton2000-10-134-93/+463
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 1.5.2. The compiler generates code for the version of the interpreter it is run under. ast.py: Print and Printnl add dest attr for extended print new node AugAssign for augmented assignments new nodes ListComp, ListCompFor, and ListCompIf for list comprehensions pyassem.py: add work around for string-Unicode comparison raising UnicodeError on comparison of two objects in code object's const table pycodegen.py: define VERSION, the Python major version number get magic number using imp.get_magic() instead of hard coding implement list comprehensions, extended print, and augmented assignment; augmented assignment uses Delegator classes (see doc string) fix import and tuple unpacking for 1.5.2 transformer.py: various changes to support new 2.0 grammar and old 1.5 grammar add debug_tree helper than converts and symbol and token numbers to their names
* Updated test suite to latest pulldom changes.Lars Gustäbel2000-10-132-19/+19
|
* Moved appendChild calls back to DOMEventStream.Lars Gustäbel2000-10-131-7/+27
| | | | Added SAX2DOM class.
* Clear siblings, now that they are being set.Paul Prescod2000-10-131-0/+2
|
* Make the regrtest.py -l (findleaks) option considerably less obnoxious.Neil Schemenauer2000-10-131-4/+10
| | | | | | First, only report garbage that the GC cannot free. Second, only report the number of objects found, not their repr(). People can dig deeper on their own if they find a leak.
* Fix SF bug #116263: support for from .. import *Jeremy Hylton2000-10-123-4/+13
| | | | | | transformer.py: return '*', None from com_import_as_name pycodegen.py: special case for name == '*' pyassem.py: fix stack counting for IMPORT_ opcodes
* If the status line is invalid, assume it is a pre-1.0 response. TheJeremy Hylton2000-10-121-3/+10
| | | | msg/headers are empty and the entire response is treated as the body.
* Recreated after installer source code changes.Thomas Heller2000-10-121-246/+246
| | | | | This should close SF bug (patch) http://sourceforge.net/patch/?func=detailpatch&patch_id=101844&group_id=5470
* two fixes for redirects:Jeremy Hylton2000-10-121-24/+31
| | | | | | | | | | | | | | | - don't close the fp, since that appears to also close the socket - join the original url with the redirect reponse to deal with relative redirect URL wrap two socket ops in try/except to turn them into URLErrors, so that client code need only catch one exception. in HTTPError.__del__ only close fp if fp is not None style changes: - use f(*args) instead of apply(f, args) - use __super_init instead of super.__init__(self, ...)
* cosmetic changes only:Jeremy Hylton2000-10-121-118/+118
| | | | use standard Python style for whitespace near = and ()
* Added a test for the StringIO write() error I just fixed.Guido van Rossum2000-10-122-0/+9
|
* [ Bug #116636 ] Bug in StringIO.write()Guido van Rossum2000-10-121-0/+2
| | | | | | | | | | | | http://sourceforge.net/bugs/?func=detailbug&bug_id=116636&group_id=5470 bobalex@rsv.ricoh.com Bug report: If the file position is less than the end of the "file", and a write is performed extending past then end of the file, the data string is corrupted. Solution: in write(), when writing past the end, properly set self.len when newpos is > self.len.
* Anonymous patch to add Darwin 1.2 to the list of BSDs.Guido van Rossum2000-10-121-1/+1
| | | | | | | Let's hope this is correct (I'm not sure why the sys.platform would be 'Darwin1.2' rather than 'darwin1', which seems to be the convention). Someone with Darwin please test this!
* Added some single tuple/list unpacking for JPython regression testing.Barry Warsaw2000-10-121-0/+12
|
* A Mystery: I somehow managed to delete the last two lines of my test_math.pyTim Peters2000-10-121-0/+2
| | | | changes. Here restoring them.
* Stop raising OverflowError on underflows reported by libm (errno==ERANGE andTim Peters2000-10-122-0/+30
| | | | | | | | | libm result is 0). Cautiously add a few libm exception test cases: 1. That exp(-huge) returns 0 without exception. 2. That exp(+huge) triggers OverflowError. 3. That sqrt(-1) raises ValueError specifically (apparently under glibc linked with -lieee, it was raising OverflowError due to an accident of the way mathmodule.c's CHECK() macro happened to deal with Infs and NaNs under gcc).
* Added additional test cases for pulldom modifications.Lars Gustäbel2000-10-112-1/+77
|
* Added parent attribute with getters and setters on XMLFilterBase.Lars Gustäbel2000-10-111-0/+12
|
* Added non-ns start and end element methods.Lars Gustäbel2000-10-111-16/+31
| | | | | Moved appendChild calls from DOMEventStream to PullDOM (parser indep). Removed duplicated sibling pointer setting (duplicated in appendChild).
* Test the exception-raising for error cases in copy_reg.Fred Drake2000-10-112-0/+44
|
* In the module docstring, clarify that this is used to register pickleFred Drake2000-10-111-3/+15
| | | | | | | | | | | support for extension types, not classes. pickle(): If the type is a class or if the reduction function is not callable, raise a TypeError. constructor(): If the constructor is not callable, raise TypeError. This (partially) closes SourceForge patch #101859.
* Jack Jansen reported that the regression test failed on the Mac whereGuido van Rossum2000-10-111-3/+1
| | | | | | | string.letters was much more than expected. Solution: explicit is better than implicit; don't rely on string.letters.
* Added test cases for extended printing to an instance. This picked upBarry Warsaw2000-10-111-1/+9
| | | | a bug in JPython where the instance had to have a flush() method.
* When the classes in wave.py opened files themselves, their .close() methodsTim Peters2000-10-091-7/+19
| | | | | | | didn't bother to close the files. This caused the new test_wave test to fail under Windows, as Windows won't let you delete a file that's open. Fixed that by ensuring the wave read & write classes' .close() and __del__ methods close files that were opened by their constructors.
* The usual.Guido van Rossum2000-10-0919-262/+511
|
* wave test outputGuido van Rossum2000-10-091-0/+1
|
* Simple test suite for wave.py by Jean-Claude Rimbault (with someGuido van Rossum2000-10-091-0/+34
| | | | changes to avoid using assert).
* Paul Prescod <paul@prescod.net>:Fred Drake2000-10-091-0/+7
| | | | Correct the chaining between siblings.
* Fix by Jean-Claude Rimbault [ Bug #116271 ] -- the WAVE header wasGuido van Rossum2000-10-091-1/+1
| | | | | never written properly because the '4' length indicators for the 's' format characters were missing.
* Move the test for confirmation that all nodes have been freed into theFred Drake2000-10-092-33/+72
| | | | | | driver code, so that each test gets this; it had been done inconsistently. Remove the lines that set the variables holding dom objects to None; not needed since the interpreter cleans up locals on function return.
* Use python$EXE instead of python, for Darwin. (Patch by TonyGuido van Rossum2000-10-091-4/+4
| | | | | | | | Lownds. (#101816) [Note: I'm not sure that this is really the right fix. Surely Darwin doesn't require you to say "python.exe" everywhere??? Even Windows doesn't! Or am I misunderstanding the point?]
* _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.