]>
granicus.if.org Git - python/log
Andrew M. Kuchling [Tue, 29 Dec 2009 20:10:16 +0000 (20:10 +0000)]
Various additions
Georg Brandl [Tue, 29 Dec 2009 11:25:38 +0000 (11:25 +0000)]
Fix wrong markup.
Georg Brandl [Tue, 29 Dec 2009 11:06:31 +0000 (11:06 +0000)]
Improve markup of ctypes docs.
Georg Brandl [Tue, 29 Dec 2009 10:34:34 +0000 (10:34 +0000)]
#7569: clarification about c_char_p.
Benjamin Peterson [Tue, 29 Dec 2009 00:09:33 +0000 (00:09 +0000)]
enable test_main.py
Benjamin Peterson [Mon, 28 Dec 2009 23:50:41 +0000 (23:50 +0000)]
Merged revisions 76871-76872,77093-77095,77097-77101 via svnmerge from
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
........
Benjamin Peterson [Mon, 28 Dec 2009 20:51:17 +0000 (20:51 +0000)]
document new fix_callable behavior
Georg Brandl [Mon, 28 Dec 2009 08:48:24 +0000 (08:48 +0000)]
#7404: remove reference to non-existing example files.
Georg Brandl [Mon, 28 Dec 2009 08:34:58 +0000 (08:34 +0000)]
#7033: add new API function PyErr_NewExceptionWithDoc, for easily giving new exceptions a docstring.
Georg Brandl [Mon, 28 Dec 2009 08:09:32 +0000 (08:09 +0000)]
#7381: consistency update, and backport avoiding ``None >= 0`` check from py3k.
Georg Brandl [Mon, 28 Dec 2009 08:01:59 +0000 (08:01 +0000)]
#7586: fix typo.
Georg Brandl [Mon, 28 Dec 2009 07:59:05 +0000 (07:59 +0000)]
#7577: fix signature of PyBuffer_FillInfo().
Mark Dickinson [Sun, 27 Dec 2009 21:31:50 +0000 (21:31 +0000)]
Use a more idiomatic check in check_truediv.
Amaury Forgeot d'Arc [Sun, 27 Dec 2009 20:06:44 +0000 (20:06 +0000)]
Fix a typo in comment
Mark Dickinson [Sun, 27 Dec 2009 16:16:02 +0000 (16:16 +0000)]
Use ldexp(q, exp) instead of q*2.**exp in true division test, to avoid bogus failures on platforms with broken pow (e.g., Ubuntu/ia64).
Mark Dickinson [Sun, 27 Dec 2009 14:55:57 +0000 (14:55 +0000)]
Issue #1811: Improve accuracy and consistency of true division for integers.
Senthil Kumaran [Sun, 27 Dec 2009 09:11:09 +0000 (09:11 +0000)]
Fix for issue5625 - test_urllib2 fails - urlopen error file not on local host.
This is on hosts with multiple ip addresses.
Ezio Melotti [Fri, 25 Dec 2009 02:12:01 +0000 (02:12 +0000)]
Updated sys.flags table in Doc
Ezio Melotti [Thu, 24 Dec 2009 22:25:17 +0000 (22:25 +0000)]
#6108: unicode(exception) and str(exception) should return the same message
Mark Dickinson [Thu, 24 Dec 2009 16:06:58 +0000 (16:06 +0000)]
Issue #7568: typo in docstring. Thanks Mike Putnam.
Benjamin Peterson [Thu, 24 Dec 2009 15:19:40 +0000 (15:19 +0000)]
allow Process name to be unicode #7571
Ronald Oussoren [Thu, 24 Dec 2009 14:50:35 +0000 (14:50 +0000)]
Unittests and news items for the patch in r77026.
Ronald Oussoren [Thu, 24 Dec 2009 14:17:19 +0000 (14:17 +0000)]
Fix for issue #7541: python-config --ldflags doesn't pick up libpython2.5.a
Ronald Oussoren [Thu, 24 Dec 2009 13:30:58 +0000 (13:30 +0000)]
Issue #6834: replace the implementation for the 'python' and 'pythonw' 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.
Ronald Oussoren [Thu, 24 Dec 2009 13:30:42 +0000 (13:30 +0000)]
An update to the script that's used to build the binary installer: don't install files in
/usr/local by default. Users can still choose to install files into /usr/local, but by
default we'll only install files in /Library/Framework/Python.framework and
/Applications/Python X.Y/
Ronald Oussoren [Thu, 24 Dec 2009 13:06:39 +0000 (13:06 +0000)]
On OSX the output of "uname -m" always reflects the 32-bit architecture
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.
Ezio Melotti [Thu, 24 Dec 2009 02:54:53 +0000 (02:54 +0000)]
Added markup and default arg, fixed example
Senthil Kumaran [Thu, 24 Dec 2009 02:18:14 +0000 (02:18 +0000)]
Fix for Issue7570: Error in urllib2 example.
Benjamin Peterson [Thu, 24 Dec 2009 01:09:53 +0000 (01:09 +0000)]
fix alleged refleak
Gregory P. Smith [Wed, 23 Dec 2009 09:31:11 +0000 (09:31 +0000)]
Fix possible integer overflow in lchown and fchown functions. For issue1747858.
Brett Cannon [Tue, 22 Dec 2009 02:37:37 +0000 (02:37 +0000)]
Make a word plural.
Tarek Ziadé [Mon, 21 Dec 2009 23:37:44 +0000 (23:37 +0000)]
added a note about #7556 in Misc/NEWS
Tarek Ziadé [Mon, 21 Dec 2009 23:31:55 +0000 (23:31 +0000)]
backported r76993 and r76994 so the trunk behaves the same way with MSVC Manifest files editing
Martin v. Löwis [Mon, 21 Dec 2009 19:29:59 +0000 (19:29 +0000)]
Add NEWS for OpenSSL changes.
Martin v. Löwis [Mon, 21 Dec 2009 19:27:15 +0000 (19:27 +0000)]
Switch to OpenSSL 0.9.8l.
Martin v. Löwis [Mon, 21 Dec 2009 19:25:56 +0000 (19:25 +0000)]
Drop 2.4 compatibility.
Mark Dickinson [Mon, 21 Dec 2009 16:29:21 +0000 (16:29 +0000)]
Issue #7553: test_long_future wasn't testing properly. Thanks Florent Xicluna
for bug report and patch.
Mark Dickinson [Mon, 21 Dec 2009 15:40:33 +0000 (15:40 +0000)]
Inverse hyperbolic trigonometric functions should call m_log1p, not log1p.
Mark Dickinson [Mon, 21 Dec 2009 15:22:00 +0000 (15:22 +0000)]
Issue #7518: Move substitute definitions of C99 math functions from
pymath.c to Modules/_math.c.
R. David Murray [Mon, 21 Dec 2009 12:45:41 +0000 (12:45 +0000)]
Remove a leftover from a previous iteration of the issue 7376 patch.
Mark Dickinson [Mon, 21 Dec 2009 12:15:48 +0000 (12:15 +0000)]
Additional edge-case tests for test_long_and_overflow.
Mark Dickinson [Mon, 21 Dec 2009 11:31:54 +0000 (11:31 +0000)]
Fix reference counts for test_long_and_overflow.
Mark Dickinson [Mon, 21 Dec 2009 11:21:25 +0000 (11:21 +0000)]
Issue #7528: Backport PyLong_AsLongAndOverflow from py3k to trunk.
Thanks Case Van Horsen for the patch.
Tarek Ziadé [Mon, 21 Dec 2009 01:22:46 +0000 (01:22 +0000)]
massive import cleaning in Distutils
Tarek Ziadé [Sun, 20 Dec 2009 23:23:34 +0000 (23:23 +0000)]
Fixed #7552: fixed distutils.command.upload failure on very long passwords
Mark Dickinson [Sun, 20 Dec 2009 20:34:44 +0000 (20:34 +0000)]
Issue #7554: Various fixups in test_cmath.py: remove code duplication,
use new-style formatting. Thanks Florent Xicluna for the patch.
Mark Dickinson [Sun, 20 Dec 2009 20:23:01 +0000 (20:23 +0000)]
Silence -3 warnings. Thanks Florent Xicluna.
Mark Dickinson [Sun, 20 Dec 2009 19:52:36 +0000 (19:52 +0000)]
Fix for consistency with py3k keyword-only version of assertAlmostEqual
Mark Dickinson [Sun, 20 Dec 2009 19:45:37 +0000 (19:45 +0000)]
Issue #7554: Fix incorrect usage of rAssertAlmostEqual. Thanks Florent Xicluna.
R. David Murray [Sun, 20 Dec 2009 16:46:06 +0000 (16:46 +0000)]
Issue #7376: When called with no arguments doctest was running a
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.
R. David Murray [Sun, 20 Dec 2009 16:24:46 +0000 (16:24 +0000)]
Fix comment typo.
Mark Dickinson [Sun, 20 Dec 2009 15:57:56 +0000 (15:57 +0000)]
Add missing tests for PyArg_Parse* with format 'h'
Benjamin Peterson [Sun, 20 Dec 2009 15:23:22 +0000 (15:23 +0000)]
builtin-ins -> builtins
Georg Brandl [Sun, 20 Dec 2009 14:33:20 +0000 (14:33 +0000)]
#7381: subprocess documentation and library docstring consistency fixes.
Georg Brandl [Sun, 20 Dec 2009 14:28:05 +0000 (14:28 +0000)]
Small indentation fix.
Georg Brandl [Sun, 20 Dec 2009 14:20:16 +0000 (14:20 +0000)]
#7495: backport Programming FAQ review to trunk.
Mark Dickinson [Sun, 20 Dec 2009 13:58:18 +0000 (13:58 +0000)]
math.factorial depends on PyLong_AsLong correctly converting floats; rewrite
it to do the conversion explicitly instead. See issue #7550.
Senthil Kumaran [Sun, 20 Dec 2009 07:29:31 +0000 (07:29 +0000)]
Document the headers parameter for set_tunnel.
Senthil Kumaran [Sun, 20 Dec 2009 06:05:13 +0000 (06:05 +0000)]
Fix for issue 7291 - urllib2 cannot handle https with proxy requiring auth
Refactored HTTPHandler tests and added testcase for proxy authorization.
Ezio Melotti [Sat, 19 Dec 2009 22:41:49 +0000 (22:41 +0000)]
#7388: "python".capitalize() in the Doc
Antoine Pitrou [Sat, 19 Dec 2009 21:06:36 +0000 (21:06 +0000)]
Remove superfetatory paragraph (left there by mistake).
Antoine Pitrou [Sat, 19 Dec 2009 21:01:10 +0000 (21:01 +0000)]
Issue #7545: improve documentation of the `buffering` argument in io.open().
Georg Brandl [Sat, 19 Dec 2009 18:20:18 +0000 (18:20 +0000)]
#7480: remove tautology.
Georg Brandl [Sat, 19 Dec 2009 18:16:31 +0000 (18:16 +0000)]
#7479: add note about function availability on Unices.
Georg Brandl [Sat, 19 Dec 2009 17:43:33 +0000 (17:43 +0000)]
#7493: review of Design FAQ by Florent Xicluna.
Georg Brandl [Sat, 19 Dec 2009 17:34:32 +0000 (17:34 +0000)]
#7521: remove Py_GetBuildNumber(), which was removed in favor of Py_GetBuildInfo().
Georg Brandl [Sat, 19 Dec 2009 17:30:28 +0000 (17:30 +0000)]
#7527: use standard versionadded tags.
Mark Dickinson [Sat, 19 Dec 2009 11:07:23 +0000 (11:07 +0000)]
Issue #3366: Add error function and complementary error function to
math module.
Vinay Sajip [Thu, 17 Dec 2009 14:52:00 +0000 (14:52 +0000)]
Issue #7529: logging: Minor correction to documentation.
Mark Dickinson [Thu, 17 Dec 2009 08:33:56 +0000 (08:33 +0000)]
Add _math.h to math module dependencies in setup.py.
Mark Dickinson [Wed, 16 Dec 2009 20:13:40 +0000 (20:13 +0000)]
Issue #3366: Add expm1 function to math module. Thanks Eric Smith for
testing on Windows.
R. David Murray [Wed, 16 Dec 2009 11:49:46 +0000 (11:49 +0000)]
Issue #7396: fix -s, which was broken by the -j enhancement.
Benjamin Peterson [Wed, 16 Dec 2009 03:36:22 +0000 (03:36 +0000)]
remove type_compare, since type_richcompare does the same trick
Benjamin Peterson [Wed, 16 Dec 2009 03:28:52 +0000 (03:28 +0000)]
remove lib2to3 resource
Tarek Ziadé [Tue, 15 Dec 2009 06:29:19 +0000 (06:29 +0000)]
cleaned up the module (PEP 8 + old fashion test removal)
Benjamin Peterson [Tue, 15 Dec 2009 03:25:27 +0000 (03:25 +0000)]
adverb
R. David Murray [Mon, 14 Dec 2009 21:57:39 +0000 (21:57 +0000)]
Issue #7498: make test_multiprocessing use test_support.find_unused_port
instead of a hard coded port number in test_rapid_restart.
R. David Murray [Mon, 14 Dec 2009 16:28:26 +0000 (16:28 +0000)]
Issue #
1680159 : unicode coercion during an 'in' operation was masking
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.
R. David Murray [Mon, 14 Dec 2009 02:50:32 +0000 (02:50 +0000)]
Clarify phrasing that explains that there are currently two branches.
Tarek Ziadé [Sun, 13 Dec 2009 23:24:13 +0000 (23:24 +0000)]
reorganized the distutils doc a bit : the MANIFEST.in template system has its own section now. This is easier to find and follow
Benjamin Peterson [Sun, 13 Dec 2009 21:27:53 +0000 (21:27 +0000)]
add a test of loading the datetime capi
Benjamin Peterson [Sun, 13 Dec 2009 21:21:43 +0000 (21:21 +0000)]
initialize to NULL
Benjamin Peterson [Sun, 13 Dec 2009 21:15:31 +0000 (21:15 +0000)]
avoid having to update this statement all the time
Mark Dickinson [Sun, 13 Dec 2009 21:06:06 +0000 (21:06 +0000)]
Issue #7492: Autoconf tests were leaving semaphore files behind. Add
sem_unlink calls to delete those semaphore files.
Benjamin Peterson [Sun, 13 Dec 2009 19:27:02 +0000 (19:27 +0000)]
remove unused variable
Benjamin Peterson [Sun, 13 Dec 2009 19:19:07 +0000 (19:19 +0000)]
accept None as the same as having passed no argument in file types #7349
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.
Ezio Melotti [Sun, 13 Dec 2009 18:54:53 +0000 (18:54 +0000)]
#7342: make sure that the datetime object in test_fraction always has a number of microseconds != 0
Benjamin Peterson [Sun, 13 Dec 2009 17:31:31 +0000 (17:31 +0000)]
add NEWS note
Benjamin Peterson [Sun, 13 Dec 2009 17:29:16 +0000 (17:29 +0000)]
make StringIO like other file objects in that readline(-1) has no effect #7348
Benjamin Peterson [Sun, 13 Dec 2009 16:36:53 +0000 (16:36 +0000)]
fix the ignoring of __cmp__ method on metaclasses #7491
Antoine Pitrou [Sun, 13 Dec 2009 16:18:14 +0000 (16:18 +0000)]
Add NEWS entry as per RDM's suggestion (the bug was actually present
in 2.7 alpha 1)
Benjamin Peterson [Sun, 13 Dec 2009 14:18:08 +0000 (14:18 +0000)]
add 2.6.x point releases
Lars Gustäbel [Sun, 13 Dec 2009 11:32:27 +0000 (11:32 +0000)]
Issue #7357: No longer suppress fatal extraction errors by
default.
TarFile's errorlevel argument controls how errors are
handled that occur during extraction. There are three
possible levels 0, 1 and 2. If errorlevel is set to 1 or 2
fatal errors (e.g. a full filesystem) are raised as
exceptions. If it is set to 0, which is the default value,
extraction errors are suppressed, and error messages are
written to the debug log instead. But, if the debug log is
not activated, which is the default as well, all these
errors go unnoticed.
The original intention was to imitate GNU tar which tries
to extract as many members as possible instead of stopping
on the first error. It turns out that this is no good
default behaviour for a tar library. This patch simply
changes the default value for the errorlevel argument from
0 to 1, so that fatal extraction errors are raised as
EnvironmentError exceptions.
Benjamin Peterson [Sun, 13 Dec 2009 00:54:15 +0000 (00:54 +0000)]
account for PyObject_IsInstance's new ability to fail
Antoine Pitrou [Sat, 12 Dec 2009 19:13:08 +0000 (19:13 +0000)]
Issue #7466: segmentation fault when the garbage collector is called
in the middle of populating a tuple. Patch by Florent Xicluna.
(note: no NEWS entry for trunk since the bug was introduced in 2.7/3.1)
Mark Dickinson [Fri, 11 Dec 2009 17:29:33 +0000 (17:29 +0000)]
Issue #3366: Add lgamma function to math module.
Vinay Sajip [Fri, 11 Dec 2009 09:16:01 +0000 (09:16 +0000)]
Issue #7470: logging: fix bug in Unicode encoding fallback.
Tarek Ziadé [Thu, 10 Dec 2009 19:29:53 +0000 (19:29 +0000)]
using an existing file to avoid dealing with a sleep to test file ages
Tarek Ziadé [Thu, 10 Dec 2009 15:29:03 +0000 (15:29 +0000)]
added test coverage for distutils.dep_util, and cleaned up the module
Mark Dickinson [Thu, 10 Dec 2009 10:36:32 +0000 (10:36 +0000)]
Replace the size check for PyMem_MALLOC and PyMem_REALLOC with an almost
equivalent[*] check that doesn't produce compiler warnings about a 'x < 0'
check on an unsigned type.
[*] it's equivalent for inputs of type size_t or Py_ssize_t, or any smaller
unsigned or signed integer type.