summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* indentation and further alignment with py3kEzio Melotti2009-12-311-3/+3
|
* cleanup and refactoringEzio Melotti2009-12-311-128/+123
|
* Merged revisions 77158 via svnmerge fromBenjamin Peterson2009-12-301-0/+5
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3 ........ r77158 | benjamin.peterson | 2009-12-30 13:41:03 -0600 (Wed, 30 Dec 2009) | 1 line clean up logging's global state after the test finishes ........
* check if the attribute is set before deleting it with T_OBJECT_EX (fixes #7604)Benjamin Peterson2009-12-301-0/+5
| | | | | Also, add a note to the docs about the better behavior of T_OBJECT_EX as compared to T_OBJECT.
* Issue #7534: Fix handling of nans, infinities, and negative zero in **Mark Dickinson2009-12-302-2/+216
| | | | operator, on IEEE 754 platforms. Thanks Marcos Donolo for original patch.
* #5511: Added the ability to use ZipFile as a context manager. Patch by Brian ↵Ezio Melotti2009-12-302-489/+458
| | | | Curtin.
* #7413: Passing '\0' as the separator to datetime.datetime.isoformat()Amaury Forgeot d'Arc2009-12-291-0/+1
| | | | used to drop the time part of the result.
* Issue #7575: An overflow test for math.expm1 was failing on OS X 10.4/Intel,Mark Dickinson2009-12-291-1/+7
| | | | | | | due to a defect in the platform's implementation of expm1. Since the issue is of low severity, and appears to be fixed in OS X 10.5 and 10.6, it doesn't seem worth working around, so I'm just weakening the relevant test so that it passes on 10.4.
* enable test_main.pyBenjamin Peterson2009-12-291-2/+3
|
* Merged revisions 76871-76872,77093-77095,77097-77101 via svnmerge fromBenjamin Peterson2009-12-286-19/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3 ........ r76871 | benjamin.peterson | 2009-12-17 20:49:21 -0600 (Thu, 17 Dec 2009) | 1 line handle unencodable diffs gracefully #5093 ........ r76872 | benjamin.peterson | 2009-12-17 20:51:37 -0600 (Thu, 17 Dec 2009) | 1 line fix emacs header ........ r77093 | benjamin.peterson | 2009-12-28 14:43:32 -0600 (Mon, 28 Dec 2009) | 7 lines replace callable(x) with isinstance(x, collections.Callable) #7006 This is a more accurate translation than hasattr(x, '__call__') which failed in the case that somebody had put __call__ in the instance dictionary. Patch mostly by Joe Amenta. ........ r77094 | benjamin.peterson | 2009-12-28 14:45:13 -0600 (Mon, 28 Dec 2009) | 2 lines deuglify imports ........ r77095 | benjamin.peterson | 2009-12-28 14:49:23 -0600 (Mon, 28 Dec 2009) | 1 line remove unused flag ........ r77097 | benjamin.peterson | 2009-12-28 16:12:13 -0600 (Mon, 28 Dec 2009) | 2 lines clean up imports and whitespace ........ r77098 | benjamin.peterson | 2009-12-28 16:43:35 -0600 (Mon, 28 Dec 2009) | 1 line *** empty log message *** ........ r77099 | benjamin.peterson | 2009-12-28 16:45:10 -0600 (Mon, 28 Dec 2009) | 1 line revert unintended change ........ r77100 | benjamin.peterson | 2009-12-28 16:53:21 -0600 (Mon, 28 Dec 2009) | 1 line revert unintended changes ........ r77101 | benjamin.peterson | 2009-12-28 17:46:02 -0600 (Mon, 28 Dec 2009) | 1 line normalize whitespace ........
* #7033: add new API function PyErr_NewExceptionWithDoc, for easily giving new ↵Georg Brandl2009-12-281-0/+39
| | | | exceptions a docstring.
* #7381: consistency update, and backport avoiding ``None >= 0`` check from py3k.Georg Brandl2009-12-281-4/+6
|
* Use a more idiomatic check in check_truediv.Mark Dickinson2009-12-271-3/+2
|
* Use ldexp(q, exp) instead of q*2.**exp in true division test, to avoid bogus ↵Mark Dickinson2009-12-271-1/+2
| | | | failures on platforms with broken pow (e.g., Ubuntu/ia64).
* Issue #1811: Improve accuracy and consistency of true division for integers.Mark Dickinson2009-12-271-0/+168
|
* Fix for issue5625 - test_urllib2 fails - urlopen error file not on local host.Senthil Kumaran2009-12-271-2/+3
| | | | This is on hosts with multiple ip addresses.
* #6108: unicode(exception) and str(exception) should return the same messageEzio Melotti2009-12-241-1/+109
|
* Issue #7568: typo in docstring. Thanks Mike Putnam.Mark Dickinson2009-12-241-1/+1
|
* allow Process name to be unicode #7571Benjamin Peterson2009-12-241-1/+1
|
* Unittests and news items for the patch in r77026.Ronald Oussoren2009-12-241-1/+30
|
* Issue #6834: replace the implementation for the 'python' and 'pythonw' ↵Ronald Oussoren2009-12-241-1/+7
| | | | | | | | | | | | | | | | | executables on OSX. The previous implementation used execv(2) to run the real interpreter, which means that you cannot use the arch(1) tool to select the architecture you want to use for a universal build because that only affects the python/pythonw wrapper and not the actual interpreter. The new version uses posix_spawnv with a number of OSX-specific options that ensure that the real interpreter is started using the same CPU architecture as the wrapper, and that means that 'arch -ppc python' now actually works. I've also changed the way that the wrapper looks for the framework: it is now linked to the framework rather than hardcoding the framework path. This should make it easier to provide pythonw support in tools like virtualenv.
* On OSX the output of "uname -m" always reflects the 32-bit architectureRonald Oussoren2009-12-241-0/+10
| | | | | | | | | for the machine ("i386" or "ppc"), even if the executable is 64-bit. This patchs ensures that the distutils platform architecture represents the architecture for the executable when running a 64-bit only executable on OSX.
* fix alleged refleakBenjamin Peterson2009-12-241-3/+8
|
* Fix possible integer overflow in lchown and fchown functions. For issue1747858.Gregory P. Smith2009-12-231-25/+48
|
* backported r76993 and r76994 so the trunk behaves the same way with MSVC ↵Tarek Ziadé2009-12-212-29/+108
| | | | Manifest files editing
* Issue #7553: test_long_future wasn't testing properly. Thanks Florent XiclunaMark Dickinson2009-12-211-9/+7
| | | | for bug report and patch.
* Remove a leftover from a previous iteration of the issue 7376 patch.R. David Murray2009-12-211-1/+1
|
* massive import cleaning in DistutilsTarek Ziadé2009-12-2124-121/+97
|
* Fixed #7552: fixed distutils.command.upload failure on very long passwordsTarek Ziadé2009-12-202-4/+25
|
* Issue #7554: Various fixups in test_cmath.py: remove code duplication,Mark Dickinson2009-12-201-63/+50
| | | | use new-style formatting. Thanks Florent Xicluna for the patch.
* Silence -3 warnings. Thanks Florent Xicluna.Mark Dickinson2009-12-201-2/+4
|
* Fix for consistency with py3k keyword-only version of assertAlmostEqualMark Dickinson2009-12-201-4/+4
|
* Issue #7554: Fix incorrect usage of rAssertAlmostEqual. Thanks Florent ↵Mark Dickinson2009-12-201-2/+2
| | | | Xicluna.
* Issue #7376: When called with no arguments doctest was running aR. David Murray2009-12-201-18/+22
| | | | | | | | | | self-test. Because of a change to the way tracebacks are printed, this self-test was failing. The test is run (and passes) during normal regression testing. So instead of running the failing self-test this patch makes doctest emit a usage message. This is better behavior anyway since passing in arguments is the real reason to run doctest as a command. Bug discovery and initial patch by Florent Xicluna.
* Fix comment typo.R. David Murray2009-12-201-1/+1
|
* Add missing tests for PyArg_Parse* with format 'h'Mark Dickinson2009-12-201-1/+18
|
* #7381: subprocess documentation and library docstring consistency fixes.Georg Brandl2009-12-201-9/+9
|
* Fix for issue 7291 - urllib2 cannot handle https with proxy requiring authSenthil Kumaran2009-12-203-35/+97
| | | | Refactored HTTPHandler tests and added testcase for proxy authorization.
* Remove superfetatory paragraph (left there by mistake).Antoine Pitrou2009-12-191-5/+0
|
* Issue #7545: improve documentation of the `buffering` argument in io.open().Antoine Pitrou2009-12-191-0/+15
|
* Issue #3366: Add error function and complementary error function toMark Dickinson2009-12-191-0/+82
| | | | math module.
* Issue #3366: Add expm1 function to math module. Thanks Eric Smith forMark Dickinson2009-12-162-7/+76
| | | | testing on Windows.
* Issue #7396: fix -s, which was broken by the -j enhancement.R. David Murray2009-12-161-11/+9
|
* remove lib2to3 resourceBenjamin Peterson2009-12-161-2/+0
|
* cleaned up the module (PEP 8 + old fashion test removal)Tarek Ziadé2009-12-151-3/+2
|
* Issue #7498: make test_multiprocessing use test_support.find_unused_portR. David Murray2009-12-141-2/+3
| | | | instead of a hard coded port number in test_rapid_restart.
* Issue #1680159: unicode coercion during an 'in' operation was maskingR. David Murray2009-12-141-1/+3
| | | | | | | any errors that might occur during coercion of the left operand and turning them into a TypeError with a message text that was confusing in the given context. This patch lets any errors through, as was already done during coercion of the right hand side.
* accept None as the same as having passed no argument in file types #7349Benjamin Peterson2009-12-132-4/+41
| | | | | | | This is for consistency with imitation file objects like StringIO and BytesIO. This commit also adds a few tests, where they were lacking for concerned methods.
* #7342: make sure that the datetime object in test_fraction always has a ↵Ezio Melotti2009-12-131-3/+4
| | | | number of microseconds != 0
* make StringIO like other file objects in that readline(-1) has no effect #7348Benjamin Peterson2009-12-132-1/+3
|