summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Bug #1529871: The speed enhancement patch #921466 broke Python's compliancePhillip J. Eby2006-07-281-3/+1
| | | | | | with PEP 302. This was fixed by adding an ``imp.NullImporter`` type that is used in ``sys.path_importer_cache`` to cache non-directory paths and avoid excessive filesystem operations during imports.
* Patch #1529686: also run test_email_codecs with regrtest.py.Georg Brandl2006-07-281-4/+8
|
* Try to find the MAC addr on various flavours of Unix. This seems hopeless.Neal Norwitz2006-07-281-5/+31
| | | | The reduces the test_uuid failures, but there's still another method failing.
* Live with that "the hardware address" is an ill-definedTim Peters2006-07-282-8/+23
| | | | | | | concept, and that different ways of trying to find "the hardware address" may return different results. Certainly true on both of my Windows boxes, and in different ways (see whining on python-dev).
* Ensure the actual number matches the expected countNeal Norwitz2006-07-281-3/+4
|
* - pybsddb Bug #1527939: bsddb module DBEnv dbremove and dbrenameGregory P. Smith2006-07-281-6/+31
| | | | | | | methods now allow their database parameter to be None as the sleepycat API allows. Also adds an appropriate test case for DBEnv.dbrename and dbremove.
* Whitespace normalization.Tim Peters2006-07-271-1/+1
|
* Bug #1529297: The rewrite of doctest for Python 2.4 unintentionallyTim Peters2006-07-272-7/+5
| | | | | lost that tests are sorted by name before being run. ``DocTestFinder`` has been changed to sort the list of tests it returns.
* Patch #1520294: Support for getset and member descriptors in types.py,Barry Warsaw2006-07-274-5/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | inspect.py, and pydoc.py. Specifically, this allows for querying the type of an object against these built-in C types and more importantly, for getting their docstrings printed in the interactive interpreter's help() function. This patch includes a new built-in module called _types which provides definitions of getset and member descriptors for use by the types.py module. These types are exposed as types.GetSetDescriptorType and types.MemberDescriptorType. Query functions are provided as inspect.isgetsetdescriptor() and inspect.ismemberdescriptor(). The implementations of these are robust enough to work with Python implementations other than CPython, which may not have these fundamental types. The patch also includes documentation and test suite updates. I commit these changes now under these guiding principles: 1. Silence is assent. The release manager has not said "no", and of the few people that cared enough to respond to the thread, the worst vote was "0". 2. It's easier to ask for forgiveness than permission. 3. It's so dang easy to revert stuff in svn, that you could view this as a forcing function. :) Windows build patches will follow.
* check_node(): stop spraying mystery output to stderr.Tim Peters2006-07-271-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When a node number disagrees, keep track of all sources & the node numbers they reported, and stick all that in the error message. Changed all callers to supply a non-empty "source" argument; made the "source" argument non-optional. On my box, test_uuid still fails, but with the less confusing output: AssertionError: different sources disagree on node: from source 'getnode1', node was 00038a000015 from source 'getnode2', node was 00038a000015 from source 'ipconfig', node was 001111b2b7bf Only the last one appears to be correct; e.g., C:\Code\python\PCbuild>getmac Physical Address Transport Name =================== ========================================================== 00-11-11-B2-B7-BF \Device\Tcpip_{190FB163-5AFD-4483-86A1-2FE16AC61FF1} 62-A1-AC-6C-FD-BE \Device\Tcpip_{8F77DF5A-EA3D-4F1D-975E-D472CEE6438A} E2-1F-01-C6-5D-88 \Device\Tcpip_{CD18F76B-2EF3-409F-9B8A-6481EE70A1E4} I can't find anything on my box with MAC 00-03-8a-00-00-15, and am not clear on where that comes from.
* Remove code that is no longer used (ctypes.com).Thomas Heller2006-07-271-38/+7
| | | | | | | | | Fix the DllGetClassObject and DllCanUnloadNow so that they forward the call to the comtypes.server.inprocserver module. The latter was never documented, never used by published code, and didn't work anyway, so I think it does not deserve a NEWS entry (but I might be wrong).
* Make uuid test suite pass on this box by requesting output with LC_ALL=C.Georg Brandl2006-07-272-3/+10
|
* Whitespace normalization.Tim Peters2006-07-272-2/+1
|
* Add test_main() methods. These three tests were never runGeorg Brandl2006-07-273-6/+17
| | | | | | by regrtest.py. We really need a simpler testing framework.
* Reformat docstring; fix typoAndrew M. Kuchling2006-07-271-1/+2
|
* Bump distutils version to 2.5, as several new featuresMartin v. Löwis2006-07-271-1/+1
| | | | have been introduced since 2.4.
* Whitespace normalization.Tim Peters2006-07-262-2/+2
|
* Allow the 'onerror' argument to walk_packages() to catch any Exception, notPhillip J. Eby2006-07-261-5/+15
| | | | | just ImportError. This allows documentation tools to better skip unimportable packages.
* Bug #978833: Really close underlying socket in _socketobject.close.Martin v. Löwis2006-07-262-2/+5
| | | | | Fix httplib.HTTPConnection.getresponse to not close the socket if it is still needed for the response.
* Part of bug #1523610: fix miscalculation of buffer length.Georg Brandl2006-07-261-1/+18
| | | | | Also add a guard against NULL in converttuple and add a test case (that previously would have crashed).
* Bug #1459963: properly capitalize HTTP header names.Georg Brandl2006-07-263-26/+26
|
* Forward port some fixes that were in email 2.5 but for some reason didn't makeBarry Warsaw2006-07-263-1/+100
| | | | | | | it into email 4.0. Specifically, in Message.get_content_charset(), handle RFC 2231 headers that contain an encoding not known to Python, or a character in the data that isn't in the charset encoding. Also forward port the appropriate unit tests.
* Whitespace normalization.Tim Peters2006-07-251-3/+3
|
* Fix bug #1517990: IDLE keybindings on OSXRonald Oussoren2006-07-252-1/+54
| | | | | | | This adds a new key definition for OSX, which is slightly different from the classic mac definition. Also add NEWS item for a couple of bugfixes I added recently.
* Document the crashers that will not go away soon as "won't fix",Armin Rigo2006-07-252-0/+15
| | | | and explain why.
* Added another crasher, which hit me today (I was not intentionallyArmin Rigo2006-07-251-0/+16
| | | | | writing such code, of course, but it took some gdb time to figure out what my bug was).
* Document why is and is not a good way to fix the gc_inspection crasher.Armin Rigo2006-07-251-0/+15
|
* Fix a bug in the messages for an assert failure where not enough arguments ↵Brett Cannon2006-07-251-2/+2
| | | | | | to a string were being converted in the format.
* Patch #1525766: correctly pass onerror arg to recursive callsGeorg Brandl2006-07-251-4/+34
| | | | of pkg.walk_packages. Also improve the docstrings.
* Bug #1525817: Don't truncate short lines in IDLE's tool tips.Martin v. Löwis2006-07-251-1/+5
|
* current_frames_with_threads(): There's actually no wayTim Peters2006-07-251-3/+4
| | | | | | | | | | | to guess /which/ line the spawned thread is in at the time sys._current_frames() is called: we know it finished enter_g.set(), but can't know whether the instruction counter has advanced to the following leave_g.wait(). The latter is overwhelming most likely, but not guaranteed, and I see that the "x86 Ubuntu dapper (icc) trunk" buildbot found it on the other line once. Changed the test so it passes in either case.
* Don't use standard assert: want tests to fail even when run with -O.Greg Ward2006-07-251-15/+17
| | | | Delete cruft.
* Whitespace normalization.Tim Peters2006-07-243-10/+10
|
* Repair accidental NameError.Georg Brandl2006-07-241-1/+2
|
* - EditorWindow.test() was failing. Bug 1417598Kurt B. Kaiser2006-07-243-3/+6
| | | | | | M EditorWindow.py M ScriptBinding.py M NEWS.txt
* EditorWindow failed when used stand-alone if sys.ps1 not set.Kurt B. Kaiser2006-07-243-4/+7
| | | | | | | | Bug 1010370 Dave Florek M EditorWindow.py M PyShell.py M NEWS.txt
* Patch #1515343: Fix printing of deprecated string exceptions with aGeorg Brandl2006-07-242-44/+88
| | | | value in the traceback module.
* Patch #1448199: Release GIL around ConnectRegistry.Martin v. Löwis2006-07-241-0/+3
|
* Resync optparse with Optik 1.5.3: minor tweaks for/to tests.Greg Ward2006-07-232-8/+12
|
* Get mailbox module working on OS/2 EMX port.Andrew MacIntyre2006-07-232-4/+12
|
* Fix for bug #1517996: Class and Path browsers show Tk menuRonald Oussoren2006-07-231-0/+76
| | | | | This patch replaces the menubar that is used by AquaTk for windows without a menubar of their own by one that is more appropriate for IDLE.
* Without this patch CMD-W won't close EditorWindows on MacOS X. This solvesRonald Oussoren2006-07-231-0/+3
| | | | part of bug #1517990.
* Tooltips failed on new-syle class __init__ args. Bug 1027566 Loren GuthrieKurt B. Kaiser2006-07-232-1/+3
|
* Be a lot smarter about whether this test passes: instead of assumingGreg Ward2006-07-232-4/+14
| | | | | | | that a 2.93 sec audio file will always take 3.1 sec (as it did on the hardware I had when I first wrote the test), expect that it will take 2.93 sec +/- 10%, and only fail if it's outside of that range. Compute the expected
* Don't fail if the directory already existsNeal Norwitz2006-07-221-1/+2
|
* Fix check for empty list (vs. None).Georg Brandl2006-07-211-1/+1
|
* More RFC 2231 improvements for the email 4.0 package. As Mark Sapiro rightlyBarry Warsaw2006-07-213-41/+277
| | | | | | | | | | | | | | | | | | | | | | | | points out there are really two types of continued headers defined in this RFC (i.e. "encoded" parameters with the form "name*0*=" and unencoded parameters with the form "name*0="), but we were were handling them both the same way and that isn't correct. This patch should be much more RFC compliant in that only encoded params are %-decoded and the charset/language information is only extract if there are any encoded params in the segments. If there are no encoded params then the RFC says that there will be no charset/language parts. Note however that this will change the return value for Message.get_param() in some cases. For example, whereas before if you had all unencoded param continuations you would have still gotten a 3-tuple back from this method (with charset and language == None), you will now get just a string. I don't believe this is a backward incompatible change though because the documentation for this method already indicates that either return value is possible and that you must do an isinstance(val, tuple) check to discriminate between the two. (Yeah that API kind of sucks but we can't change /that/ without breaking code.) Test cases, some documentation updates, and a NEWS item accompany this patch.
* Addressed SF#1524081 by using a dictionary to map level names to syslog ↵Vinay Sajip2006-07-201-3/+25
| | | | priority names, rather than a string.lower().
* Avoid occasional failure to detect closing paren properly.Kurt B. Kaiser2006-07-203-10/+15
| | | | | | | | Patch 1407280 Tal Einat M ParenMatch.py M NEWS.txt M CREDITS.txt
* Guard for _active being None in __del__ method.Georg Brandl2006-07-201-1/+1
|