summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Port test_resource.py to unittest.Walter Dörwald2007-01-202-58/+78
|
* SF# 1635892: Fix docs for betavariate's input parameters .Raymond Hettinger2007-01-191-1/+1
|
* This test doesn't pass on Windows. The cause seems to be that chmodNeal Norwitz2007-01-181-2/+8
| | | | | | | | doesn't support the same funcationality as on Unix. I'm not sure if this fix is the best (or if it will even work)--it's a test to see if the buildbots start passing again. It might be better to not even run this test if it's windows (or non-posix).
* Try reverting part of r53145 that seems to cause the Windows buildbots to ↵Neal Norwitz2007-01-181-2/+2
| | | | fail in test_uu.UUFileTest.test_encode
* Fixed ntpath.expandvars to not replace references to non-existingSjoerd Mullender2007-01-163-2/+30
| | | | | variables with nothing. Also added tests. This fixes bug #494589.
* Updated rotating file handlers to use _open().Vinay Sajip2007-01-161-10/+6
|
* Added WatchedFileHandler (based on SF patch #1598415)Vinay Sajip2007-01-141-0/+49
|
* Patch #1635058 by Mark Roberts: ensure that htonl and friends never accept orGuido van Rossum2007-01-141-0/+14
| | | | return negative numbers, per the underlying C implementation.
* Handle old-style instances more gracefully (display documentation onKa-Ping Yee2007-01-141-6/+13
| | | | the relevant class instead of documentation on <type 'instance'>).
* Remove a dependency of this test on $COLUMNS.Guido van Rossum2007-01-141-2/+10
|
* Merged changes from standalone version 2.3.3. This should probably all beGerhard Häring2007-01-144-6/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | merged into the 2.5 maintenance branch: - self->statement was not checked while fetching data, which could lead to crashes if you used the pysqlite API in unusual ways. Closing the cursor and continuing to fetch data was enough. - Converters are stored in a converters dictionary. The converter name is uppercased first. The old upper-casing algorithm was wrong and was replaced by a simple call to the Python string's upper() method instead. -Applied patch by Glyph Lefkowitz that fixes the problem with subsequent SQLITE_SCHEMA errors. - Improvement to the row type: rows can now be iterated over and have a keys() method. This improves compatibility with both tuple and dict a lot. - A bugfix for the subsecond resolution in timestamps. - Corrected the way the flags PARSE_DECLTYPES and PARSE_COLNAMES are checked for. Now they work as documented. - gcc on Linux sucks. It exports all symbols by default in shared libraries, so if symbols are not unique it can lead to problems with symbol lookup. pysqlite used to crash under Apache when mod_cache was enabled because both modules had the symbol cache_init. I fixed this by applying the prefix pysqlite_ almost everywhere. Sigh.
* Use defaults if sys.executable isn't set (e.g. on Jython).Marc-André Lemburg2007-01-131-1/+4
| | | | This change allows running PyBench under Jython.
* Fix for bug #1634343: allow specifying empty arguments on WindowsPeter Astrand2007-01-132-1/+3
|
* Add parameter sys_version to _sys_version().Marc-André Lemburg2007-01-131-16/+47
| | | | | | | | Change the cache for _sys_version() to take the parameter into account. Add support for parsing the IronPython 1.0.1 sys.version value - even though it still returns '1.0.0'; the version string no longer includes the patch level.
* Fix grammar in docstringsNeal Norwitz2007-01-131-2/+2
|
* Bump version number and change copyright year.Marc-André Lemburg2007-01-131-63/+259
| | | | | | | | | | | | | | | Add new API linux_distribution() which supports reading the full distribution name and also knows how to parse LSB-style release files. Redirect the old dist() API to the new API (using the short distribution name taken from the release file filename). Add branch and revision to _sys_version(). Add work-around for Cygwin to libc_ver(). Add support for IronPython (thanks for Anthony Baxter) and make Jython support more robust.
* Deprecate the sets module.Brett Cannon2007-01-133-0/+10
|
* patch #1610795: BSD version of ctypes.util.find_library, by MartinThomas Heller2007-01-121-28/+50
| | | | | | | Kammerhofer. release25-maint backport candidate, but the release manager has to decide.
* Avoid warnings in the test suite because ctypes.wintypes cannot beThomas Heller2007-01-121-1/+2
| | | | imported on non-windows systems.
* Correct the comments: the code is right.Thomas Heller2007-01-111-2/+2
|
* Fixes for 64-bit Windows: In ctypes.wintypes, correct the definitionsThomas Heller2007-01-112-5/+30
| | | | | of HANDLE, WPARAM, LPARAM data types. Make parameterless foreign function calls work.
* SF #1486663 -- Allow keyword args in subclasses of set() and frozenset().Raymond Hettinger2007-01-111-0/+11
|
* - idle: Honor the "Cancel" action in the save dialog (Debian bug #299092).Matthias Klose2007-01-111-1/+1
|
* Fix the signature of log_error(). (A subclass that did the right thingGuido van Rossum2007-01-101-2/+2
| | | | was getting complaints from pychecker.)
* Change the ctypes version number to "1.1.0".Thomas Heller2007-01-101-1/+1
|
* Verify the sizes of the basic ctypes data types against the structThomas Heller2007-01-091-0/+28
| | | | | | module. Will backport to release25-maint.
* Added a docstringVinay Sajip2007-01-091-0/+4
|
* Bug #1627575: Added _open() method to FileHandler which can be used to ↵Vinay Sajip2007-01-091-9/+14
| | | | reopen files. The FileHandler instance now saves the encoding (which can be None) in an attribute called "encoding".
* Bare except clause removed from LogRecord.__init__. Now, only ValueError, ↵Vinay Sajip2007-01-081-3/+3
| | | | | | TypeError and AttributeError are trapped. (SF #411881)
* Bare except clause removed from SMTPHandler.emit(). Now, only ImportError is ↵Vinay Sajip2007-01-081-2/+2
| | | | | | | trapped. Bare except clause removed from SocketHandler.createSocket(). Now, only socket.error is trapped. (SF #411881)
* Fix zero-length corner case for iterating over a mutating deque.Raymond Hettinger2007-01-081-0/+6
|
* Avoid O(N**2) bottleneck in _communicate_(). Fixes #1598181.Peter Astrand2007-01-071-3/+4
|
* Re-implemented fix for #1531862 once again, in a way that works with Python ↵Peter Astrand2007-01-071-2/+6
| | | | 2.2. Fixes bug #1603424.
* [Patch #1520904] Fix bsddb tests to write to the temp directory instead of ↵Andrew M. Kuchling2007-01-0511-14/+17
| | | | the Lib/bsddb/test directory
* [Bug #1622533] Make docstrings raw strings because they contain control ↵Andrew M. Kuchling2007-01-052-2/+2
| | | | characters (\0, \1)
* Support linking of the bsddb module against BerkeleyDB 4.5.xGregory P. Smith2007-01-052-3/+4
| | | | (will backport to 2.5)
* Bug #1566280: Explicitly invoke threading._shutdown from Py_Main,Martin v. Löwis2007-01-041-5/+5
| | | | | to avoid relying on atexit. Will backport to 2.5.
* Fix stability of heapq's nlargest() and nsmallest().Raymond Hettinger2007-01-042-18/+14
|
* Add EnvironmentVarGuard to test.test_support. Provides a context manager toBrett Cannon2007-01-041-1/+33
| | | | temporarily set or unset environment variables.
* For sets with cyclical reprs, emit an ellipsis instead of infinitely recursing.Raymond Hettinger2006-12-301-0/+26
|
* SF bug #1623890, fix argument name in docstringNeal Norwitz2006-12-291-1/+1
|
* Patch #1504073: Fix tarfile.open() for mode "r" with a fileobj argument.Lars Gustäbel2006-12-272-0/+15
| | | | Will backport to 2.5.
* [Rest of patch #1182394] Add ._current() method so that we can use the ↵Andrew M. Kuchling2006-12-271-4/+12
| | | | written-in-C .hexdigest() method
* [Part of patch #1182394] Move the HMAC blocksize to be a class-levelAndrew M. Kuchling2006-12-271-3/+4
| | | | | constant; this allows changing it in a subclass. To accommodate this, copy() now uses __class__. Also add some text to a comment.
* Patch #1262036: Prevent TarFiles from being added to themselves underLars Gustäbel2006-12-232-27/+20
| | | | | | certain conditions. Will backport to 2.5.
* Patch #1230446: tarfile.py: fix ExFileObject so that read() and tell()Lars Gustäbel2006-12-232-107/+164
| | | | | | work correctly together with readline(). Will backport to 2.5.
* Frak; this test also failsAndrew M. Kuchling2006-12-221-7/+7
|
* Darn; this test works when you run test_pty.py directly, but fails when ↵Andrew M. Kuchling2006-12-221-5/+5
| | | | regrtest runs it (the os.read() raises os.error). I can't figure out the cause, so am commenting out the test.
* [Patch #827559 from Chris Gonnerman] Make SimpleHTTPServer redirect when a ↵Andrew M. Kuchling2006-12-221-0/+6
| | | | directory URL is missing the trailing slash; this lets relative links work.
* [Patch #783050 from Patrick Lynch] The emulation of forkpty() is incorrect;Andrew M. Kuchling2006-12-222-1/+18
| | | | | | | | | | the master should close the slave fd. Added a test to test_pty.py that reads from the master_fd after doing a pty.fork(); without the fix it hangs forever instead of raising an exception. (<crossing fingers for the buildbots>) 2.5 backport candidate.