]>
granicus.if.org Git - python/log
Kristján Valur Jónsson [Mon, 28 Sep 2009 13:08:48 +0000 (13:08 +0000)]
http://bugs.python.org/issue6836
A memory block allocated with one API was being handed over to an object that used another API to release it.
Skip Montanaro [Mon, 28 Sep 2009 02:12:27 +0000 (02:12 +0000)]
Patch from Thomas Barr so that csv.Sniffer will set doublequote property.
Closes issue 6606.
Michael Foord [Sun, 27 Sep 2009 20:08:23 +0000 (20:08 +0000)]
Documentation improvement for load_tests protocol in unittest. Issue 6515.
Michael Foord [Sun, 27 Sep 2009 19:15:41 +0000 (19:15 +0000)]
Test creation moved from TestProgram.parseArgs to TestProgram.createTests exclusively. Issue 6956.
Mark Dickinson [Sun, 27 Sep 2009 16:39:28 +0000 (16:39 +0000)]
Eliminate unnecessary get_wrapped_(u)long defines in struct module.
Mark Dickinson [Sun, 27 Sep 2009 16:05:21 +0000 (16:05 +0000)]
Issue #6713: Improve decimal int -> string conversions. Thanks Gawain
Bolton for the suggestion and original patches.
Vinay Sajip [Sat, 26 Sep 2009 14:53:32 +0000 (14:53 +0000)]
Tidied up name of parameter in StreamHandler
Ezio Melotti [Sat, 26 Sep 2009 11:20:53 +0000 (11:20 +0000)]
#7000: document "sep" in capwords. Add a few tests
Benjamin Peterson [Sat, 26 Sep 2009 02:57:59 +0000 (02:57 +0000)]
comment out ugly xxx
Andrew M. Kuchling [Fri, 25 Sep 2009 22:23:54 +0000 (22:23 +0000)]
#6243: fix segfault when keyname() returns a NULL pointer.
Bug noted by Trundle, patched by Trundle and Jerry Chen.
Ezio Melotti [Fri, 25 Sep 2009 16:07:55 +0000 (16:07 +0000)]
#6994: fix typo in enumerate docstring
Kristján Valur Jónsson [Fri, 25 Sep 2009 15:19:51 +0000 (15:19 +0000)]
http://bugs.python.org/issue6971
Adding the SIO_KEEPALIVE_VALS command to socket.ioctl on windows
Mark Dickinson [Thu, 24 Sep 2009 19:21:07 +0000 (19:21 +0000)]
Issue #6982: Add generated Lib/lib2to3/*.pickle files to 'make clean' target.
Thanks egreen.
Ezio Melotti [Wed, 23 Sep 2009 21:36:39 +0000 (21:36 +0000)]
improved phrasing, markup and example
Benjamin Peterson [Tue, 22 Sep 2009 22:15:28 +0000 (22:15 +0000)]
fix typos/rephrase
Brett Cannon [Tue, 22 Sep 2009 20:04:24 +0000 (20:04 +0000)]
Fix a minor doc syntax typo.
Ronald Oussoren [Tue, 22 Sep 2009 19:27:44 +0000 (19:27 +0000)]
Half of the fix for issue 6957: ensure that distutils
ignores the '-isysroot' option on OSX when the
corresponding SDK is not installed.
This ensures that the user can compile extensions
on OSX 10.6 using the Python.org installer and a
default installation of Xcode.
Brett Cannon [Tue, 22 Sep 2009 19:13:27 +0000 (19:13 +0000)]
Fix whitespace.
Vinay Sajip [Tue, 22 Sep 2009 17:23:41 +0000 (17:23 +0000)]
Fixed a typo, and added sections on optimization and using arbitrary objects as messages.
Ronald Oussoren [Tue, 22 Sep 2009 14:24:57 +0000 (14:24 +0000)]
The 'Navigation Toolbox' is not available at all for 64-bit
code, make this explicit in the C code to avoid confusing
error messages during the build.
Georg Brandl [Tue, 22 Sep 2009 10:55:08 +0000 (10:55 +0000)]
Fix encoding name.
Brett Cannon [Tue, 22 Sep 2009 00:29:48 +0000 (00:29 +0000)]
When range checking was added to time.strftime() a check was placed on tm_isdst
to make sure it fell within [-1, 1] just in case someone implementing
strftime() in libc was stupid enough to assume this. Turns out, though, some
OSs (e.g. zOS) are stupid enough to use values outside of this range for time
structs created by the system itself. So instead of throwing a ValueError,
tm_isdst is now normalized before being passed to strftime().
Fixes issue #6823. Thanks Robert Shapiro for diagnosing the problem and
contributing an initial patch.
Antoine Pitrou [Mon, 21 Sep 2009 21:17:48 +0000 (21:17 +0000)]
Issue #6236, #6348: Fix various failures in the io module under AIX
and other platforms, when using a non-gcc compiler. Patch by egreen.
In addition, I made explicit the signedness of all bitfields in the
IO library.
Mark Dickinson [Mon, 21 Sep 2009 16:16:44 +0000 (16:16 +0000)]
Silence MSVC compiler warnings.
Tarek Ziadé [Mon, 21 Sep 2009 13:49:57 +0000 (13:49 +0000)]
forgot to commit a file in previous commit (r74994, issue #6954)
Tarek Ziadé [Mon, 21 Sep 2009 13:41:08 +0000 (13:41 +0000)]
#6954: Fixed crash when using DISTUTILS_DEBUG flag in Distutils.
Tarek Ziadé [Mon, 21 Sep 2009 13:23:35 +0000 (13:23 +0000)]
improving distutils coverage
Tarek Ziadé [Mon, 21 Sep 2009 12:19:07 +0000 (12:19 +0000)]
improved distutils test coverage: now the DEBUG mode is covered too (will help fix the issue #6954 in py3k branch)
Doug Hellmann [Sun, 20 Sep 2009 20:44:13 +0000 (20:44 +0000)]
Fix markup for external links.
Ronald Oussoren [Sun, 20 Sep 2009 20:16:11 +0000 (20:16 +0000)]
* Make it easier to build custom installers (such as a 3-way universal build)
* Upgrade bzip dependency to 1.0.5
Ronald Oussoren [Sun, 20 Sep 2009 20:05:44 +0000 (20:05 +0000)]
Fix typo in error message
Ronald Oussoren [Sun, 20 Sep 2009 18:54:16 +0000 (18:54 +0000)]
Merge a newer version of libffi_osx, based on the
version of libffi in OSX 10.6.1.
This fixes issue6918
Ronald Oussoren [Sun, 20 Sep 2009 14:18:15 +0000 (14:18 +0000)]
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.
Ronald Oussoren [Sun, 20 Sep 2009 11:19:00 +0000 (11:19 +0000)]
For for issue 6934: failures in postflight script in OSX installer
Ronald Oussoren [Sun, 20 Sep 2009 10:54:07 +0000 (10:54 +0000)]
Followup for r74962
Ronald Oussoren [Sun, 20 Sep 2009 10:31:22 +0000 (10:31 +0000)]
Fix for issue 6851: urllib.urlopen crashes in a thread on OSX 10.6
Ezio Melotti [Sun, 20 Sep 2009 07:10:39 +0000 (07:10 +0000)]
#6881 - fixed wrong return type; improved the formatting
Georg Brandl [Sat, 19 Sep 2009 13:20:49 +0000 (13:20 +0000)]
Add Mark Summerfield.
Georg Brandl [Sat, 19 Sep 2009 13:13:56 +0000 (13:13 +0000)]
Add Doug.
Georg Brandl [Sat, 19 Sep 2009 12:04:16 +0000 (12:04 +0000)]
Fix references to threading.enumerate().
Georg Brandl [Sat, 19 Sep 2009 10:42:34 +0000 (10:42 +0000)]
#6946: fix duplicate index entries for datetime classes.
Thomas Heller [Sat, 19 Sep 2009 10:04:54 +0000 (10:04 +0000)]
Remove unused variable and static function to fix compiler warnings.
Georg Brandl [Sat, 19 Sep 2009 08:43:16 +0000 (08:43 +0000)]
Update bug tracker reference.
Georg Brandl [Sat, 19 Sep 2009 07:35:07 +0000 (07:35 +0000)]
#6944: the argument to PyArg_ParseTuple should be a tuple, otherwise a SystemError is set. Also clean up another usage of PyArg_ParseTuple.
Benjamin Peterson [Fri, 18 Sep 2009 21:47:27 +0000 (21:47 +0000)]
typo
Benjamin Peterson [Fri, 18 Sep 2009 21:46:21 +0000 (21:46 +0000)]
backport keyword argument support for bytearray.decode
Georg Brandl [Fri, 18 Sep 2009 21:35:59 +0000 (21:35 +0000)]
#6930: clarify description about byteorder handling in UTF decoder routines.
Georg Brandl [Fri, 18 Sep 2009 21:21:41 +0000 (21:21 +0000)]
#6925: rewrite docs for locals() and vars() a bit.
Benjamin Peterson [Fri, 18 Sep 2009 21:14:55 +0000 (21:14 +0000)]
add keyword arguments support to str/unicode encode and decode #6300
Mark Dickinson [Fri, 18 Sep 2009 21:01:50 +0000 (21:01 +0000)]
Use skipUnless to skip math module tests on non-IEEE 754 platforms.
Thomas Heller [Fri, 18 Sep 2009 20:05:44 +0000 (20:05 +0000)]
Issue #4606: Passing 'None' if ctypes argtype is set to POINTER(...)
does now always result in NULL.
Thomas Heller [Fri, 18 Sep 2009 18:55:17 +0000 (18:55 +0000)]
Issue #5042: Structure sub-subclass does now initialize correctly with
base class positional arguments.
Mark Dickinson [Fri, 18 Sep 2009 18:35:42 +0000 (18:35 +0000)]
Add Gawain Bolton to Misc/ACKS for his work on base 10 integer -> string optimizations.
Georg Brandl [Fri, 18 Sep 2009 16:19:56 +0000 (16:19 +0000)]
Optimize optimization and fix method name in docstring.
Georg Brandl [Fri, 18 Sep 2009 13:57:11 +0000 (13:57 +0000)]
Use str.format() to fix beginner's mistake with %-style string formatting.
Georg Brandl [Fri, 18 Sep 2009 09:18:27 +0000 (09:18 +0000)]
#6938: "ident" is always a string, so use a format code which works.
Georg Brandl [Fri, 18 Sep 2009 09:14:52 +0000 (09:14 +0000)]
#6905: use better exception messages in inspect when the argument is of the wrong type.
Georg Brandl [Fri, 18 Sep 2009 07:22:41 +0000 (07:22 +0000)]
#6936: for interactive use, quit() is just fine.
Benjamin Peterson [Thu, 17 Sep 2009 21:33:46 +0000 (21:33 +0000)]
use macros
Georg Brandl [Thu, 17 Sep 2009 17:14:04 +0000 (17:14 +0000)]
Make the optparse doc style a bit more standard: use standard description units for attrs/methods/etc., and use the correct referencing roles.
Georg Brandl [Thu, 17 Sep 2009 16:26:06 +0000 (16:26 +0000)]
Remove duplicate doc of enable/disable_interspersed_args.
Georg Brandl [Thu, 17 Sep 2009 16:15:53 +0000 (16:15 +0000)]
#6932: remove paragraph that advises relying on __del__ being called.
Georg Brandl [Thu, 17 Sep 2009 11:48:31 +0000 (11:48 +0000)]
#6844 followup: the warning when setting Exception.message was removed, do not test for it.
Georg Brandl [Thu, 17 Sep 2009 11:28:09 +0000 (11:28 +0000)]
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".
Georg Brandl [Thu, 17 Sep 2009 10:23:02 +0000 (10:23 +0000)]
String values should be shown with quotes, to avoid confusion with constants.
Georg Brandl [Thu, 17 Sep 2009 07:49:37 +0000 (07:49 +0000)]
#6912: add "with" block support to pindent.
Benjamin Peterson [Thu, 17 Sep 2009 03:27:33 +0000 (03:27 +0000)]
rationalize a bit
Brett Cannon [Thu, 17 Sep 2009 03:24:45 +0000 (03:24 +0000)]
Note in the intro to Extending... that ctypes can be a simpler, more portable solution than custom C code.
Benjamin Peterson [Thu, 17 Sep 2009 03:18:28 +0000 (03:18 +0000)]
pep 8 defaults
Benjamin Peterson [Thu, 17 Sep 2009 02:46:54 +0000 (02:46 +0000)]
kill bare except
Mark Dickinson [Wed, 16 Sep 2009 22:10:56 +0000 (22:10 +0000)]
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.)
Thomas Wouters [Wed, 16 Sep 2009 20:36:34 +0000 (20:36 +0000)]
Add news entry for r74841.
Georg Brandl [Wed, 16 Sep 2009 20:30:09 +0000 (20:30 +0000)]
#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__.
Mark Dickinson [Wed, 16 Sep 2009 20:26:31 +0000 (20:26 +0000)]
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).
Thomas Wouters [Wed, 16 Sep 2009 19:55:54 +0000 (19:55 +0000)]
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.
Georg Brandl [Wed, 16 Sep 2009 16:36:39 +0000 (16:36 +0000)]
Make the pdb displayhook compatible with the standard displayhook: do not print Nones. Add a test for that.
Georg Brandl [Wed, 16 Sep 2009 16:22:12 +0000 (16:22 +0000)]
Remove some more boilerplate from the actual tests in test_pdb.
Georg Brandl [Wed, 16 Sep 2009 15:57:46 +0000 (15:57 +0000)]
Rewrap long lines.
Ezio Melotti [Wed, 16 Sep 2009 13:14:05 +0000 (13:14 +0000)]
#6879 - fix misstatement about exceptions
Georg Brandl [Wed, 16 Sep 2009 13:11:06 +0000 (13:11 +0000)]
#6892: fix optparse example involving help option.
Georg Brandl [Wed, 16 Sep 2009 13:06:22 +0000 (13:06 +0000)]
Remove strange trailing commas.
Georg Brandl [Wed, 16 Sep 2009 10:12:06 +0000 (10:12 +0000)]
#5621: refactor description of how class/instance attributes interact on a.x=a.x+1 or augassign.
Georg Brandl [Wed, 16 Sep 2009 09:30:48 +0000 (09:30 +0000)]
#6891: comment out dead link to Unicode article.
Georg Brandl [Wed, 16 Sep 2009 09:24:57 +0000 (09:24 +0000)]
#6876: fix base class constructor invocation in example.
Georg Brandl [Wed, 16 Sep 2009 09:23:04 +0000 (09:23 +0000)]
#6880: add reference to classes section in exceptions section, which comes earlier.
Georg Brandl [Wed, 16 Sep 2009 09:05:11 +0000 (09:05 +0000)]
Make deprecation notices as visible as warnings are right now.
Ronald Oussoren [Tue, 15 Sep 2009 21:24:07 +0000 (21:24 +0000)]
Update distutils.util tests after my changes
to --with-universal-archs
Georg Brandl [Tue, 15 Sep 2009 20:26:59 +0000 (20:26 +0000)]
Add Armin Ronacher.
Ronald Oussoren [Tue, 15 Sep 2009 19:13:15 +0000 (19:13 +0000)]
Finish support for --with-universal-archs=intel
and --with-universal-archs=3-way (issue6245)
Ezio Melotti [Tue, 15 Sep 2009 18:41:43 +0000 (18:41 +0000)]
#6917 - typo in method name
Ronald Oussoren [Tue, 15 Sep 2009 18:33:33 +0000 (18:33 +0000)]
MacOSX: detect the architectures supported by
Tk.framework and build _tkinter only for those
architectures.
This replaces the hardcoded solution that is no
longer valid now that 64-bit capable versions of
Tk are available on OSX.
Benjamin Peterson [Tue, 15 Sep 2009 03:36:26 +0000 (03:36 +0000)]
Py_SetPythonHome uses static storage #6913
Georg Brandl [Mon, 14 Sep 2009 14:50:47 +0000 (14:50 +0000)]
#6908: fix association of hashlib hash attributes.
Georg Brandl [Mon, 14 Sep 2009 14:08:54 +0000 (14:08 +0000)]
#6574: list the future features in a table.
Ezio Melotti [Mon, 14 Sep 2009 00:48:31 +0000 (00:48 +0000)]
#6904 - fix broken link
Michael Foord [Sun, 13 Sep 2009 19:08:18 +0000 (19:08 +0000)]
Remove an extraneous space in unittest documentation.
Michael Foord [Sun, 13 Sep 2009 19:07:03 +0000 (19:07 +0000)]
Test discovery in unittest will only attempt to import modules that are importable; i.e. their names are valid Python identifiers. If an import fails during discovery this will be recorded as an error and test discovery will continue. Issue 6568.
Georg Brandl [Sun, 13 Sep 2009 18:15:07 +0000 (18:15 +0000)]
Typo fix.
Michael Foord [Sun, 13 Sep 2009 17:28:35 +0000 (17:28 +0000)]
unittest.TestLoader.loadTestsFromName honors the loader suiteClass attribute. Issue 6866.
Michael Foord [Sun, 13 Sep 2009 17:07:46 +0000 (17:07 +0000)]
Tutorial tweaks. Issue 6849.