Commit graph

43490 commits

Author SHA1 Message Date
Ronald Oussoren
92919a66d2 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.
2009-12-24 13:30:58 +00:00
Ronald Oussoren
1a13cff7a5 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/
2009-12-24 13:30:42 +00:00
Ronald Oussoren
728cc6110f 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.
2009-12-24 13:06:39 +00:00
Ezio Melotti
9c236bfb9f Added markup and default arg, fixed example 2009-12-24 02:54:53 +00:00
Senthil Kumaran
f9a21f43c4 Fix for Issue7570: Error in urllib2 example. 2009-12-24 02:18:14 +00:00
Benjamin Peterson
3293593b54 fix alleged refleak 2009-12-24 01:09:53 +00:00
Gregory P. Smith
9f12d468f4 Fix possible integer overflow in lchown and fchown functions. For issue1747858. 2009-12-23 09:31:11 +00:00
Brett Cannon
ca2dc4798b Make a word plural. 2009-12-22 02:37:37 +00:00
Tarek Ziadé
0479eb5a30 added a note about #7556 in Misc/NEWS 2009-12-21 23:37:44 +00:00
Tarek Ziadé
3efd767336 backported r76993 and r76994 so the trunk behaves the same way with MSVC Manifest files editing 2009-12-21 23:31:55 +00:00
Martin v. Löwis
b4261d5965 Add NEWS for OpenSSL changes. 2009-12-21 19:29:59 +00:00
Martin v. Löwis
55e1a697ab Switch to OpenSSL 0.9.8l. 2009-12-21 19:27:15 +00:00
Martin v. Löwis
c3f5ca10e6 Drop 2.4 compatibility. 2009-12-21 19:25:56 +00:00
Mark Dickinson
2ba1e9ceb8 Issue #7553: test_long_future wasn't testing properly. Thanks Florent Xicluna
for bug report and patch.
2009-12-21 16:29:21 +00:00
Mark Dickinson
1730fdc130 Inverse hyperbolic trigonometric functions should call m_log1p, not log1p. 2009-12-21 15:40:33 +00:00
Mark Dickinson
12748b003c Issue #7518: Move substitute definitions of C99 math functions from
pymath.c to Modules/_math.c.
2009-12-21 15:22:00 +00:00
R. David Murray
08dca0d6da Remove a leftover from a previous iteration of the issue 7376 patch. 2009-12-21 12:45:41 +00:00
Mark Dickinson
bd335bfce7 Additional edge-case tests for test_long_and_overflow. 2009-12-21 12:15:48 +00:00
Mark Dickinson
ed02b3f342 Fix reference counts for test_long_and_overflow. 2009-12-21 11:31:54 +00:00
Mark Dickinson
e31d300664 Issue #7528: Backport PyLong_AsLongAndOverflow from py3k to trunk.
Thanks Case Van Horsen for the patch.
2009-12-21 11:21:25 +00:00
Tarek Ziadé
2b66da7d15 massive import cleaning in Distutils 2009-12-21 01:22:46 +00:00
Tarek Ziadé
2421d56e02 Fixed #7552: fixed distutils.command.upload failure on very long passwords 2009-12-20 23:23:34 +00:00
Mark Dickinson
603ae9e371 Issue #7554: Various fixups in test_cmath.py: remove code duplication,
use new-style formatting.  Thanks Florent Xicluna for the patch.
2009-12-20 20:34:44 +00:00
Mark Dickinson
ed284991e1 Silence -3 warnings. Thanks Florent Xicluna. 2009-12-20 20:23:01 +00:00
Mark Dickinson
3e0bafef25 Fix for consistency with py3k keyword-only version of assertAlmostEqual 2009-12-20 19:52:36 +00:00
Mark Dickinson
1d2ae215aa Issue #7554: Fix incorrect usage of rAssertAlmostEqual. Thanks Florent Xicluna. 2009-12-20 19:45:37 +00:00
R. David Murray
77e48ba993 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.
2009-12-20 16:46:06 +00:00
R. David Murray
97138117b2 Fix comment typo. 2009-12-20 16:24:46 +00:00
Mark Dickinson
b5e348b305 Add missing tests for PyArg_Parse* with format 'h' 2009-12-20 15:57:56 +00:00
Benjamin Peterson
1c2353b0d9 builtin-ins -> builtins 2009-12-20 15:23:22 +00:00
Georg Brandl
6ab5d083f2 #7381: subprocess documentation and library docstring consistency fixes. 2009-12-20 14:33:20 +00:00
Georg Brandl
819a8fa0f6 Small indentation fix. 2009-12-20 14:28:05 +00:00
Georg Brandl
0cedb4bffa #7495: backport Programming FAQ review to trunk. 2009-12-20 14:20:16 +00:00
Mark Dickinson
5698977186 math.factorial depends on PyLong_AsLong correctly converting floats; rewrite
it to do the conversion explicitly instead.  See issue #7550.
2009-12-20 13:58:18 +00:00
Senthil Kumaran
0732fd952b Document the headers parameter for set_tunnel. 2009-12-20 07:29:31 +00:00
Senthil Kumaran
7713acf201 Fix for issue 7291 - urllib2 cannot handle https with proxy requiring auth
Refactored HTTPHandler tests and added testcase for proxy authorization.
2009-12-20 06:05:13 +00:00
Ezio Melotti
062d2b52f3 #7388: "python".capitalize() in the Doc 2009-12-19 22:41:49 +00:00
Antoine Pitrou
98a24def03 Remove superfetatory paragraph (left there by mistake). 2009-12-19 21:06:36 +00:00
Antoine Pitrou
e812d29b52 Issue #7545: improve documentation of the buffering argument in io.open(). 2009-12-19 21:01:10 +00:00
Georg Brandl
d86e9d7616 #7480: remove tautology. 2009-12-19 18:20:18 +00:00
Georg Brandl
c51d1f0862 #7479: add note about function availability on Unices. 2009-12-19 18:16:31 +00:00
Georg Brandl
27d19030c6 #7493: review of Design FAQ by Florent Xicluna. 2009-12-19 17:43:33 +00:00
Georg Brandl
670e5969cb #7521: remove Py_GetBuildNumber(), which was removed in favor of Py_GetBuildInfo(). 2009-12-19 17:34:32 +00:00
Georg Brandl
8b10f13aaf #7527: use standard versionadded tags. 2009-12-19 17:30:28 +00:00
Mark Dickinson
5ff37ae14b Issue #3366: Add error function and complementary error function to
math module.
2009-12-19 11:07:23 +00:00
Vinay Sajip
0c6a0e3318 Issue #7529: logging: Minor correction to documentation. 2009-12-17 14:52:00 +00:00
Mark Dickinson
1c49828fa0 Add _math.h to math module dependencies in setup.py. 2009-12-17 08:33:56 +00:00
Mark Dickinson
9cae178f21 Issue #3366: Add expm1 function to math module. Thanks Eric Smith for
testing on Windows.
2009-12-16 20:13:40 +00:00
R. David Murray
98e3df38fd Issue #7396: fix -s, which was broken by the -j enhancement. 2009-12-16 11:49:46 +00:00
Benjamin Peterson
0c0dcaf272 remove type_compare, since type_richcompare does the same trick 2009-12-16 03:36:22 +00:00