summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Patch #1675471: convert test_pty to unittest.Georg Brandl2007-03-072-116/+123
|
* Bug #1115886: os.path.splitext('.cshrc') gives now ('.cshrc', '').Martin v. Löwis2007-03-077-39/+61
|
* Patch #787789: allow to pass custom TestRunner instances to unittest'sGeorg Brandl2007-03-071-4/+12
| | | | main() function.
* Patches #1550273, #1550272: fix a few bugs in unittest and add aGeorg Brandl2007-03-072-36/+2329
| | | | comprehensive test suite for the module.
* Patch #1001604: glob.glob() now returns unicode filenames if it wasGeorg Brandl2007-03-072-4/+17
| | | | given a unicode argument and os.listdir() returns unicode filenames.
* Patch #812285: allow multiple auth schemes in AbstractBasicAuthHandler.Georg Brandl2007-03-071-4/+3
|
* Patch for bug #1633621: if curses.resizeterm() orWalter Dörwald2007-03-061-0/+9
| | | | | curses.resize_term() is called, update _curses.LINES, _curses.COLS, curses.LINES and curses.COLS.
* Patch #1654417: make operator.{get,set,del}slice use the full rangeGeorg Brandl2007-03-061-0/+6
| | | | of Py_ssize_t.
* Patch #1638879: don't accept strings with embedded NUL bytes in long().Georg Brandl2007-03-061-0/+5
|
* Small nit, found by Neal.Georg Brandl2007-03-061-2/+2
|
* Patch #1646728: datetime.fromtimestamp fails with negativeGuido van Rossum2007-03-061-0/+9
| | | | | | fractional times. With unittest. Somebody please backport to 2.5.
* Patch #912410: Replace HTML entity references for attribute valuesMartin v. Löwis2007-03-062-6/+29
| | | | in HTMLParser.
* Patch #1663234: you can now run doctest on test files and modulesGeorg Brandl2007-03-061-2/+17
| | | | using "python -m doctest [-v] filename ...".
* A test case for the defaultdict KeyError bug.Georg Brandl2007-03-061-0/+9
|
* Patch #1672481: fix bug in idlelib.MultiCall.Georg Brandl2007-03-061-0/+2
|
* A test case for the fix in #1674228.Georg Brandl2007-03-061-0/+11
|
* Patch #1121142: Implement ZipFile.open.Martin v. Löwis2007-03-062-49/+637
|
* Patch #1674228: when assigning a slice (old-style), check for theGeorg Brandl2007-03-051-0/+14
| | | | sq_ass_slice instead of the sq_slice slot.
* Minor corrections to docs, and an explanation comentaryFacundo Batista2007-03-051-13/+14
|
* Fix a bug in test_dict and test_userdict, found at the PyPy sprint.Georg Brandl2007-03-042-6/+6
|
* Fix embarrassing typo and fix constantification of NoneRaymond Hettinger2007-03-021-0/+5
|
* Bug #1628895: some better tries to find HTML documentation in pydoc.Georg Brandl2007-03-021-7/+12
|
* Add collections.NamedTupleRaymond Hettinger2007-03-012-1/+117
|
* Prepare collections module for pure python code entries.Raymond Hettinger2007-02-281-0/+3
|
* Docstring nit.Raymond Hettinger2007-02-281-1/+1
|
* Add a test for instantiating SyntaxError with no arguments.Brett Cannon2007-02-281-0/+3
|
* Modify the segfaulting example to show why r53997 is not a solution toArmin Rigo2007-02-281-0/+20
| | | | it.
* Add checking for a number of metaclass error conditions.Jeremy Hylton2007-02-272-64/+103
| | | | | | | | | | | | | | | | | | | | | | | We add some new rules that are required for preserving internal invariants of types. 1. If type (or a subclass of type) appears in bases, it must appear before any non-type bases. If a non-type base (like a regular new-style class) occurred first, it could trick type into allocating the new class an __dict__ which must be impossible. 2. There are several checks that are made of bases when creating a type. Those checks are now repeated when assigning to __bases__. We also add the restriction that assignment to __bases__ may not change the metaclass of the type. Add new tests for these cases and for a few other oddball errors that were no previously tested. Remove a crasher test that was fixed. Also some internal refactoring: Extract the code to find the most derived metaclass of a type and its bases. It is now needed in two places. Rewrite the TypeError checks in test_descr to use doctest. The tests now clearly show what exception they expect to see.
* Fix long-standing bug in name mangling for package importsJeremy Hylton2007-02-271-0/+13
| | | | Reported by Mike Verdone.
* When printing an unraisable error, don't print exceptions. before the name.Neal Norwitz2007-02-261-2/+2
| | | | This duplicates the behavior whening normally printing exceptions.
* Do not copy free variables to locals in class namespaces.Jeremy Hylton2007-02-261-0/+33
| | | | | | | | | Fixes bug 1569356, but at the cost of a minor incompatibility in locals(). Add test that verifies that the class namespace is not polluted. Also clarify the behavior in the library docs. Along the way, cleaned up the dict_to_map and map_to_dict implementations and added some comments that explain what they do.
* Backported r51621 from p3yk:Thomas Wouters2007-02-252-4/+4
| | | | | | Don't use a fixed temporary name (gdbm). Don't use our own temp name creation (dbm). Should be backported to 2.5.
* Refactor PEP 352 tests to make it easier in the future to make sure certainBrett Cannon2007-02-231-18/+34
| | | | things cannot be raised or caught.
* Fix typo in commentNeal Norwitz2007-02-231-1/+1
|
* Add itertools.izip_longest().Raymond Hettinger2007-02-211-0/+54
|
* Fixup docstrings for merge().Raymond Hettinger2007-02-191-2/+2
|
* Patch #1490190: posixmodule now includes os.chflags() and os.lchflags()Martin v. Löwis2007-02-193-1/+28
| | | | functions on platforms where the underlying system calls are available.
* Add test for merge stabilityRaymond Hettinger2007-02-191-0/+15
|
* Use C heapreplace() instead of slower _siftup() in pure python.Raymond Hettinger2007-02-191-2/+2
|
* Add tie-breaker count to preserve sort stability.Raymond Hettinger2007-02-191-6/+6
|
* Add merge() function to heapq.Raymond Hettinger2007-02-192-3/+49
|
* Extend work on revision 52962: Eliminate redundant calls to PyObject_Hash().Raymond Hettinger2007-02-191-0/+20
|
* Minor fix for currentframe (SF #1652788).Vinay Sajip2007-02-161-5/+5
|
* Make the __import__ call in encodings.__init__ absolute with a level 0 call.Brett Cannon2007-02-161-4/+4
|
* Update the encoding package's search function to use absolute imports whenBrett Cannon2007-02-151-2/+4
| | | | | | | | | | | | calling __import__. This helps make the expected search locations for encoding modules be more explicit. One could use an explicit value for __path__ when making the call to __import__ to force the exact location searched for encodings. This would give the most strict search path possible if one is worried about malicious code being imported. The unfortunate side-effect of that is that if __path__ was modified on 'encodings' on purpose in a safe way it would not be picked up in future __import__ calls.
* A missing binary mode in AppendTest caused failures in WindowsLars Gustäbel2007-02-141-2/+2
| | | | Buildbot.
* Strip the '.gz' extension from the filename that is written to theLars Gustäbel2007-02-131-3/+6
| | | | gzip header.
* Patch #1647484: Renamed GzipFile's filename attribute to name. TheLars Gustäbel2007-02-132-8/+20
| | | | | filename attribute is still accessible as a property that emits a DeprecationWarning.
* Patch #1517891: Make 'a' create the file if it doesn't exist.Martin v. Löwis2007-02-132-1/+30
| | | | Fixes #1514451.
* Patch #698833: Support file decryption in zipfile.Martin v. Löwis2007-02-132-2/+126
|