Commit Graph

43109 Commits

Author SHA1 Message Date
Ronald Oussoren c66ced30be * Make it easier to build custom installers (such as a 3-way universal build)
* Upgrade bzip dependency to 1.0.5
2009-09-20 20:16:11 +00:00
Ronald Oussoren a9cfbded4b Fix typo in error message 2009-09-20 20:05:44 +00:00
Ronald Oussoren 16766d7cd6 Merge a newer version of libffi_osx, based on the
version of libffi in OSX 10.6.1.

This fixes issue6918
2009-09-20 18:54:16 +00:00
Ronald Oussoren 9f20d9d0ee Issue 6877: this patch makes it possible to link the readline extension
to the libedit emulation of the readline API on OSX 10.5 or later.

This also adds a minimal testsuite for readline to check that the
history manipuation functions have the same interface with both
C libraries.
2009-09-20 14:18:15 +00:00
Ronald Oussoren 956f4b2520 For for issue 6934: failures in postflight script in OSX installer 2009-09-20 11:19:00 +00:00
Ronald Oussoren 809073bee1 Followup for r74962 2009-09-20 10:54:07 +00:00
Ronald Oussoren 51f0633efd Fix for issue 6851: urllib.urlopen crashes in a thread on OSX 10.6 2009-09-20 10:31:22 +00:00
Ezio Melotti 4b017bbac0 #6881 - fixed wrong return type; improved the formatting 2009-09-20 07:10:39 +00:00
Georg Brandl 14a2e2f614 Add Mark Summerfield. 2009-09-19 13:20:49 +00:00
Georg Brandl c231d31c21 Add Doug. 2009-09-19 13:13:56 +00:00
Georg Brandl f4da666880 Fix references to threading.enumerate(). 2009-09-19 12:04:16 +00:00
Georg Brandl 592c58d356 #6946: fix duplicate index entries for datetime classes. 2009-09-19 10:42:34 +00:00
Thomas Heller d25fb2ff1f Remove unused variable and static function to fix compiler warnings. 2009-09-19 10:04:54 +00:00
Georg Brandl 52c1794b98 Update bug tracker reference. 2009-09-19 08:43:16 +00:00
Georg Brandl ab849891ef #6944: the argument to PyArg_ParseTuple should be a tuple, otherwise a SystemError is set. Also clean up another usage of PyArg_ParseTuple. 2009-09-19 07:35:07 +00:00
Benjamin Peterson 9db5540ec4 typo 2009-09-18 21:47:27 +00:00
Benjamin Peterson dc782b55f2 backport keyword argument support for bytearray.decode 2009-09-18 21:46:21 +00:00
Georg Brandl 579a358e61 #6930: clarify description about byteorder handling in UTF decoder routines. 2009-09-18 21:35:59 +00:00
Georg Brandl 54967d994a #6925: rewrite docs for locals() and vars() a bit. 2009-09-18 21:21:41 +00:00
Benjamin Peterson 332d721750 add keyword arguments support to str/unicode encode and decode #6300 2009-09-18 21:14:55 +00:00
Mark Dickinson 2985dbb526 Use skipUnless to skip math module tests on non-IEEE 754 platforms. 2009-09-18 21:01:50 +00:00
Thomas Heller 6be522bfc2 Issue #4606: Passing 'None' if ctypes argtype is set to POINTER(...)
does now always result in NULL.
2009-09-18 20:05:44 +00:00
Thomas Heller 7a352c0ed8 Issue #5042: Structure sub-subclass does now initialize correctly with
base class positional arguments.
2009-09-18 18:55:17 +00:00
Mark Dickinson db9925a56b Add Gawain Bolton to Misc/ACKS for his work on base 10 integer -> string optimizations. 2009-09-18 18:35:42 +00:00
Georg Brandl 195261f823 Optimize optimization and fix method name in docstring. 2009-09-18 16:19:56 +00:00
Georg Brandl b019951875 Use str.format() to fix beginner's mistake with %-style string formatting. 2009-09-18 13:57:11 +00:00
Georg Brandl c40e60e5e5 #6938: "ident" is always a string, so use a format code which works. 2009-09-18 09:18:27 +00:00
Georg Brandl 097f70881a #6905: use better exception messages in inspect when the argument is of the wrong type. 2009-09-18 09:14:52 +00:00
Georg Brandl 4d94d31b6d #6936: for interactive use, quit() is just fine. 2009-09-18 07:22:41 +00:00
Benjamin Peterson 4fe03350b5 use macros 2009-09-17 21:33:46 +00:00
Georg Brandl b926ebb896 Make the optparse doc style a bit more standard: use standard description units for attrs/methods/etc., and use the correct referencing roles. 2009-09-17 17:14:04 +00:00
Georg Brandl 7842a41f5c Remove duplicate doc of enable/disable_interspersed_args. 2009-09-17 16:26:06 +00:00
Georg Brandl 304d3966ee #6932: remove paragraph that advises relying on __del__ being called. 2009-09-17 16:15:53 +00:00
Georg Brandl ebf3adc4fe #6844 followup: the warning when setting Exception.message was removed, do not test for it. 2009-09-17 11:48:31 +00:00
Georg Brandl e9741f3ed8 Issue #6922: Fix an infinite loop when trying to decode an invalid
UTF-32 stream with a non-raising error handler like "replace" or "ignore".
2009-09-17 11:28:09 +00:00
Georg Brandl bc3777d85e String values should be shown with quotes, to avoid confusion with constants. 2009-09-17 10:23:02 +00:00
Georg Brandl af09b60aac #6912: add "with" block support to pindent. 2009-09-17 07:49:37 +00:00
Benjamin Peterson 6fedc5252d rationalize a bit 2009-09-17 03:27:33 +00:00
Brett Cannon 2348eda37b Note in the intro to Extending... that ctypes can be a simpler, more portable solution than custom C code. 2009-09-17 03:24:45 +00:00
Benjamin Peterson fd1fcffced pep 8 defaults 2009-09-17 03:18:28 +00:00
Benjamin Peterson 4d714cbbf1 kill bare except 2009-09-17 02:46:54 +00:00
Mark Dickinson aa2adc828a Issue #6713: Improve performance of str(n) and repr(n) for integers n
(up to 3.1 times faster in tests), by special-casing base 10 in
_PyLong_Format.  (Backport of r74851 from py3k.)
2009-09-16 22:10:56 +00:00
Thomas Wouters 2920adb4df Add news entry for r74841. 2009-09-16 20:36:34 +00:00
Georg Brandl 0674d3fb5f #6844: do not emit DeprecationWarnings on access if Exception.message has been set by the user.
This works by always setting it in __dict__, except when it's implicitly set in __init__.
2009-09-16 20:30:09 +00:00
Mark Dickinson 4676048b43 Remove outdated include; this include was breaking OS X builds using
non-Apple gcc4.3 and gcc4.4 (because CoreFoundation/CoreFoundation.h
won't compile under non-Apple gcc).
2009-09-16 20:26:31 +00:00
Thomas Wouters c4dcb3801e Fix issue #1590864, multiple threads and fork() can cause deadlocks, by
acquiring the import lock around fork() calls. This prevents other threads
from having that lock while the fork happens, and is the recommended way of
dealing with such issues. There are two other locks we care about, the GIL
and the Thread Local Storage lock. The GIL is obviously held when calling
Python functions like os.fork(), and the TLS lock is explicitly reallocated
instead, while also deleting now-orphaned TLS data.

This only fixes calls to os.fork(), not extension modules or embedding
programs calling C's fork() directly. Solving that requires a new set of API
functions, and possibly a rewrite of the Python/thread_*.c mess. Add a
warning explaining the problem to the documentation in the mean time.

This also changes behaviour a little on AIX. Before, AIX (but only AIX) was
getting the import lock reallocated, seemingly to avoid this very same
problem. This is not the right approach, because the import lock is a
re-entrant one, and reallocating would do the wrong thing when forking while
holding the import lock.

Will backport to 2.6, minus the tiny AIX behaviour change.
2009-09-16 19:55:54 +00:00
Georg Brandl 69dfe8d80e Make the pdb displayhook compatible with the standard displayhook: do not print Nones. Add a test for that. 2009-09-16 16:36:39 +00:00
Georg Brandl 6c39f06ab2 Remove some more boilerplate from the actual tests in test_pdb. 2009-09-16 16:22:12 +00:00
Georg Brandl a50d20a5b1 Rewrap long lines. 2009-09-16 15:57:46 +00:00
Ezio Melotti 2e85f503b1 #6879 - fix misstatement about exceptions 2009-09-16 13:14:05 +00:00