]>
granicus.if.org Git - python/log
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.
Michael Foord [Sun, 13 Sep 2009 16:46:19 +0000 (16:46 +0000)]
Note that sys._getframe is not guaranteed to exist in all implementations of Python, and a corresponding note in inspect.currentframe. Issue 6712.
Michael Foord [Sun, 13 Sep 2009 16:40:02 +0000 (16:40 +0000)]
Objects that compare equal automatically pass or fail assertAlmostEqual and assertNotAlmostEqual tests on unittest.TestCase. Issue 6567.
Michael Foord [Sun, 13 Sep 2009 16:13:36 +0000 (16:13 +0000)]
Change to tutorial wording for reading text / binary files on Windows. Issue #6301.
Matthias Klose [Sun, 13 Sep 2009 15:09:24 +0000 (15:09 +0000)]
Issue #6635: Fix profiler printing usage message.
Mark Dickinson [Sun, 13 Sep 2009 11:56:13 +0000 (11:56 +0000)]
Fix potential signed-overflow bug in _PyLong_Format; also fix
a couple of whitespace issues.
Benjamin Peterson [Sun, 13 Sep 2009 01:59:31 +0000 (01:59 +0000)]
update urls
Ezio Melotti [Sat, 12 Sep 2009 14:43:43 +0000 (14:43 +0000)]
#6026 - fix tests that failed without zlib
Lars Gustäbel [Sat, 12 Sep 2009 10:28:15 +0000 (10:28 +0000)]
Issue #6856: Add a filter keyword argument to TarFile.add().
The filter argument must be a function that takes a TarInfo
object argument, changes it and returns it again. If the
function returns None the TarInfo object will be excluded
from the archive.
The exclude argument is deprecated from now on, because it
does something similar but is not as flexible.
Georg Brandl [Fri, 11 Sep 2009 07:55:20 +0000 (07:55 +0000)]
Move function back to its section.
Georg Brandl [Wed, 9 Sep 2009 16:49:13 +0000 (16:49 +0000)]
Properly document copy and deepcopy as functions.
Benjamin Peterson [Wed, 9 Sep 2009 11:42:57 +0000 (11:42 +0000)]
revert unintended changes
Benjamin Peterson [Wed, 9 Sep 2009 11:40:54 +0000 (11:40 +0000)]
tabbify
Tarek Ziadé [Wed, 9 Sep 2009 08:14:20 +0000 (08:14 +0000)]
Issue #6163: Fixed HP-UX runtime library dir options in distutils.unixcompiler
Benjamin Peterson [Tue, 8 Sep 2009 23:04:22 +0000 (23:04 +0000)]
#6865 fix ref counting in initialization of pwd module
Mark Dickinson [Tue, 8 Sep 2009 20:20:19 +0000 (20:20 +0000)]
Issue #6857: Fix Decimal formatting to be consistent with existing float
formatting: both are now right-aligned by default.
Thomas Heller [Tue, 8 Sep 2009 19:24:36 +0000 (19:24 +0000)]
Make ctypes compile again with older Python versions.
Ronald Oussoren [Tue, 8 Sep 2009 07:17:10 +0000 (07:17 +0000)]
This is an update to r74701. How hard can it be to get a configure test right.
This patch has already been backported as part of the backport of r74701,
which is how I found this problem.
Mark Dickinson [Mon, 7 Sep 2009 18:04:58 +0000 (18:04 +0000)]
#Issue 6795: Fix infinite recursion in long(Decimal('nan')); change int(Decimal('nan')) to raise ValueError instead of either returning NaN or raising InvalidContext.
Mark Dickinson [Mon, 7 Sep 2009 16:17:41 +0000 (16:17 +0000)]
Issue #6850: Fix bug in Decimal._parse_format_specifier for formats
with no type specifier.
Benjamin Peterson [Mon, 7 Sep 2009 13:02:15 +0000 (13:02 +0000)]
revert r74699 since it loses useful error information
Ronald Oussoren [Mon, 7 Sep 2009 06:12:00 +0000 (06:12 +0000)]
Fix typo in configure.in
Benjamin Peterson [Sun, 6 Sep 2009 22:43:39 +0000 (22:43 +0000)]
PyObject_GetIter can set an error for its self just fine
Mark Dickinson [Sun, 6 Sep 2009 21:21:05 +0000 (21:21 +0000)]
Issue #6848: Fix curses module build failure on OS X 10.6.
Mark Dickinson [Sun, 6 Sep 2009 20:51:37 +0000 (20:51 +0000)]
Remove redundant assignment
Ronald Oussoren [Sun, 6 Sep 2009 12:23:18 +0000 (12:23 +0000)]
Fix for issue 4937
Mark Dickinson [Sun, 6 Sep 2009 10:32:21 +0000 (10:32 +0000)]
Issue #6847: s/bytes/bytearray/ in some bytearray error messages. Thanks Hagen Fürstenau.
Mark Dickinson [Sun, 6 Sep 2009 10:03:31 +0000 (10:03 +0000)]
Issue #6846: bytearray.pop was returning ints in the range [-128, 128)
instead of [0, 256). Thanks Hagen Fürstenau for the report and fix.
Ronald Oussoren [Sun, 6 Sep 2009 10:00:26 +0000 (10:00 +0000)]
Fix build issues on OSX 10.6 (issue 6802)
Georg Brandl [Sat, 5 Sep 2009 16:47:17 +0000 (16:47 +0000)]
#6843: add link from filterwarnings to where the meaning of the arguments is covered.
Mark Dickinson [Sat, 5 Sep 2009 10:27:00 +0000 (10:27 +0000)]
Add configure-time checks for gamma and error functions.
Georg Brandl [Sat, 5 Sep 2009 09:04:09 +0000 (09:04 +0000)]
#6841: remove duplicated word.
Chris Withers [Fri, 4 Sep 2009 16:32:22 +0000 (16:32 +0000)]
news entry matching r74655
Chris Withers [Fri, 4 Sep 2009 16:12:32 +0000 (16:12 +0000)]
Fixes issue #6838: use a list to accumulate the value instead of repeatedly concatenating strings.
Georg Brandl [Fri, 4 Sep 2009 11:32:18 +0000 (11:32 +0000)]
#6777: dont discourage usage of Exception.args or promote usage of Exception.message.
Georg Brandl [Fri, 4 Sep 2009 11:25:37 +0000 (11:25 +0000)]
#6756: add some info about the "acct" parameter.
Georg Brandl [Fri, 4 Sep 2009 11:19:34 +0000 (11:19 +0000)]
#5101: add back tests to test_funcattrs that were lost during unittest conversion, and make some PEP8 cleanups.
Georg Brandl [Fri, 4 Sep 2009 08:17:04 +0000 (08:17 +0000)]
Issue #5275: In Cookie's Cookie.load(), properly handle non-string arguments as documented.
Georg Brandl [Fri, 4 Sep 2009 07:55:14 +0000 (07:55 +0000)]
#5047: remove Monterey support from configure.
Georg Brandl [Fri, 4 Sep 2009 06:59:20 +0000 (06:59 +0000)]
Issue #2666: Handle BROWSER environment variable properly for unknown browser names in the webbrowser module.
Brett Cannon [Thu, 3 Sep 2009 21:25:21 +0000 (21:25 +0000)]
test_platform fails on OS X Snow Leopard because the UNIX command to get the
canonical version, sw_vers, leaves off trailing zeros in the version number
(e.g. 10.6 instead of 10.6.0). Test now compensates by tacking on extra zeros
for the test comparison.
Fixes issue #6806.
Armin Rigo [Thu, 3 Sep 2009 19:45:27 +0000 (19:45 +0000)]
Sorry, sorry! Ignore my previous two commits. I mixed up the version
of python with which I tried running the crashers. They don't crash
the current HEAD.
Armin Rigo [Thu, 3 Sep 2009 19:42:03 +0000 (19:42 +0000)]
Does not terminate: consume all memory without responding to Ctrl-C.
I am not too sure why, but you can surely find out by gdb'ing a bit...
Armin Rigo [Thu, 3 Sep 2009 19:40:07 +0000 (19:40 +0000)]
Found the next crasher by thinking about this logic in PyPy.
Georg Brandl [Thu, 3 Sep 2009 12:31:39 +0000 (12:31 +0000)]
#6757: complete the list of types that marshal can serialize.
Georg Brandl [Thu, 3 Sep 2009 07:27:26 +0000 (07:27 +0000)]
#6828: fix wrongly highlighted blocks.
Georg Brandl [Wed, 2 Sep 2009 20:37:16 +0000 (20:37 +0000)]
#6821: fix signature of PyBuffer_Release().
Benjamin Peterson [Tue, 1 Sep 2009 22:27:57 +0000 (22:27 +0000)]
remove the check that classmethod's argument is a callable